AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
GetDomainResult.h
1
6#pragma once
7#include <aws/connecthealth/ConnectHealth_EXPORTS.h>
8#include <aws/connecthealth/model/DomainStatus.h>
9#include <aws/connecthealth/model/EncryptionContext.h>
10#include <aws/connecthealth/model/WebAppConfiguration.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ConnectHealth {
28namespace Model {
30 public:
31 AWS_CONNECTHEALTH_API GetDomainResult() = default;
34
36
39 inline const Aws::String& GetDomainId() const { return m_domainId; }
40 template <typename DomainIdT = Aws::String>
41 void SetDomainId(DomainIdT&& value) {
42 m_domainIdHasBeenSet = true;
43 m_domainId = std::forward<DomainIdT>(value);
44 }
45 template <typename DomainIdT = Aws::String>
46 GetDomainResult& WithDomainId(DomainIdT&& value) {
47 SetDomainId(std::forward<DomainIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetArn() const { return m_arn; }
57 template <typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) {
59 m_arnHasBeenSet = true;
60 m_arn = std::forward<ArnT>(value);
61 }
62 template <typename ArnT = Aws::String>
63 GetDomainResult& WithArn(ArnT&& value) {
64 SetArn(std::forward<ArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
80 GetDomainResult& WithName(NameT&& value) {
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
91 template <typename KmsKeyArnT = Aws::String>
92 void SetKmsKeyArn(KmsKeyArnT&& value) {
93 m_kmsKeyArnHasBeenSet = true;
94 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
95 }
96 template <typename KmsKeyArnT = Aws::String>
97 GetDomainResult& WithKmsKeyArn(KmsKeyArnT&& value) {
98 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
99 return *this;
100 }
102
104
107 inline const EncryptionContext& GetEncryptionContext() const { return m_encryptionContext; }
108 template <typename EncryptionContextT = EncryptionContext>
109 void SetEncryptionContext(EncryptionContextT&& value) {
110 m_encryptionContextHasBeenSet = true;
111 m_encryptionContext = std::forward<EncryptionContextT>(value);
112 }
113 template <typename EncryptionContextT = EncryptionContext>
114 GetDomainResult& WithEncryptionContext(EncryptionContextT&& value) {
115 SetEncryptionContext(std::forward<EncryptionContextT>(value));
116 return *this;
117 }
119
121
124 inline DomainStatus GetStatus() const { return m_status; }
125 inline void SetStatus(DomainStatus value) {
126 m_statusHasBeenSet = true;
127 m_status = value;
128 }
130 SetStatus(value);
131 return *this;
132 }
134
136
139 inline const Aws::String& GetWebAppUrl() const { return m_webAppUrl; }
140 template <typename WebAppUrlT = Aws::String>
141 void SetWebAppUrl(WebAppUrlT&& value) {
142 m_webAppUrlHasBeenSet = true;
143 m_webAppUrl = std::forward<WebAppUrlT>(value);
144 }
145 template <typename WebAppUrlT = Aws::String>
146 GetDomainResult& WithWebAppUrl(WebAppUrlT&& value) {
147 SetWebAppUrl(std::forward<WebAppUrlT>(value));
148 return *this;
149 }
151
153
156 inline const WebAppConfiguration& GetWebAppConfiguration() const { return m_webAppConfiguration; }
157 template <typename WebAppConfigurationT = WebAppConfiguration>
158 void SetWebAppConfiguration(WebAppConfigurationT&& value) {
159 m_webAppConfigurationHasBeenSet = true;
160 m_webAppConfiguration = std::forward<WebAppConfigurationT>(value);
161 }
162 template <typename WebAppConfigurationT = WebAppConfiguration>
163 GetDomainResult& WithWebAppConfiguration(WebAppConfigurationT&& value) {
164 SetWebAppConfiguration(std::forward<WebAppConfigurationT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
175 void SetCreatedAt(CreatedAtT&& value) {
176 m_createdAtHasBeenSet = true;
177 m_createdAt = std::forward<CreatedAtT>(value);
178 }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 GetDomainResult& WithCreatedAt(CreatedAtT&& value) {
181 SetCreatedAt(std::forward<CreatedAtT>(value));
182 return *this;
183 }
185
187
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>>
197 GetDomainResult& WithTags(TagsT&& value) {
198 SetTags(std::forward<TagsT>(value));
199 return *this;
200 }
201 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
202 GetDomainResult& 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>
218 GetDomainResult& WithRequestId(RequestIdT&& value) {
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_domainId;
227
228 Aws::String m_arn;
229
230 Aws::String m_name;
231
232 Aws::String m_kmsKeyArn;
233
234 EncryptionContext m_encryptionContext;
235
237
238 Aws::String m_webAppUrl;
239
240 WebAppConfiguration m_webAppConfiguration;
241
242 Aws::Utils::DateTime m_createdAt{};
243
245
246 Aws::String m_requestId;
247 Aws::Http::HttpResponseCode m_HttpResponseCode;
248 bool m_domainIdHasBeenSet = false;
249 bool m_arnHasBeenSet = false;
250 bool m_nameHasBeenSet = false;
251 bool m_kmsKeyArnHasBeenSet = false;
252 bool m_encryptionContextHasBeenSet = false;
253 bool m_statusHasBeenSet = false;
254 bool m_webAppUrlHasBeenSet = false;
255 bool m_webAppConfigurationHasBeenSet = false;
256 bool m_createdAtHasBeenSet = false;
257 bool m_tagsHasBeenSet = false;
258 bool m_requestIdHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace ConnectHealth
263} // namespace Aws
GetDomainResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetDomainResult & WithArn(ArnT &&value)
GetDomainResult & WithWebAppConfiguration(WebAppConfigurationT &&value)
GetDomainResult & WithTags(TagsT &&value)
GetDomainResult & WithWebAppUrl(WebAppUrlT &&value)
GetDomainResult & WithStatus(DomainStatus value)
void SetEncryptionContext(EncryptionContextT &&value)
AWS_CONNECTHEALTH_API GetDomainResult()=default
void SetWebAppConfiguration(WebAppConfigurationT &&value)
GetDomainResult & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDomainResult & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_CONNECTHEALTH_API GetDomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const EncryptionContext & GetEncryptionContext() const
const WebAppConfiguration & GetWebAppConfiguration() const
GetDomainResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetKmsKeyArn() const
GetDomainResult & WithDomainId(DomainIdT &&value)
AWS_CONNECTHEALTH_API GetDomainResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDomainResult & WithEncryptionContext(EncryptionContextT &&value)
GetDomainResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetDomainId() const
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