pub struct StopExperimentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StopExperiment
.
Stops an experiment that is currently running. If you stop an experiment, you can't resume it or restart it.
Implementations§
source§impl StopExperimentFluentBuilder
impl StopExperimentFluentBuilder
sourcepub fn as_input(&self) -> &StopExperimentInputBuilder
pub fn as_input(&self) -> &StopExperimentInputBuilder
Access the StopExperiment as a reference.
sourcepub async fn send(
self
) -> Result<StopExperimentOutput, SdkError<StopExperimentError, HttpResponse>>
pub async fn send( self ) -> Result<StopExperimentOutput, SdkError<StopExperimentError, 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<StopExperimentOutput, StopExperimentError, Self>
pub fn customize( self ) -> CustomizableOperation<StopExperimentOutput, StopExperimentError, 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 experiment 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 experiment 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 experiment to stop.
sourcepub fn experiment(self, input: impl Into<String>) -> Self
pub fn experiment(self, input: impl Into<String>) -> Self
The name of the experiment to stop.
sourcepub fn set_experiment(self, input: Option<String>) -> Self
pub fn set_experiment(self, input: Option<String>) -> Self
The name of the experiment to stop.
sourcepub fn get_experiment(&self) -> &Option<String>
pub fn get_experiment(&self) -> &Option<String>
The name of the experiment to stop.
sourcepub fn desired_state(self, input: ExperimentStopDesiredState) -> Self
pub fn desired_state(self, input: ExperimentStopDesiredState) -> Self
Specify whether the experiment is to be considered COMPLETED
or CANCELLED
after it stops.
sourcepub fn set_desired_state(
self,
input: Option<ExperimentStopDesiredState>
) -> Self
pub fn set_desired_state( self, input: Option<ExperimentStopDesiredState> ) -> Self
Specify whether the experiment is to be considered COMPLETED
or CANCELLED
after it stops.
sourcepub fn get_desired_state(&self) -> &Option<ExperimentStopDesiredState>
pub fn get_desired_state(&self) -> &Option<ExperimentStopDesiredState>
Specify whether the experiment is to be considered 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 experiment.
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 experiment.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
A string that describes why you are stopping the experiment.
Trait Implementations§
source§impl Clone for StopExperimentFluentBuilder
impl Clone for StopExperimentFluentBuilder
source§fn clone(&self) -> StopExperimentFluentBuilder
fn clone(&self) -> StopExperimentFluentBuilder
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 StopExperimentFluentBuilder
impl !RefUnwindSafe for StopExperimentFluentBuilder
impl Send for StopExperimentFluentBuilder
impl Sync for StopExperimentFluentBuilder
impl Unpin for StopExperimentFluentBuilder
impl !UnwindSafe for StopExperimentFluentBuilder
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