Struct aws_sdk_securityhub::model::aws_ecs_task_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cluster_arn(self, input: impl Into<String>) -> Self
pub fn cluster_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the cluster that hosts the task.
sourcepub fn set_cluster_arn(self, input: Option<String>) -> Self
pub fn set_cluster_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the cluster that hosts the task.
sourcepub fn task_definition_arn(self, input: impl Into<String>) -> Self
pub fn task_definition_arn(self, input: impl Into<String>) -> Self
The ARN of the task definition that creates the task.
sourcepub fn set_task_definition_arn(self, input: Option<String>) -> Self
pub fn set_task_definition_arn(self, input: Option<String>) -> Self
The ARN of the task definition that creates the task.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version counter for the task.
sourcepub fn created_at(self, input: impl Into<String>) -> Self
pub fn created_at(self, input: impl Into<String>) -> Self
The Unix timestamp for the time when the task was created. More specifically, it's for the time when the task entered the PENDING
state.
sourcepub fn set_created_at(self, input: Option<String>) -> Self
pub fn set_created_at(self, input: Option<String>) -> Self
The Unix timestamp for the time when the task was created. More specifically, it's for the time when the task entered the PENDING
state.
sourcepub fn started_at(self, input: impl Into<String>) -> Self
pub fn started_at(self, input: impl Into<String>) -> Self
The Unix timestamp for the time when the task started. More specifically, it's for the time when the task transitioned from the PENDING
state to the RUNNING
state.
sourcepub fn set_started_at(self, input: Option<String>) -> Self
pub fn set_started_at(self, input: Option<String>) -> Self
The Unix timestamp for the time when the task started. More specifically, it's for the time when the task transitioned from the PENDING
state to the RUNNING
state.
sourcepub fn started_by(self, input: impl Into<String>) -> Self
pub fn started_by(self, input: impl Into<String>) -> Self
The tag specified when a task is started. If an Amazon ECS service started the task, the startedBy
parameter contains the deployment ID of that service.
sourcepub fn set_started_by(self, input: Option<String>) -> Self
pub fn set_started_by(self, input: Option<String>) -> Self
The tag specified when a task is started. If an Amazon ECS service started the task, the startedBy
parameter contains the deployment ID of that service.
sourcepub fn group(self, input: impl Into<String>) -> Self
pub fn group(self, input: impl Into<String>) -> Self
The name of the task group that's associated with the task.
sourcepub fn set_group(self, input: Option<String>) -> Self
pub fn set_group(self, input: Option<String>) -> Self
The name of the task group that's associated with the task.
sourcepub fn volumes(self, input: AwsEcsTaskVolumeDetails) -> Self
pub fn volumes(self, input: AwsEcsTaskVolumeDetails) -> Self
Appends an item to volumes
.
To override the contents of this collection use set_volumes
.
Details about the data volume that is used in a task definition.
sourcepub fn set_volumes(self, input: Option<Vec<AwsEcsTaskVolumeDetails>>) -> Self
pub fn set_volumes(self, input: Option<Vec<AwsEcsTaskVolumeDetails>>) -> Self
Details about the data volume that is used in a task definition.
sourcepub fn containers(self, input: AwsEcsContainerDetails) -> Self
pub fn containers(self, input: AwsEcsContainerDetails) -> Self
Appends an item to containers
.
To override the contents of this collection use set_containers
.
The containers that are associated with the task.
sourcepub fn set_containers(self, input: Option<Vec<AwsEcsContainerDetails>>) -> Self
pub fn set_containers(self, input: Option<Vec<AwsEcsContainerDetails>>) -> Self
The containers that are associated with the task.
sourcepub fn build(self) -> AwsEcsTaskDetails
pub fn build(self) -> AwsEcsTaskDetails
Consumes the builder and constructs a AwsEcsTaskDetails
.