#[non_exhaustive]pub struct ModifyFleetInputBuilder { /* private fields */ }
Expand description
A builder for ModifyFleetInput
.
Implementations§
source§impl ModifyFleetInputBuilder
impl ModifyFleetInputBuilder
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 excess_capacity_termination_policy(
self,
input: FleetExcessCapacityTerminationPolicy
) -> Self
pub fn excess_capacity_termination_policy( self, input: FleetExcessCapacityTerminationPolicy ) -> Self
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
sourcepub fn set_excess_capacity_termination_policy(
self,
input: Option<FleetExcessCapacityTerminationPolicy>
) -> Self
pub fn set_excess_capacity_termination_policy( self, input: Option<FleetExcessCapacityTerminationPolicy> ) -> Self
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
sourcepub fn get_excess_capacity_termination_policy(
&self
) -> &Option<FleetExcessCapacityTerminationPolicy>
pub fn get_excess_capacity_termination_policy( &self ) -> &Option<FleetExcessCapacityTerminationPolicy>
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
sourcepub fn launch_template_configs(
self,
input: FleetLaunchTemplateConfigRequest
) -> Self
pub fn launch_template_configs( self, input: FleetLaunchTemplateConfigRequest ) -> Self
Appends an item to launch_template_configs
.
To override the contents of this collection use set_launch_template_configs
.
The launch template and overrides.
sourcepub fn set_launch_template_configs(
self,
input: Option<Vec<FleetLaunchTemplateConfigRequest>>
) -> Self
pub fn set_launch_template_configs( self, input: Option<Vec<FleetLaunchTemplateConfigRequest>> ) -> Self
The launch template and overrides.
sourcepub fn get_launch_template_configs(
&self
) -> &Option<Vec<FleetLaunchTemplateConfigRequest>>
pub fn get_launch_template_configs( &self ) -> &Option<Vec<FleetLaunchTemplateConfigRequest>>
The launch template and overrides.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
The ID of the EC2 Fleet.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
The ID of the EC2 Fleet.
sourcepub fn target_capacity_specification(
self,
input: TargetCapacitySpecificationRequest
) -> Self
pub fn target_capacity_specification( self, input: TargetCapacitySpecificationRequest ) -> Self
The size of the EC2 Fleet.
sourcepub fn set_target_capacity_specification(
self,
input: Option<TargetCapacitySpecificationRequest>
) -> Self
pub fn set_target_capacity_specification( self, input: Option<TargetCapacitySpecificationRequest> ) -> Self
The size of the EC2 Fleet.
sourcepub fn get_target_capacity_specification(
&self
) -> &Option<TargetCapacitySpecificationRequest>
pub fn get_target_capacity_specification( &self ) -> &Option<TargetCapacitySpecificationRequest>
The size of the EC2 Fleet.
sourcepub fn set_context(self, input: Option<String>) -> Self
pub fn set_context(self, input: Option<String>) -> Self
Reserved.
sourcepub fn get_context(&self) -> &Option<String>
pub fn get_context(&self) -> &Option<String>
Reserved.
sourcepub fn build(self) -> Result<ModifyFleetInput, BuildError>
pub fn build(self) -> Result<ModifyFleetInput, BuildError>
Consumes the builder and constructs a ModifyFleetInput
.
source§impl ModifyFleetInputBuilder
impl ModifyFleetInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyFleetOutput, SdkError<ModifyFleetError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyFleetOutput, SdkError<ModifyFleetError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyFleetInputBuilder
impl Clone for ModifyFleetInputBuilder
source§fn clone(&self) -> ModifyFleetInputBuilder
fn clone(&self) -> ModifyFleetInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyFleetInputBuilder
impl Debug for ModifyFleetInputBuilder
source§impl Default for ModifyFleetInputBuilder
impl Default for ModifyFleetInputBuilder
source§fn default() -> ModifyFleetInputBuilder
fn default() -> ModifyFleetInputBuilder
source§impl PartialEq<ModifyFleetInputBuilder> for ModifyFleetInputBuilder
impl PartialEq<ModifyFleetInputBuilder> for ModifyFleetInputBuilder
source§fn eq(&self, other: &ModifyFleetInputBuilder) -> bool
fn eq(&self, other: &ModifyFleetInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.