Struct aws_sdk_ec2::input::delete_fleets_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteFleetsInput
.
Implementations§
source§impl Builder
impl Builder
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 fleet_ids(self, input: impl Into<String>) -> Self
pub fn fleet_ids(self, input: impl Into<String>) -> Self
Appends an item to fleet_ids
.
To override the contents of this collection use set_fleet_ids
.
The IDs of the EC2 Fleets.
sourcepub fn set_fleet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_fleet_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the EC2 Fleets.
sourcepub fn terminate_instances(self, input: bool) -> Self
pub fn terminate_instances(self, input: bool) -> Self
Indicates whether to terminate the instances when the EC2 Fleet is deleted. The default is to terminate the instances.
To let the instances continue to run after the EC2 Fleet is deleted, specify NoTerminateInstances
. Supported only for fleets of type maintain
and request
.
For instant
fleets, you cannot specify NoTerminateInstances
. A deleted instant
fleet with running instances is not supported.
sourcepub fn set_terminate_instances(self, input: Option<bool>) -> Self
pub fn set_terminate_instances(self, input: Option<bool>) -> Self
Indicates whether to terminate the instances when the EC2 Fleet is deleted. The default is to terminate the instances.
To let the instances continue to run after the EC2 Fleet is deleted, specify NoTerminateInstances
. Supported only for fleets of type maintain
and request
.
For instant
fleets, you cannot specify NoTerminateInstances
. A deleted instant
fleet with running instances is not supported.
sourcepub fn build(self) -> Result<DeleteFleetsInput, BuildError>
pub fn build(self) -> Result<DeleteFleetsInput, BuildError>
Consumes the builder and constructs a DeleteFleetsInput
.