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

The format of the recipe.

*/ inline const RecipeOutputFormat& GetRecipeOutputFormat() const{ return m_recipeOutputFormat; } /** *

The format of the recipe.

*/ inline void SetRecipeOutputFormat(const RecipeOutputFormat& value) { m_recipeOutputFormat = value; } /** *

The format of the recipe.

*/ inline void SetRecipeOutputFormat(RecipeOutputFormat&& value) { m_recipeOutputFormat = std::move(value); } /** *

The format of the recipe.

*/ inline GetComponentResult& WithRecipeOutputFormat(const RecipeOutputFormat& value) { SetRecipeOutputFormat(value); return *this;} /** *

The format of the recipe.

*/ inline GetComponentResult& WithRecipeOutputFormat(RecipeOutputFormat&& value) { SetRecipeOutputFormat(std::move(value)); return *this;} /** *

The recipe of the component version.

*/ inline const Aws::Utils::ByteBuffer& GetRecipe() const{ return m_recipe; } /** *

The recipe of the component version.

*/ inline void SetRecipe(const Aws::Utils::ByteBuffer& value) { m_recipe = value; } /** *

The recipe of the component version.

*/ inline void SetRecipe(Aws::Utils::ByteBuffer&& value) { m_recipe = std::move(value); } /** *

The recipe of the component version.

*/ inline GetComponentResult& WithRecipe(const Aws::Utils::ByteBuffer& value) { SetRecipe(value); return *this;} /** *

The recipe of the component version.

*/ inline GetComponentResult& WithRecipe(Aws::Utils::ByteBuffer&& value) { SetRecipe(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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& 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 GetComponentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetComponentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetComponentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RecipeOutputFormat m_recipeOutputFormat; Aws::Utils::ByteBuffer m_recipe; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws