Struct aws_sdk_ecs::operation::stop_task::builders::StopTaskInputBuilder
source · #[non_exhaustive]pub struct StopTaskInputBuilder { /* private fields */ }Expand description
A builder for StopTaskInput.
Implementations§
source§impl StopTaskInputBuilder
impl StopTaskInputBuilder
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn task(self, input: impl Into<String>) -> Self
pub fn task(self, input: impl Into<String>) -> Self
The task ID of the task to stop.
This field is required.sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks> API operations on this task.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks> API operations on this task.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks> API operations on this task.
sourcepub fn build(self) -> Result<StopTaskInput, BuildError>
pub fn build(self) -> Result<StopTaskInput, BuildError>
Consumes the builder and constructs a StopTaskInput.
source§impl StopTaskInputBuilder
impl StopTaskInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<StopTaskOutput, SdkError<StopTaskError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<StopTaskOutput, SdkError<StopTaskError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StopTaskInputBuilder
impl Clone for StopTaskInputBuilder
source§fn clone(&self) -> StopTaskInputBuilder
fn clone(&self) -> StopTaskInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StopTaskInputBuilder
impl Debug for StopTaskInputBuilder
source§impl Default for StopTaskInputBuilder
impl Default for StopTaskInputBuilder
source§fn default() -> StopTaskInputBuilder
fn default() -> StopTaskInputBuilder
source§impl PartialEq for StopTaskInputBuilder
impl PartialEq for StopTaskInputBuilder
impl StructuralPartialEq for StopTaskInputBuilder
Auto Trait Implementations§
impl Freeze for StopTaskInputBuilder
impl RefUnwindSafe for StopTaskInputBuilder
impl Send for StopTaskInputBuilder
impl Sync for StopTaskInputBuilder
impl Unpin for StopTaskInputBuilder
impl UnwindSafe for StopTaskInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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