Struct aws_sdk_securityhub::model::aws_ec2_subnet_details::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2SubnetDetails
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn assign_ipv6_address_on_creation(self, input: bool) -> Self
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.
sourcepub fn set_assign_ipv6_address_on_creation(self, input: Option<bool>) -> Self
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.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for the subnet.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone for the subnet.
sourcepub fn availability_zone_id(self, input: impl Into<String>) -> Self
pub fn availability_zone_id(self, input: impl Into<String>) -> Self
The identifier of the Availability Zone for the subnet.
sourcepub fn set_availability_zone_id(self, input: Option<String>) -> Self
pub fn set_availability_zone_id(self, input: Option<String>) -> Self
The identifier of the Availability Zone for the subnet.
sourcepub fn available_ip_address_count(self, input: i32) -> Self
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.
sourcepub fn set_available_ip_address_count(self, input: Option<i32>) -> Self
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.
sourcepub fn cidr_block(self, input: impl Into<String>) -> Self
pub fn cidr_block(self, input: impl Into<String>) -> Self
The IPV4 CIDR block that is assigned to the subnet.
sourcepub fn set_cidr_block(self, input: Option<String>) -> Self
pub fn set_cidr_block(self, input: Option<String>) -> Self
The IPV4 CIDR block that is assigned to the subnet.
sourcepub fn default_for_az(self, input: bool) -> Self
pub fn default_for_az(self, input: bool) -> Self
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn set_default_for_az(self, input: Option<bool>) -> Self
pub fn set_default_for_az(self, input: Option<bool>) -> Self
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn map_public_ip_on_launch(self, input: bool) -> Self
pub fn map_public_ip_on_launch(self, input: bool) -> Self
Whether instances in this subnet receive a public IP address.
sourcepub fn set_map_public_ip_on_launch(self, input: Option<bool>) -> Self
pub fn set_map_public_ip_on_launch(self, input: Option<bool>) -> Self
Whether instances in this subnet receive a public IP address.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Web Services account that owns the subnet.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The identifier of the Amazon Web Services account that owns the subnet.
sourcepub fn subnet_arn(self, input: impl Into<String>) -> Self
pub fn subnet_arn(self, input: impl Into<String>) -> Self
The ARN of the subnet.
sourcepub fn set_subnet_arn(self, input: Option<String>) -> Self
pub fn set_subnet_arn(self, input: Option<String>) -> Self
The ARN of the subnet.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The identifier of the subnet.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The identifier of the VPC that contains the subnet.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The identifier of the VPC that contains the subnet.
sourcepub fn ipv6_cidr_block_association_set(
self,
input: Ipv6CidrBlockAssociation
) -> Self
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.
sourcepub fn set_ipv6_cidr_block_association_set(
self,
input: Option<Vec<Ipv6CidrBlockAssociation>>
) -> Self
pub fn set_ipv6_cidr_block_association_set(
self,
input: Option<Vec<Ipv6CidrBlockAssociation>>
) -> Self
The IPV6 CIDR blocks that are associated with the subnet.
sourcepub fn build(self) -> AwsEc2SubnetDetails
pub fn build(self) -> AwsEc2SubnetDetails
Consumes the builder and constructs a AwsEc2SubnetDetails
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more