AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetComponentResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/RecipeOutputFormat.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace GreengrassV2 {
25namespace Model {
27 public:
28 AWS_GREENGRASSV2_API GetComponentResult() = default;
31
33
36 inline RecipeOutputFormat GetRecipeOutputFormat() const { return m_recipeOutputFormat; }
38 m_recipeOutputFormatHasBeenSet = true;
39 m_recipeOutputFormat = value;
40 }
43 return *this;
44 }
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) {
54 m_recipeHasBeenSet = true;
55 m_recipe = std::forward<RecipeT>(value);
56 }
57 template <typename RecipeT = Aws::Utils::ByteBuffer>
58 GetComponentResult& WithRecipe(RecipeT&& value) {
59 SetRecipe(std::forward<RecipeT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
72 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 void SetTags(TagsT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags = std::forward<TagsT>(value);
76 }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 GetComponentResult& WithTags(TagsT&& value) {
79 SetTags(std::forward<TagsT>(value));
80 return *this;
81 }
82 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
83 GetComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
84 m_tagsHasBeenSet = true;
85 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
99 GetComponentResult& WithRequestId(RequestIdT&& value) {
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 private:
106
107 Aws::Utils::ByteBuffer m_recipe{};
108
110
111 Aws::String m_requestId;
112 bool m_recipeOutputFormatHasBeenSet = false;
113 bool m_recipeHasBeenSet = false;
114 bool m_tagsHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GreengrassV2
120} // 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