#[non_exhaustive]pub struct StopInstanceInputBuilder { /* private fields */ }Expand description
A builder for StopInstanceInput.
Implementations§
source§impl StopInstanceInputBuilder
impl StopInstanceInputBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The instance ID.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The instance ID.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The instance ID.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.
sourcepub fn build(self) -> Result<StopInstanceInput, BuildError>
pub fn build(self) -> Result<StopInstanceInput, BuildError>
Consumes the builder and constructs a StopInstanceInput.
source§impl StopInstanceInputBuilder
impl StopInstanceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StopInstanceOutput, SdkError<StopInstanceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StopInstanceOutput, SdkError<StopInstanceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StopInstanceInputBuilder
impl Clone for StopInstanceInputBuilder
source§fn clone(&self) -> StopInstanceInputBuilder
fn clone(&self) -> StopInstanceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StopInstanceInputBuilder
impl Debug for StopInstanceInputBuilder
source§impl Default for StopInstanceInputBuilder
impl Default for StopInstanceInputBuilder
source§fn default() -> StopInstanceInputBuilder
fn default() -> StopInstanceInputBuilder
source§impl PartialEq for StopInstanceInputBuilder
impl PartialEq for StopInstanceInputBuilder
source§fn eq(&self, other: &StopInstanceInputBuilder) -> bool
fn eq(&self, other: &StopInstanceInputBuilder) -> bool
self and other values to be equal, and is used
by ==.