Struct aws_sdk_ec2::operation::modify_spot_fleet_request::builders::ModifySpotFleetRequestInputBuilder
source · #[non_exhaustive]pub struct ModifySpotFleetRequestInputBuilder { /* private fields */ }
Expand description
A builder for ModifySpotFleetRequestInput
.
Implementations§
source§impl ModifySpotFleetRequestInputBuilder
impl ModifySpotFleetRequestInputBuilder
sourcepub fn excess_capacity_termination_policy(
self,
input: ExcessCapacityTerminationPolicy
) -> Self
pub fn excess_capacity_termination_policy( self, input: ExcessCapacityTerminationPolicy ) -> Self
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain
.
sourcepub fn set_excess_capacity_termination_policy(
self,
input: Option<ExcessCapacityTerminationPolicy>
) -> Self
pub fn set_excess_capacity_termination_policy( self, input: Option<ExcessCapacityTerminationPolicy> ) -> Self
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain
.
sourcepub fn get_excess_capacity_termination_policy(
&self
) -> &Option<ExcessCapacityTerminationPolicy>
pub fn get_excess_capacity_termination_policy( &self ) -> &Option<ExcessCapacityTerminationPolicy>
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain
.
sourcepub fn launch_template_configs(self, input: LaunchTemplateConfig) -> Self
pub fn launch_template_configs(self, input: LaunchTemplateConfig) -> 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. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specified LaunchSpecifications
in your Spot Fleet request, then omit this parameter.
sourcepub fn set_launch_template_configs(
self,
input: Option<Vec<LaunchTemplateConfig>>
) -> Self
pub fn set_launch_template_configs( self, input: Option<Vec<LaunchTemplateConfig>> ) -> Self
The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specified LaunchSpecifications
in your Spot Fleet request, then omit this parameter.
sourcepub fn get_launch_template_configs(&self) -> &Option<Vec<LaunchTemplateConfig>>
pub fn get_launch_template_configs(&self) -> &Option<Vec<LaunchTemplateConfig>>
The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specified LaunchSpecifications
in your Spot Fleet request, then omit this parameter.
sourcepub fn spot_fleet_request_id(self, input: impl Into<String>) -> Self
pub fn spot_fleet_request_id(self, input: impl Into<String>) -> Self
The ID of the Spot Fleet request.
sourcepub fn set_spot_fleet_request_id(self, input: Option<String>) -> Self
pub fn set_spot_fleet_request_id(self, input: Option<String>) -> Self
The ID of the Spot Fleet request.
sourcepub fn get_spot_fleet_request_id(&self) -> &Option<String>
pub fn get_spot_fleet_request_id(&self) -> &Option<String>
The ID of the Spot Fleet request.
sourcepub fn target_capacity(self, input: i32) -> Self
pub fn target_capacity(self, input: i32) -> Self
The size of the fleet.
sourcepub fn set_target_capacity(self, input: Option<i32>) -> Self
pub fn set_target_capacity(self, input: Option<i32>) -> Self
The size of the fleet.
sourcepub fn get_target_capacity(&self) -> &Option<i32>
pub fn get_target_capacity(&self) -> &Option<i32>
The size of the fleet.
sourcepub fn on_demand_target_capacity(self, input: i32) -> Self
pub fn on_demand_target_capacity(self, input: i32) -> Self
The number of On-Demand Instances in the fleet.
sourcepub fn set_on_demand_target_capacity(self, input: Option<i32>) -> Self
pub fn set_on_demand_target_capacity(self, input: Option<i32>) -> Self
The number of On-Demand Instances in the fleet.
sourcepub fn get_on_demand_target_capacity(&self) -> &Option<i32>
pub fn get_on_demand_target_capacity(&self) -> &Option<i32>
The number of On-Demand Instances in the 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<ModifySpotFleetRequestInput, BuildError>
pub fn build(self) -> Result<ModifySpotFleetRequestInput, BuildError>
Consumes the builder and constructs a ModifySpotFleetRequestInput
.
source§impl ModifySpotFleetRequestInputBuilder
impl ModifySpotFleetRequestInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifySpotFleetRequestOutput, SdkError<ModifySpotFleetRequestError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifySpotFleetRequestOutput, SdkError<ModifySpotFleetRequestError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifySpotFleetRequestInputBuilder
impl Clone for ModifySpotFleetRequestInputBuilder
source§fn clone(&self) -> ModifySpotFleetRequestInputBuilder
fn clone(&self) -> ModifySpotFleetRequestInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifySpotFleetRequestInputBuilder
impl Default for ModifySpotFleetRequestInputBuilder
source§fn default() -> ModifySpotFleetRequestInputBuilder
fn default() -> ModifySpotFleetRequestInputBuilder
source§impl PartialEq<ModifySpotFleetRequestInputBuilder> for ModifySpotFleetRequestInputBuilder
impl PartialEq<ModifySpotFleetRequestInputBuilder> for ModifySpotFleetRequestInputBuilder
source§fn eq(&self, other: &ModifySpotFleetRequestInputBuilder) -> bool
fn eq(&self, other: &ModifySpotFleetRequestInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.