AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
GetComponentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
12#include <aws/greengrassv2/model/RecipeOutputFormat.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GreengrassV2 {
26namespace Model {
28 public:
29 AWS_GREENGRASSV2_API GetComponentResult() = default;
32
34
37 inline RecipeOutputFormat GetRecipeOutputFormat() const { return m_recipeOutputFormat; }
39 m_recipeOutputFormatHasBeenSet = true;
40 m_recipeOutputFormat = value;
41 }
44 return *this;
45 }
47
49
52 inline const Aws::Utils::ByteBuffer& GetRecipe() const { return m_recipe; }
53 template <typename RecipeT = Aws::Utils::ByteBuffer>
54 void SetRecipe(RecipeT&& value) {
55 m_recipeHasBeenSet = true;
56 m_recipe = std::forward<RecipeT>(value);
57 }
58 template <typename RecipeT = Aws::Utils::ByteBuffer>
59 GetComponentResult& WithRecipe(RecipeT&& value) {
60 SetRecipe(std::forward<RecipeT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
74 void SetTags(TagsT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags = std::forward<TagsT>(value);
77 }
78 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 GetComponentResult& WithTags(TagsT&& value) {
80 SetTags(std::forward<TagsT>(value));
81 return *this;
82 }
83 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
84 GetComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
85 m_tagsHasBeenSet = true;
86 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 GetComponentResult& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
106
107 private:
109
110 Aws::Utils::ByteBuffer m_recipe{};
111
113
114 Aws::String m_requestId;
115 Aws::Http::HttpResponseCode m_HttpResponseCode;
116 bool m_recipeOutputFormatHasBeenSet = false;
117 bool m_recipeHasBeenSet = false;
118 bool m_tagsHasBeenSet = false;
119 bool m_requestIdHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace GreengrassV2
124} // namespace Aws
AWS_GREENGRASSV2_API GetComponentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetRecipe() const
Aws::Http::HttpResponseCode GetHttpResponseCode() 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