AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GetGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass {
24namespace Model {
26 public:
27 AWS_GREENGRASS_API GetGroupResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
42 GetGroupResult& WithArn(ArnT&& value) {
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetCreationTimestamp() const { return m_creationTimestamp; }
53 template <typename CreationTimestampT = Aws::String>
54 void SetCreationTimestamp(CreationTimestampT&& value) {
55 m_creationTimestampHasBeenSet = true;
56 m_creationTimestamp = std::forward<CreationTimestampT>(value);
57 }
58 template <typename CreationTimestampT = Aws::String>
59 GetGroupResult& WithCreationTimestamp(CreationTimestampT&& value) {
60 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetId() const { return m_id; }
70 template <typename IdT = Aws::String>
71 void SetId(IdT&& value) {
72 m_idHasBeenSet = true;
73 m_id = std::forward<IdT>(value);
74 }
75 template <typename IdT = Aws::String>
76 GetGroupResult& WithId(IdT&& value) {
77 SetId(std::forward<IdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
87 template <typename LastUpdatedTimestampT = Aws::String>
88 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
89 m_lastUpdatedTimestampHasBeenSet = true;
90 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
91 }
92 template <typename LastUpdatedTimestampT = Aws::String>
93 GetGroupResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
94 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
104 template <typename LatestVersionT = Aws::String>
105 void SetLatestVersion(LatestVersionT&& value) {
106 m_latestVersionHasBeenSet = true;
107 m_latestVersion = std::forward<LatestVersionT>(value);
108 }
109 template <typename LatestVersionT = Aws::String>
110 GetGroupResult& WithLatestVersion(LatestVersionT&& value) {
111 SetLatestVersion(std::forward<LatestVersionT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetLatestVersionArn() const { return m_latestVersionArn; }
121 template <typename LatestVersionArnT = Aws::String>
122 void SetLatestVersionArn(LatestVersionArnT&& value) {
123 m_latestVersionArnHasBeenSet = true;
124 m_latestVersionArn = std::forward<LatestVersionArnT>(value);
125 }
126 template <typename LatestVersionArnT = Aws::String>
127 GetGroupResult& WithLatestVersionArn(LatestVersionArnT&& value) {
128 SetLatestVersionArn(std::forward<LatestVersionArnT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetName() const { return m_name; }
138 template <typename NameT = Aws::String>
139 void SetName(NameT&& value) {
140 m_nameHasBeenSet = true;
141 m_name = std::forward<NameT>(value);
142 }
143 template <typename NameT = Aws::String>
144 GetGroupResult& WithName(NameT&& value) {
145 SetName(std::forward<NameT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 void SetTags(TagsT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags = std::forward<TagsT>(value);
159 }
160 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 GetGroupResult& WithTags(TagsT&& value) {
162 SetTags(std::forward<TagsT>(value));
163 return *this;
164 }
165 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
166 GetGroupResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
169 return *this;
170 }
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template <typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) {
178 m_requestIdHasBeenSet = true;
179 m_requestId = std::forward<RequestIdT>(value);
180 }
181 template <typename RequestIdT = Aws::String>
182 GetGroupResult& WithRequestId(RequestIdT&& value) {
183 SetRequestId(std::forward<RequestIdT>(value));
184 return *this;
185 }
187 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
188
189 private:
190 Aws::String m_arn;
191
192 Aws::String m_creationTimestamp;
193
194 Aws::String m_id;
195
196 Aws::String m_lastUpdatedTimestamp;
197
198 Aws::String m_latestVersion;
199
200 Aws::String m_latestVersionArn;
201
202 Aws::String m_name;
203
205
206 Aws::String m_requestId;
207 Aws::Http::HttpResponseCode m_HttpResponseCode;
208 bool m_arnHasBeenSet = false;
209 bool m_creationTimestampHasBeenSet = false;
210 bool m_idHasBeenSet = false;
211 bool m_lastUpdatedTimestampHasBeenSet = false;
212 bool m_latestVersionHasBeenSet = false;
213 bool m_latestVersionArnHasBeenSet = false;
214 bool m_nameHasBeenSet = false;
215 bool m_tagsHasBeenSet = false;
216 bool m_requestIdHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace Greengrass
221} // namespace Aws
GetGroupResult & WithRequestId(RequestIdT &&value)
void SetLatestVersion(LatestVersionT &&value)
const Aws::String & GetLastUpdatedTimestamp() const
GetGroupResult & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
AWS_GREENGRASS_API GetGroupResult()=default
void SetCreationTimestamp(CreationTimestampT &&value)
const Aws::String & GetLatestVersion() const
const Aws::String & GetArn() const
void SetRequestId(RequestIdT &&value)
void SetLatestVersionArn(LatestVersionArnT &&value)
const Aws::String & GetLatestVersionArn() const
GetGroupResult & WithId(IdT &&value)
GetGroupResult & WithLatestVersionArn(LatestVersionArnT &&value)
AWS_GREENGRASS_API GetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GREENGRASS_API GetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetGroupResult & WithName(NameT &&value)
GetGroupResult & WithLatestVersion(LatestVersionT &&value)
const Aws::String & GetId() const
GetGroupResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetRequestId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetGroupResult & WithCreationTimestamp(CreationTimestampT &&value)
const Aws::String & GetCreationTimestamp() const
const Aws::String & GetName() const
GetGroupResult & WithTags(TagsT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
GetGroupResult & WithArn(ArnT &&value)
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