pub struct StopLaunchFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StopLaunch
.
Stops a launch that is currently running. After you stop a launch, you will not be able to resume it or restart it. Also, it will not be evaluated as a rule for traffic allocation, and the traffic that was allocated to the launch will instead be available to the feature's experiment, if there is one. Otherwise, all traffic will be served the default variation after the launch is stopped.
Implementations§
source§impl StopLaunchFluentBuilder
impl StopLaunchFluentBuilder
sourcepub fn as_input(&self) -> &StopLaunchInputBuilder
pub fn as_input(&self) -> &StopLaunchInputBuilder
Access the StopLaunch as a reference.
sourcepub async fn send(
self
) -> Result<StopLaunchOutput, SdkError<StopLaunchError, HttpResponse>>
pub async fn send( self ) -> Result<StopLaunchOutput, SdkError<StopLaunchError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<StopLaunchOutput, StopLaunchError, Self>
pub fn customize( self ) -> CustomizableOperation<StopLaunchOutput, StopLaunchError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn project(self, input: impl Into<String>) -> Self
pub fn project(self, input: impl Into<String>) -> Self
The name or ARN of the project that contains the launch that you want to stop.
sourcepub fn set_project(self, input: Option<String>) -> Self
pub fn set_project(self, input: Option<String>) -> Self
The name or ARN of the project that contains the launch that you want to stop.
sourcepub fn get_project(&self) -> &Option<String>
pub fn get_project(&self) -> &Option<String>
The name or ARN of the project that contains the launch that you want to stop.
sourcepub fn set_launch(self, input: Option<String>) -> Self
pub fn set_launch(self, input: Option<String>) -> Self
The name of the launch to stop.
sourcepub fn get_launch(&self) -> &Option<String>
pub fn get_launch(&self) -> &Option<String>
The name of the launch to stop.
sourcepub fn desired_state(self, input: LaunchStopDesiredState) -> Self
pub fn desired_state(self, input: LaunchStopDesiredState) -> Self
Specify whether to consider the launch as COMPLETED
or CANCELLED
after it stops.
sourcepub fn set_desired_state(self, input: Option<LaunchStopDesiredState>) -> Self
pub fn set_desired_state(self, input: Option<LaunchStopDesiredState>) -> Self
Specify whether to consider the launch as COMPLETED
or CANCELLED
after it stops.
sourcepub fn get_desired_state(&self) -> &Option<LaunchStopDesiredState>
pub fn get_desired_state(&self) -> &Option<LaunchStopDesiredState>
Specify whether to consider the launch as COMPLETED
or CANCELLED
after it stops.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
A string that describes why you are stopping the launch.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
A string that describes why you are stopping the launch.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
A string that describes why you are stopping the launch.
Trait Implementations§
source§impl Clone for StopLaunchFluentBuilder
impl Clone for StopLaunchFluentBuilder
source§fn clone(&self) -> StopLaunchFluentBuilder
fn clone(&self) -> StopLaunchFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for StopLaunchFluentBuilder
impl !RefUnwindSafe for StopLaunchFluentBuilder
impl Send for StopLaunchFluentBuilder
impl Sync for StopLaunchFluentBuilder
impl Unpin for StopLaunchFluentBuilder
impl !UnwindSafe for StopLaunchFluentBuilder
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