Struct aws_sdk_ec2::operation::create_subnet_cidr_reservation::builders::CreateSubnetCidrReservationInputBuilder
source · #[non_exhaustive]pub struct CreateSubnetCidrReservationInputBuilder { /* private fields */ }Expand description
A builder for CreateSubnetCidrReservationInput.
Implementations§
source§impl CreateSubnetCidrReservationInputBuilder
impl CreateSubnetCidrReservationInputBuilder
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet.
sourcepub fn reservation_type(self, input: SubnetCidrReservationType) -> Self
pub fn reservation_type(self, input: SubnetCidrReservationType) -> Self
The type of reservation.
The following are valid values:
-
prefix: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide. -
explicit: You manually assign the IP addresses to resources that reside in your subnet.
sourcepub fn set_reservation_type(
self,
input: Option<SubnetCidrReservationType>
) -> Self
pub fn set_reservation_type( self, input: Option<SubnetCidrReservationType> ) -> Self
The type of reservation.
The following are valid values:
-
prefix: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide. -
explicit: You manually assign the IP addresses to resources that reside in your subnet.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description to assign to the subnet CIDR reservation.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description to assign to the subnet CIDR reservation.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications.
To override the contents of this collection use set_tag_specifications.
The tags to assign to the subnet CIDR reservation.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
The tags to assign to the subnet CIDR reservation.
sourcepub fn build(self) -> Result<CreateSubnetCidrReservationInput, BuildError>
pub fn build(self) -> Result<CreateSubnetCidrReservationInput, BuildError>
Consumes the builder and constructs a CreateSubnetCidrReservationInput.
Trait Implementations§
source§impl Clone for CreateSubnetCidrReservationInputBuilder
impl Clone for CreateSubnetCidrReservationInputBuilder
source§fn clone(&self) -> CreateSubnetCidrReservationInputBuilder
fn clone(&self) -> CreateSubnetCidrReservationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateSubnetCidrReservationInputBuilder
impl Default for CreateSubnetCidrReservationInputBuilder
source§fn default() -> CreateSubnetCidrReservationInputBuilder
fn default() -> CreateSubnetCidrReservationInputBuilder
source§impl PartialEq<CreateSubnetCidrReservationInputBuilder> for CreateSubnetCidrReservationInputBuilder
impl PartialEq<CreateSubnetCidrReservationInputBuilder> for CreateSubnetCidrReservationInputBuilder
source§fn eq(&self, other: &CreateSubnetCidrReservationInputBuilder) -> bool
fn eq(&self, other: &CreateSubnetCidrReservationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.