#[non_exhaustive]pub struct DeleteFleetsInputBuilder { /* private fields */ }
Expand description
A builder for DeleteFleetsInput
.
Implementations§
source§impl DeleteFleetsInputBuilder
impl DeleteFleetsInputBuilder
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 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 get_fleet_ids(&self) -> &Option<Vec<String>>
pub fn get_fleet_ids(&self) -> &Option<Vec<String>>
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 associated 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 no-terminate-instances
. 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 associated 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 no-terminate-instances
. 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 get_terminate_instances(&self) -> &Option<bool>
pub fn get_terminate_instances(&self) -> &Option<bool>
Indicates whether to terminate the associated 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 no-terminate-instances
. 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
.
source§impl DeleteFleetsInputBuilder
impl DeleteFleetsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteFleetsOutput, SdkError<DeleteFleetsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteFleetsOutput, SdkError<DeleteFleetsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteFleetsInputBuilder
impl Clone for DeleteFleetsInputBuilder
source§fn clone(&self) -> DeleteFleetsInputBuilder
fn clone(&self) -> DeleteFleetsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeleteFleetsInputBuilder
impl Debug for DeleteFleetsInputBuilder
source§impl Default for DeleteFleetsInputBuilder
impl Default for DeleteFleetsInputBuilder
source§fn default() -> DeleteFleetsInputBuilder
fn default() -> DeleteFleetsInputBuilder
source§impl PartialEq for DeleteFleetsInputBuilder
impl PartialEq for DeleteFleetsInputBuilder
source§fn eq(&self, other: &DeleteFleetsInputBuilder) -> bool
fn eq(&self, other: &DeleteFleetsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.