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
source§fn eq(&self, other: &StopTaskInputBuilder) -> bool
fn eq(&self, other: &StopTaskInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.