#[non_exhaustive]pub struct StopInstanceInputBuilder { /* private fields */ }
Expand description
A builder for StopInstanceInput
.
Implementations§
source§impl StopInstanceInputBuilder
impl StopInstanceInputBuilder
sourcepub fn instance_name(self, input: impl Into<String>) -> Self
pub fn instance_name(self, input: impl Into<String>) -> Self
The name of the instance (a virtual private server) to stop.
This field is required.sourcepub fn set_instance_name(self, input: Option<String>) -> Self
pub fn set_instance_name(self, input: Option<String>) -> Self
The name of the instance (a virtual private server) to stop.
sourcepub fn get_instance_name(&self) -> &Option<String>
pub fn get_instance_name(&self) -> &Option<String>
The name of the instance (a virtual private server) to stop.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
When set to True
, forces a Lightsail instance that is stuck in a stopping
state to stop.
Only use the force
parameter if your instance is stuck in the stopping
state. In any other state, your instance should stop normally without adding this parameter to your API request.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
When set to True
, forces a Lightsail instance that is stuck in a stopping
state to stop.
Only use the force
parameter if your instance is stuck in the stopping
state. In any other state, your instance should stop normally without adding this parameter to your API request.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
When set to True
, forces a Lightsail instance that is stuck in a stopping
state to stop.
Only use the force
parameter if your instance is stuck in the stopping
state. In any other state, your instance should stop normally without adding this parameter to your API request.
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 ==
.impl StructuralPartialEq for StopInstanceInputBuilder
Auto Trait Implementations§
impl Freeze for StopInstanceInputBuilder
impl RefUnwindSafe for StopInstanceInputBuilder
impl Send for StopInstanceInputBuilder
impl Sync for StopInstanceInputBuilder
impl Unpin for StopInstanceInputBuilder
impl UnwindSafe for StopInstanceInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more