/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GreengrassV2 { namespace Model { class DescribeComponentResult { public: AWS_GREENGRASSV2_API DescribeComponentResult(); AWS_GREENGRASSV2_API DescribeComponentResult(const Aws::AmazonWebServiceResult& result); AWS_GREENGRASSV2_API DescribeComponentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN * of the component version.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN * of the component version.

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

The ARN * of the component version.

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

The ARN * of the component version.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN * of the component version.

*/ inline DescribeComponentResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN * of the component version.

*/ inline DescribeComponentResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN * of the component version.

*/ inline DescribeComponentResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the component.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

The name of the component.

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

The name of the component.

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

The name of the component.

*/ inline void SetComponentName(const char* value) { m_componentName.assign(value); } /** *

The name of the component.

*/ inline DescribeComponentResult& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of the component.

*/ inline DescribeComponentResult& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

The name of the component.

*/ inline DescribeComponentResult& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

The version of the component.

*/ inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } /** *

The version of the component.

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

The version of the component.

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

The version of the component.

*/ inline void SetComponentVersion(const char* value) { m_componentVersion.assign(value); } /** *

The version of the component.

*/ inline DescribeComponentResult& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} /** *

The version of the component.

*/ inline DescribeComponentResult& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} /** *

The version of the component.

*/ inline DescribeComponentResult& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} /** *

The time at which the component was created, expressed in ISO 8601 * format.

*/ inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } /** *

The time at which the component was created, expressed in ISO 8601 * format.

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

The time at which the component was created, expressed in ISO 8601 * format.

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

The time at which the component was created, expressed in ISO 8601 * format.

*/ inline DescribeComponentResult& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} /** *

The time at which the component was created, expressed in ISO 8601 * format.

*/ inline DescribeComponentResult& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} /** *

The publisher of the component version.

*/ inline const Aws::String& GetPublisher() const{ return m_publisher; } /** *

The publisher of the component version.

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

The publisher of the component version.

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

The publisher of the component version.

*/ inline void SetPublisher(const char* value) { m_publisher.assign(value); } /** *

The publisher of the component version.

*/ inline DescribeComponentResult& WithPublisher(const Aws::String& value) { SetPublisher(value); return *this;} /** *

The publisher of the component version.

*/ inline DescribeComponentResult& WithPublisher(Aws::String&& value) { SetPublisher(std::move(value)); return *this;} /** *

The publisher of the component version.

*/ inline DescribeComponentResult& WithPublisher(const char* value) { SetPublisher(value); return *this;} /** *

The description of the component version.

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

The description of the component version.

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

The description of the component version.

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

The description of the component version.

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

The description of the component version.

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

The description of the component version.

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

The description of the component version.

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

The status of the component version in IoT Greengrass V2. This status is * different from the status of the component on a core device.

*/ inline const CloudComponentStatus& GetStatus() const{ return m_status; } /** *

The status of the component version in IoT Greengrass V2. This status is * different from the status of the component on a core device.

*/ inline void SetStatus(const CloudComponentStatus& value) { m_status = value; } /** *

The status of the component version in IoT Greengrass V2. This status is * different from the status of the component on a core device.

*/ inline void SetStatus(CloudComponentStatus&& value) { m_status = std::move(value); } /** *

The status of the component version in IoT Greengrass V2. This status is * different from the status of the component on a core device.

*/ inline DescribeComponentResult& WithStatus(const CloudComponentStatus& value) { SetStatus(value); return *this;} /** *

The status of the component version in IoT Greengrass V2. This status is * different from the status of the component on a core device.

*/ inline DescribeComponentResult& WithStatus(CloudComponentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The platforms that the component version supports.

*/ inline const Aws::Vector& GetPlatforms() const{ return m_platforms; } /** *

The platforms that the component version supports.

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

The platforms that the component version supports.

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

The platforms that the component version supports.

*/ inline DescribeComponentResult& WithPlatforms(const Aws::Vector& value) { SetPlatforms(value); return *this;} /** *

The platforms that the component version supports.

*/ inline DescribeComponentResult& WithPlatforms(Aws::Vector&& value) { SetPlatforms(std::move(value)); return *this;} /** *

The platforms that the component version supports.

*/ inline DescribeComponentResult& AddPlatforms(const ComponentPlatform& value) { m_platforms.push_back(value); return *this; } /** *

The platforms that the component version supports.

*/ inline DescribeComponentResult& AddPlatforms(ComponentPlatform&& value) { m_platforms.push_back(std::move(value)); return *this; } /** *

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

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

A list of key-value pairs that contain metadata for the resource. For more * information, see Tag * your resources in the IoT Greengrass V2 Developer Guide.

*/ inline DescribeComponentResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 DescribeComponentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeComponentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeComponentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_componentName; Aws::String m_componentVersion; Aws::Utils::DateTime m_creationTimestamp; Aws::String m_publisher; Aws::String m_description; CloudComponentStatus m_status; Aws::Vector m_platforms; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws