/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SnowDeviceManagement { namespace Model { class DescribeTaskResult { public: AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult(); AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult(const Aws::AmazonWebServiceResult& result); AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

When the task was completed.

*/ inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; } /** *

When the task was completed.

*/ inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAt = value; } /** *

When the task was completed.

*/ inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAt = std::move(value); } /** *

When the task was completed.

*/ inline DescribeTaskResult& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;} /** *

When the task was completed.

*/ inline DescribeTaskResult& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;} /** *

When the CreateTask operation was called.

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

When the CreateTask operation was called.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

When the CreateTask operation was called.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

When the CreateTask operation was called.

*/ inline DescribeTaskResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

When the CreateTask operation was called.

*/ inline DescribeTaskResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The description provided of the task and managed devices.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description provided of the task and managed devices.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description provided of the task and managed devices.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description provided of the task and managed devices.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description provided of the task and managed devices.

*/ inline DescribeTaskResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description provided of the task and managed devices.

*/ inline DescribeTaskResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description provided of the task and managed devices.

*/ inline DescribeTaskResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

When the state of the task was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

When the state of the task was last updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; } /** *

When the state of the task was last updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); } /** *

When the state of the task was last updated.

*/ inline DescribeTaskResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

When the state of the task was last updated.

*/ inline DescribeTaskResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The current state of the task.

*/ inline const TaskState& GetState() const{ return m_state; } /** *

The current state of the task.

*/ inline void SetState(const TaskState& value) { m_state = value; } /** *

The current state of the task.

*/ inline void SetState(TaskState&& value) { m_state = std::move(value); } /** *

The current state of the task.

*/ inline DescribeTaskResult& WithState(const TaskState& value) { SetState(value); return *this;} /** *

The current state of the task.

*/ inline DescribeTaskResult& WithState(TaskState&& value) { SetState(std::move(value)); return *this;} /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

Optional metadata that you assign to a resource. You can use tags to * categorize a resource in different ways, such as by purpose, owner, or * environment.

*/ inline DescribeTaskResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

The managed devices that the task was sent to.

*/ inline const Aws::Vector& GetTargets() const{ return m_targets; } /** *

The managed devices that the task was sent to.

*/ inline void SetTargets(const Aws::Vector& value) { m_targets = value; } /** *

The managed devices that the task was sent to.

*/ inline void SetTargets(Aws::Vector&& value) { m_targets = std::move(value); } /** *

The managed devices that the task was sent to.

*/ inline DescribeTaskResult& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} /** *

The managed devices that the task was sent to.

*/ inline DescribeTaskResult& WithTargets(Aws::Vector&& value) { SetTargets(std::move(value)); return *this;} /** *

The managed devices that the task was sent to.

*/ inline DescribeTaskResult& AddTargets(const Aws::String& value) { m_targets.push_back(value); return *this; } /** *

The managed devices that the task was sent to.

*/ inline DescribeTaskResult& AddTargets(Aws::String&& value) { m_targets.push_back(std::move(value)); return *this; } /** *

The managed devices that the task was sent to.

*/ inline DescribeTaskResult& AddTargets(const char* value) { m_targets.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline const Aws::String& GetTaskArn() const{ return m_taskArn; } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline void SetTaskArn(const char* value) { m_taskArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline DescribeTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the task.

*/ inline DescribeTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the task.

*/ inline DescribeTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} /** *

The ID of the task.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The ID of the task.

*/ inline void SetTaskId(const Aws::String& value) { m_taskId = value; } /** *

The ID of the task.

*/ inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); } /** *

The ID of the task.

*/ inline void SetTaskId(const char* value) { m_taskId.assign(value); } /** *

The ID of the task.

*/ inline DescribeTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The ID of the task.

*/ inline DescribeTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

The ID of the task.

*/ inline DescribeTaskResult& WithTaskId(const char* value) { SetTaskId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_completedAt; Aws::Utils::DateTime m_createdAt; Aws::String m_description; Aws::Utils::DateTime m_lastUpdatedAt; TaskState m_state; Aws::Map m_tags; Aws::Vector m_targets; Aws::String m_taskArn; Aws::String m_taskId; Aws::String m_requestId; }; } // namespace Model } // namespace SnowDeviceManagement } // namespace Aws