AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateEnvironmentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
12#include <aws/migration-hub-refactor-spaces/model/EnvironmentState.h>
13#include <aws/migration-hub-refactor-spaces/model/NetworkFabricType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MigrationHubRefactorSpaces {
27namespace Model {
29 public:
30 AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult() = default;
32 AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult& operator=(
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
57 template <typename CreatedTimeT = Aws::Utils::DateTime>
58 void SetCreatedTime(CreatedTimeT&& value) {
59 m_createdTimeHasBeenSet = true;
60 m_createdTime = std::forward<CreatedTimeT>(value);
61 }
62 template <typename CreatedTimeT = Aws::Utils::DateTime>
64 SetCreatedTime(std::forward<CreatedTimeT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
91 template <typename EnvironmentIdT = Aws::String>
92 void SetEnvironmentId(EnvironmentIdT&& value) {
93 m_environmentIdHasBeenSet = true;
94 m_environmentId = std::forward<EnvironmentIdT>(value);
95 }
96 template <typename EnvironmentIdT = Aws::String>
97 CreateEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) {
98 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
108 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
109 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
110 m_lastUpdatedTimeHasBeenSet = true;
111 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
112 }
113 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
114 CreateEnvironmentResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
115 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetName() const { return m_name; }
125 template <typename NameT = Aws::String>
126 void SetName(NameT&& value) {
127 m_nameHasBeenSet = true;
128 m_name = std::forward<NameT>(value);
129 }
130 template <typename NameT = Aws::String>
132 SetName(std::forward<NameT>(value));
133 return *this;
134 }
136
138
141 inline NetworkFabricType GetNetworkFabricType() const { return m_networkFabricType; }
143 m_networkFabricTypeHasBeenSet = true;
144 m_networkFabricType = value;
145 }
148 return *this;
149 }
151
153
156 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
157 template <typename OwnerAccountIdT = Aws::String>
158 void SetOwnerAccountId(OwnerAccountIdT&& value) {
159 m_ownerAccountIdHasBeenSet = true;
160 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
161 }
162 template <typename OwnerAccountIdT = Aws::String>
163 CreateEnvironmentResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
164 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
165 return *this;
166 }
168
170
173 inline EnvironmentState GetState() const { return m_state; }
174 inline void SetState(EnvironmentState value) {
175 m_stateHasBeenSet = true;
176 m_state = value;
177 }
179 SetState(value);
180 return *this;
181 }
183
185
190 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 void SetTags(TagsT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags = std::forward<TagsT>(value);
195 }
196 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 SetTags(std::forward<TagsT>(value));
199 return *this;
200 }
201 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
202 CreateEnvironmentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
205 return *this;
206 }
208
210
211 inline const Aws::String& GetRequestId() const { return m_requestId; }
212 template <typename RequestIdT = Aws::String>
213 void SetRequestId(RequestIdT&& value) {
214 m_requestIdHasBeenSet = true;
215 m_requestId = std::forward<RequestIdT>(value);
216 }
217 template <typename RequestIdT = Aws::String>
219 SetRequestId(std::forward<RequestIdT>(value));
220 return *this;
221 }
223 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
224
225 private:
226 Aws::String m_arn;
227
228 Aws::Utils::DateTime m_createdTime{};
229
230 Aws::String m_description;
231
232 Aws::String m_environmentId;
233
234 Aws::Utils::DateTime m_lastUpdatedTime{};
235
236 Aws::String m_name;
237
239
240 Aws::String m_ownerAccountId;
241
243
245
246 Aws::String m_requestId;
247 Aws::Http::HttpResponseCode m_HttpResponseCode;
248 bool m_arnHasBeenSet = false;
249 bool m_createdTimeHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_environmentIdHasBeenSet = false;
252 bool m_lastUpdatedTimeHasBeenSet = false;
253 bool m_nameHasBeenSet = false;
254 bool m_networkFabricTypeHasBeenSet = false;
255 bool m_ownerAccountIdHasBeenSet = false;
256 bool m_stateHasBeenSet = false;
257 bool m_tagsHasBeenSet = false;
258 bool m_requestIdHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace MigrationHubRefactorSpaces
263} // namespace Aws
CreateEnvironmentResult & WithDescription(DescriptionT &&value)
CreateEnvironmentResult & WithState(EnvironmentState value)
CreateEnvironmentResult & WithCreatedTime(CreatedTimeT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult()=default
AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEnvironmentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEnvironmentResult & WithNetworkFabricType(NetworkFabricType value)
CreateEnvironmentResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateEnvironmentResult & WithOwnerAccountId(OwnerAccountIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEnvironmentResult & WithLastUpdatedTime(LastUpdatedTimeT &&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