#[non_exhaustive]
pub struct AwsEc2SubnetDetailsBuilder { /* private fields */ }
Expand description

A builder for AwsEc2SubnetDetails.

Implementations§

source§

impl AwsEc2SubnetDetailsBuilder

source

pub fn assign_ipv6_address_on_creation(self, input: bool) -> Self

Whether to assign an IPV6 address to a network interface that is created in this subnet.

source

pub fn set_assign_ipv6_address_on_creation(self, input: Option<bool>) -> Self

Whether to assign an IPV6 address to a network interface that is created in this subnet.

source

pub fn get_assign_ipv6_address_on_creation(&self) -> &Option<bool>

Whether to assign an IPV6 address to a network interface that is created in this subnet.

source

pub fn availability_zone(self, input: impl Into<String>) -> Self

The Availability Zone for the subnet.

source

pub fn set_availability_zone(self, input: Option<String>) -> Self

The Availability Zone for the subnet.

source

pub fn get_availability_zone(&self) -> &Option<String>

The Availability Zone for the subnet.

source

pub fn availability_zone_id(self, input: impl Into<String>) -> Self

The identifier of the Availability Zone for the subnet.

source

pub fn set_availability_zone_id(self, input: Option<String>) -> Self

The identifier of the Availability Zone for the subnet.

source

pub fn get_availability_zone_id(&self) -> &Option<String>

The identifier of the Availability Zone for the subnet.

source

pub fn available_ip_address_count(self, input: i32) -> Self

The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.

source

pub fn set_available_ip_address_count(self, input: Option<i32>) -> Self

The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.

source

pub fn get_available_ip_address_count(&self) -> &Option<i32>

The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.

source

pub fn cidr_block(self, input: impl Into<String>) -> Self

The IPV4 CIDR block that is assigned to the subnet.

source

pub fn set_cidr_block(self, input: Option<String>) -> Self

The IPV4 CIDR block that is assigned to the subnet.

source

pub fn get_cidr_block(&self) -> &Option<String>

The IPV4 CIDR block that is assigned to the subnet.

source

pub fn default_for_az(self, input: bool) -> Self

Whether this subnet is the default subnet for the Availability Zone.

source

pub fn set_default_for_az(self, input: Option<bool>) -> Self

Whether this subnet is the default subnet for the Availability Zone.

source

pub fn get_default_for_az(&self) -> &Option<bool>

Whether this subnet is the default subnet for the Availability Zone.

source

pub fn map_public_ip_on_launch(self, input: bool) -> Self

Whether instances in this subnet receive a public IP address.

source

pub fn set_map_public_ip_on_launch(self, input: Option<bool>) -> Self

Whether instances in this subnet receive a public IP address.

source

pub fn get_map_public_ip_on_launch(&self) -> &Option<bool>

Whether instances in this subnet receive a public IP address.

source

pub fn owner_id(self, input: impl Into<String>) -> Self

The identifier of the Amazon Web Services account that owns the subnet.

source

pub fn set_owner_id(self, input: Option<String>) -> Self

The identifier of the Amazon Web Services account that owns the subnet.

source

pub fn get_owner_id(&self) -> &Option<String>

The identifier of the Amazon Web Services account that owns the subnet.

source

pub fn state(self, input: impl Into<String>) -> Self

The current state of the subnet. Valid values are available or pending.

source

pub fn set_state(self, input: Option<String>) -> Self

The current state of the subnet. Valid values are available or pending.

source

pub fn get_state(&self) -> &Option<String>

The current state of the subnet. Valid values are available or pending.

source

pub fn subnet_arn(self, input: impl Into<String>) -> Self

The ARN of the subnet.

source

pub fn set_subnet_arn(self, input: Option<String>) -> Self

The ARN of the subnet.

source

pub fn get_subnet_arn(&self) -> &Option<String>

The ARN of the subnet.

source

pub fn subnet_id(self, input: impl Into<String>) -> Self

The identifier of the subnet.

source

pub fn set_subnet_id(self, input: Option<String>) -> Self

The identifier of the subnet.

source

pub fn get_subnet_id(&self) -> &Option<String>

The identifier of the subnet.

source

pub fn vpc_id(self, input: impl Into<String>) -> Self

The identifier of the VPC that contains the subnet.

source

pub fn set_vpc_id(self, input: Option<String>) -> Self

The identifier of the VPC that contains the subnet.

source

pub fn get_vpc_id(&self) -> &Option<String>

The identifier of the VPC that contains the subnet.

source

pub fn ipv6_cidr_block_association_set( self, input: Ipv6CidrBlockAssociation ) -> Self

Appends an item to ipv6_cidr_block_association_set.

To override the contents of this collection use set_ipv6_cidr_block_association_set.

The IPV6 CIDR blocks that are associated with the subnet.

source

pub fn set_ipv6_cidr_block_association_set( self, input: Option<Vec<Ipv6CidrBlockAssociation>> ) -> Self

The IPV6 CIDR blocks that are associated with the subnet.

source

pub fn get_ipv6_cidr_block_association_set( &self ) -> &Option<Vec<Ipv6CidrBlockAssociation>>

The IPV6 CIDR blocks that are associated with the subnet.

source

pub fn build(self) -> AwsEc2SubnetDetails

Consumes the builder and constructs a AwsEc2SubnetDetails.

Trait Implementations§

source§

impl Clone for AwsEc2SubnetDetailsBuilder

source§

fn clone(&self) -> AwsEc2SubnetDetailsBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AwsEc2SubnetDetailsBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AwsEc2SubnetDetailsBuilder

source§

fn default() -> AwsEc2SubnetDetailsBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for AwsEc2SubnetDetailsBuilder

source§

fn eq(&self, other: &AwsEc2SubnetDetailsBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for AwsEc2SubnetDetailsBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more