/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides details about a task in a cluster.

See Also:

AWS * API Reference

*/ class AwsEcsTaskDetails { public: AWS_SECURITYHUB_API AwsEcsTaskDetails(); AWS_SECURITYHUB_API AwsEcsTaskDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEcsTaskDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline AwsEcsTaskDetails& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline AwsEcsTaskDetails& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster that hosts the task.

*/ inline AwsEcsTaskDetails& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

The ARN of the task definition that creates the task.

*/ inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; } /** *

The ARN of the task definition that creates the task.

*/ inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; } /** *

The ARN of the task definition that creates the task.

*/ inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; } /** *

The ARN of the task definition that creates the task.

*/ inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); } /** *

The ARN of the task definition that creates the task.

*/ inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); } /** *

The ARN of the task definition that creates the task.

*/ inline AwsEcsTaskDetails& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;} /** *

The ARN of the task definition that creates the task.

*/ inline AwsEcsTaskDetails& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;} /** *

The ARN of the task definition that creates the task.

*/ inline AwsEcsTaskDetails& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;} /** *

The version counter for the task.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version counter for the task.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version counter for the task.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version counter for the task.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version counter for the task.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version counter for the task.

*/ inline AwsEcsTaskDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version counter for the task.

*/ inline AwsEcsTaskDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version counter for the task.

*/ inline AwsEcsTaskDetails& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

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.

*/ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** *

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.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

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.

*/ inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

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.

*/ inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

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.

*/ inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); } /** *

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.

*/ inline AwsEcsTaskDetails& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** *

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.

*/ inline AwsEcsTaskDetails& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

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.

*/ inline AwsEcsTaskDetails& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** *

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.

*/ inline const Aws::String& GetStartedAt() const{ return m_startedAt; } /** *

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.

*/ inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } /** *

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.

*/ inline void SetStartedAt(const Aws::String& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } /** *

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.

*/ inline void SetStartedAt(Aws::String&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } /** *

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.

*/ inline void SetStartedAt(const char* value) { m_startedAtHasBeenSet = true; m_startedAt.assign(value); } /** *

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.

*/ inline AwsEcsTaskDetails& WithStartedAt(const Aws::String& value) { SetStartedAt(value); return *this;} /** *

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.

*/ inline AwsEcsTaskDetails& WithStartedAt(Aws::String&& value) { SetStartedAt(std::move(value)); return *this;} /** *

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.

*/ inline AwsEcsTaskDetails& WithStartedAt(const char* value) { SetStartedAt(value); return *this;} /** *

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.

*/ inline const Aws::String& GetStartedBy() const{ return m_startedBy; } /** *

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.

*/ inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; } /** *

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.

*/ inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; } /** *

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.

*/ inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); } /** *

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.

*/ inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); } /** *

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.

*/ inline AwsEcsTaskDetails& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;} /** *

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.

*/ inline AwsEcsTaskDetails& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;} /** *

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.

*/ inline AwsEcsTaskDetails& WithStartedBy(const char* value) { SetStartedBy(value); return *this;} /** *

The name of the task group that's associated with the task.

*/ inline const Aws::String& GetGroup() const{ return m_group; } /** *

The name of the task group that's associated with the task.

*/ inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; } /** *

The name of the task group that's associated with the task.

*/ inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; } /** *

The name of the task group that's associated with the task.

*/ inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); } /** *

The name of the task group that's associated with the task.

*/ inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); } /** *

The name of the task group that's associated with the task.

*/ inline AwsEcsTaskDetails& WithGroup(const Aws::String& value) { SetGroup(value); return *this;} /** *

The name of the task group that's associated with the task.

*/ inline AwsEcsTaskDetails& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;} /** *

The name of the task group that's associated with the task.

*/ inline AwsEcsTaskDetails& WithGroup(const char* value) { SetGroup(value); return *this;} /** *

Details about the data volume that is used in a task definition.

*/ inline const Aws::Vector& GetVolumes() const{ return m_volumes; } /** *

Details about the data volume that is used in a task definition.

*/ inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; } /** *

Details about the data volume that is used in a task definition.

*/ inline void SetVolumes(const Aws::Vector& value) { m_volumesHasBeenSet = true; m_volumes = value; } /** *

Details about the data volume that is used in a task definition.

*/ inline void SetVolumes(Aws::Vector&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); } /** *

Details about the data volume that is used in a task definition.

*/ inline AwsEcsTaskDetails& WithVolumes(const Aws::Vector& value) { SetVolumes(value); return *this;} /** *

Details about the data volume that is used in a task definition.

*/ inline AwsEcsTaskDetails& WithVolumes(Aws::Vector&& value) { SetVolumes(std::move(value)); return *this;} /** *

Details about the data volume that is used in a task definition.

*/ inline AwsEcsTaskDetails& AddVolumes(const AwsEcsTaskVolumeDetails& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; } /** *

Details about the data volume that is used in a task definition.

*/ inline AwsEcsTaskDetails& AddVolumes(AwsEcsTaskVolumeDetails&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; } /** *

The containers that are associated with the task.

*/ inline const Aws::Vector& GetContainers() const{ return m_containers; } /** *

The containers that are associated with the task.

*/ inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; } /** *

The containers that are associated with the task.

*/ inline void SetContainers(const Aws::Vector& value) { m_containersHasBeenSet = true; m_containers = value; } /** *

The containers that are associated with the task.

*/ inline void SetContainers(Aws::Vector&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); } /** *

The containers that are associated with the task.

*/ inline AwsEcsTaskDetails& WithContainers(const Aws::Vector& value) { SetContainers(value); return *this;} /** *

The containers that are associated with the task.

*/ inline AwsEcsTaskDetails& WithContainers(Aws::Vector&& value) { SetContainers(std::move(value)); return *this;} /** *

The containers that are associated with the task.

*/ inline AwsEcsTaskDetails& AddContainers(const AwsEcsContainerDetails& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; } /** *

The containers that are associated with the task.

*/ inline AwsEcsTaskDetails& AddContainers(AwsEcsContainerDetails&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; } private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; Aws::String m_taskDefinitionArn; bool m_taskDefinitionArnHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_startedAt; bool m_startedAtHasBeenSet = false; Aws::String m_startedBy; bool m_startedByHasBeenSet = false; Aws::String m_group; bool m_groupHasBeenSet = false; Aws::Vector m_volumes; bool m_volumesHasBeenSet = false; Aws::Vector m_containers; bool m_containersHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws