AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetComponentResult.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/model/RecipeOutputFormat.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GreengrassV2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_GREENGRASSV2_API GetComponentResult() = default;
36
37
39
42 inline RecipeOutputFormat GetRecipeOutputFormat() const { return m_recipeOutputFormat; }
43 inline void SetRecipeOutputFormat(RecipeOutputFormat value) { m_recipeOutputFormatHasBeenSet = true; m_recipeOutputFormat = value; }
46
48
51 inline const Aws::Utils::ByteBuffer& GetRecipe() const { return m_recipe; }
52 template<typename RecipeT = Aws::Utils::ByteBuffer>
53 void SetRecipe(RecipeT&& value) { m_recipeHasBeenSet = true; m_recipe = std::forward<RecipeT>(value); }
54 template<typename RecipeT = Aws::Utils::ByteBuffer>
55 GetComponentResult& WithRecipe(RecipeT&& value) { SetRecipe(std::forward<RecipeT>(value)); return *this;}
57
59
65 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
66 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
67 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
68 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 GetComponentResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
70 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
71 GetComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
72 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template<typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
81 template<typename RequestIdT = Aws::String>
82 GetComponentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
84 private:
85
87 bool m_recipeOutputFormatHasBeenSet = false;
88
89 Aws::Utils::ByteBuffer m_recipe{};
90 bool m_recipeHasBeenSet = false;
91
93 bool m_tagsHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GreengrassV2
101} // namespace Aws
AWS_GREENGRASSV2_API GetComponentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetRecipe() const
AWS_GREENGRASSV2_API GetComponentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetComponentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetComponentResult & WithRecipeOutputFormat(RecipeOutputFormat value)
GetComponentResult & WithRecipe(RecipeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetRecipeOutputFormat(RecipeOutputFormat value)
GetComponentResult & WithTags(TagsT &&value)
GetComponentResult & WithRequestId(RequestIdT &&value)
AWS_GREENGRASSV2_API GetComponentResult()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue