Struct aws_sdk_ecs::input::submit_task_state_change_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for SubmitTaskStateChangeInput.
Implementations§
source§impl Builder
impl Builder
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.
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.
sourcepub fn task(self, input: impl Into<String>) -> Self
pub fn task(self, input: impl Into<String>) -> Self
The task ID or full ARN of the task in the state change request.
sourcepub fn set_task(self, input: Option<String>) -> Self
pub fn set_task(self, input: Option<String>) -> Self
The task ID or full ARN of the task in the state change request.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the state change request.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason for the state change request.
sourcepub fn containers(self, input: ContainerStateChange) -> Self
pub fn containers(self, input: ContainerStateChange) -> Self
Appends an item to containers.
To override the contents of this collection use set_containers.
Any containers that's associated with the state change request.
sourcepub fn set_containers(self, input: Option<Vec<ContainerStateChange>>) -> Self
pub fn set_containers(self, input: Option<Vec<ContainerStateChange>>) -> Self
Any containers that's associated with the state change request.
sourcepub fn attachments(self, input: AttachmentStateChange) -> Self
pub fn attachments(self, input: AttachmentStateChange) -> Self
Appends an item to attachments.
To override the contents of this collection use set_attachments.
Any attachments associated with the state change request.
sourcepub fn set_attachments(self, input: Option<Vec<AttachmentStateChange>>) -> Self
pub fn set_attachments(self, input: Option<Vec<AttachmentStateChange>>) -> Self
Any attachments associated with the state change request.
sourcepub fn managed_agents(self, input: ManagedAgentStateChange) -> Self
pub fn managed_agents(self, input: ManagedAgentStateChange) -> Self
Appends an item to managed_agents.
To override the contents of this collection use set_managed_agents.
The details for the managed agent that's associated with the task.
sourcepub fn set_managed_agents(
self,
input: Option<Vec<ManagedAgentStateChange>>
) -> Self
pub fn set_managed_agents(
self,
input: Option<Vec<ManagedAgentStateChange>>
) -> Self
The details for the managed agent that's associated with the task.
sourcepub fn pull_started_at(self, input: DateTime) -> Self
pub fn pull_started_at(self, input: DateTime) -> Self
The Unix timestamp for the time when the container image pull started.
sourcepub fn set_pull_started_at(self, input: Option<DateTime>) -> Self
pub fn set_pull_started_at(self, input: Option<DateTime>) -> Self
The Unix timestamp for the time when the container image pull started.
sourcepub fn pull_stopped_at(self, input: DateTime) -> Self
pub fn pull_stopped_at(self, input: DateTime) -> Self
The Unix timestamp for the time when the container image pull completed.
sourcepub fn set_pull_stopped_at(self, input: Option<DateTime>) -> Self
pub fn set_pull_stopped_at(self, input: Option<DateTime>) -> Self
The Unix timestamp for the time when the container image pull completed.
sourcepub fn execution_stopped_at(self, input: DateTime) -> Self
pub fn execution_stopped_at(self, input: DateTime) -> Self
The Unix timestamp for the time when the task execution stopped.
sourcepub fn set_execution_stopped_at(self, input: Option<DateTime>) -> Self
pub fn set_execution_stopped_at(self, input: Option<DateTime>) -> Self
The Unix timestamp for the time when the task execution stopped.
sourcepub fn build(self) -> Result<SubmitTaskStateChangeInput, BuildError>
pub fn build(self) -> Result<SubmitTaskStateChangeInput, BuildError>
Consumes the builder and constructs a SubmitTaskStateChangeInput.