Struct aws_sdk_ec2::operation::create_placement_group::builders::CreatePlacementGroupInputBuilder
source · #[non_exhaustive]pub struct CreatePlacementGroupInputBuilder { /* private fields */ }
Expand description
A builder for CreatePlacementGroupInput
.
Implementations§
source§impl CreatePlacementGroupInputBuilder
impl CreatePlacementGroupInputBuilder
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 get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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 group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
sourcepub fn strategy(self, input: PlacementStrategy) -> Self
pub fn strategy(self, input: PlacementStrategy) -> Self
The placement strategy.
sourcepub fn set_strategy(self, input: Option<PlacementStrategy>) -> Self
pub fn set_strategy(self, input: Option<PlacementStrategy>) -> Self
The placement strategy.
sourcepub fn get_strategy(&self) -> &Option<PlacementStrategy>
pub fn get_strategy(&self) -> &Option<PlacementStrategy>
The placement strategy.
sourcepub fn partition_count(self, input: i32) -> Self
pub fn partition_count(self, input: i32) -> Self
The number of partitions. Valid only when Strategy is set to partition
.
sourcepub fn set_partition_count(self, input: Option<i32>) -> Self
pub fn set_partition_count(self, input: Option<i32>) -> Self
The number of partitions. Valid only when Strategy is set to partition
.
sourcepub fn get_partition_count(&self) -> &Option<i32>
pub fn get_partition_count(&self) -> &Option<i32>
The number of partitions. Valid only when Strategy is set to partition
.
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 apply to the new placement group.
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 apply to the new placement group.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the new placement group.
sourcepub fn spread_level(self, input: SpreadLevel) -> Self
pub fn spread_level(self, input: SpreadLevel) -> Self
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
sourcepub fn set_spread_level(self, input: Option<SpreadLevel>) -> Self
pub fn set_spread_level(self, input: Option<SpreadLevel>) -> Self
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
sourcepub fn get_spread_level(&self) -> &Option<SpreadLevel>
pub fn get_spread_level(&self) -> &Option<SpreadLevel>
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
sourcepub fn build(self) -> Result<CreatePlacementGroupInput, BuildError>
pub fn build(self) -> Result<CreatePlacementGroupInput, BuildError>
Consumes the builder and constructs a CreatePlacementGroupInput
.
source§impl CreatePlacementGroupInputBuilder
impl CreatePlacementGroupInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePlacementGroupOutput, SdkError<CreatePlacementGroupError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePlacementGroupOutput, SdkError<CreatePlacementGroupError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePlacementGroupInputBuilder
impl Clone for CreatePlacementGroupInputBuilder
source§fn clone(&self) -> CreatePlacementGroupInputBuilder
fn clone(&self) -> CreatePlacementGroupInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreatePlacementGroupInputBuilder
impl Default for CreatePlacementGroupInputBuilder
source§fn default() -> CreatePlacementGroupInputBuilder
fn default() -> CreatePlacementGroupInputBuilder
source§impl PartialEq<CreatePlacementGroupInputBuilder> for CreatePlacementGroupInputBuilder
impl PartialEq<CreatePlacementGroupInputBuilder> for CreatePlacementGroupInputBuilder
source§fn eq(&self, other: &CreatePlacementGroupInputBuilder) -> bool
fn eq(&self, other: &CreatePlacementGroupInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.