#[non_exhaustive]pub struct StopInstancesInputBuilder { /* private fields */ }
Expand description
A builder for StopInstancesInput
.
Implementations§
source§impl StopInstancesInputBuilder
impl StopInstancesInputBuilder
sourcepub fn instance_ids(self, input: impl Into<String>) -> Self
pub fn instance_ids(self, input: impl Into<String>) -> Self
Appends an item to instance_ids
.
To override the contents of this collection use set_instance_ids
.
The IDs of the instances.
sourcepub fn set_instance_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the instances.
sourcepub fn hibernate(self, input: bool) -> Self
pub fn hibernate(self, input: bool) -> Self
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
sourcepub fn set_hibernate(self, input: Option<bool>) -> Self
pub fn set_hibernate(self, input: Option<bool>) -> Self
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
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 force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
sourcepub fn build(self) -> Result<StopInstancesInput, BuildError>
pub fn build(self) -> Result<StopInstancesInput, BuildError>
Consumes the builder and constructs a StopInstancesInput
.
Trait Implementations§
source§impl Clone for StopInstancesInputBuilder
impl Clone for StopInstancesInputBuilder
source§fn clone(&self) -> StopInstancesInputBuilder
fn clone(&self) -> StopInstancesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StopInstancesInputBuilder
impl Debug for StopInstancesInputBuilder
source§impl Default for StopInstancesInputBuilder
impl Default for StopInstancesInputBuilder
source§fn default() -> StopInstancesInputBuilder
fn default() -> StopInstancesInputBuilder
source§impl PartialEq<StopInstancesInputBuilder> for StopInstancesInputBuilder
impl PartialEq<StopInstancesInputBuilder> for StopInstancesInputBuilder
source§fn eq(&self, other: &StopInstancesInputBuilder) -> bool
fn eq(&self, other: &StopInstancesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.