AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetDomainResult.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/DomainStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/crt/Optional.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 ConnectCases {
27namespace Model {
29 public:
30 AWS_CONNECTCASES_API GetDomainResult() = default;
33
35
38 inline const Aws::String& GetDomainId() const { return m_domainId; }
39 template <typename DomainIdT = Aws::String>
40 void SetDomainId(DomainIdT&& value) {
41 m_domainIdHasBeenSet = true;
42 m_domainId = std::forward<DomainIdT>(value);
43 }
44 template <typename DomainIdT = Aws::String>
45 GetDomainResult& WithDomainId(DomainIdT&& value) {
46 SetDomainId(std::forward<DomainIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
56 template <typename DomainArnT = Aws::String>
57 void SetDomainArn(DomainArnT&& value) {
58 m_domainArnHasBeenSet = true;
59 m_domainArn = std::forward<DomainArnT>(value);
60 }
61 template <typename DomainArnT = Aws::String>
62 GetDomainResult& WithDomainArn(DomainArnT&& value) {
63 SetDomainArn(std::forward<DomainArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
79 GetDomainResult& WithName(NameT&& value) {
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
90 template <typename CreatedTimeT = Aws::Utils::DateTime>
91 void SetCreatedTime(CreatedTimeT&& value) {
92 m_createdTimeHasBeenSet = true;
93 m_createdTime = std::forward<CreatedTimeT>(value);
94 }
95 template <typename CreatedTimeT = Aws::Utils::DateTime>
96 GetDomainResult& WithCreatedTime(CreatedTimeT&& value) {
97 SetCreatedTime(std::forward<CreatedTimeT>(value));
98 return *this;
99 }
101
103
106 inline DomainStatus GetDomainStatus() const { return m_domainStatus; }
107 inline void SetDomainStatus(DomainStatus value) {
108 m_domainStatusHasBeenSet = true;
109 m_domainStatus = value;
110 }
112 SetDomainStatus(value);
113 return *this;
114 }
116
118
122 inline const Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>& GetTags() const { return m_tags; }
123 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
129 GetDomainResult& WithTags(TagsT&& value) {
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::Crt::Optional<Aws::String>>
134 GetDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
137 return *this;
138 }
139 inline GetDomainResult& AddTags(Aws::String key, Aws::Crt::Optional<Aws::String> value) {
140 m_tagsHasBeenSet = true;
141 m_tags.emplace(key, value);
142 return *this;
143 }
145
147
148 inline const Aws::String& GetRequestId() const { return m_requestId; }
149 template <typename RequestIdT = Aws::String>
150 void SetRequestId(RequestIdT&& value) {
151 m_requestIdHasBeenSet = true;
152 m_requestId = std::forward<RequestIdT>(value);
153 }
154 template <typename RequestIdT = Aws::String>
155 GetDomainResult& WithRequestId(RequestIdT&& value) {
156 SetRequestId(std::forward<RequestIdT>(value));
157 return *this;
158 }
160 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
161
162 private:
163 Aws::String m_domainId;
164
165 Aws::String m_domainArn;
166
167 Aws::String m_name;
168
169 Aws::Utils::DateTime m_createdTime{};
170
171 DomainStatus m_domainStatus{DomainStatus::NOT_SET};
172
174
175 Aws::String m_requestId;
176 Aws::Http::HttpResponseCode m_HttpResponseCode;
177 bool m_domainIdHasBeenSet = false;
178 bool m_domainArnHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_createdTimeHasBeenSet = false;
181 bool m_domainStatusHasBeenSet = false;
182 bool m_tagsHasBeenSet = false;
183 bool m_requestIdHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace ConnectCases
188} // namespace Aws
GetDomainResult & WithDomainArn(DomainArnT &&value)
GetDomainResult & WithDomainId(DomainIdT &&value)
const Aws::String & GetDomainArn() const
AWS_CONNECTCASES_API GetDomainResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDomainResult & WithRequestId(RequestIdT &&value)
AWS_CONNECTCASES_API GetDomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedTime(CreatedTimeT &&value)
const Aws::Map< Aws::String, Aws::Crt::Optional< Aws::String > > & GetTags() const
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTCASES_API GetDomainResult()=default
const Aws::String & GetDomainId() const
GetDomainResult & AddTags(Aws::String key, Aws::Crt::Optional< Aws::String > value)
GetDomainResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetDomainResult & WithDomainStatus(DomainStatus value)
GetDomainResult & WithName(NameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDomainResult & WithCreatedTime(CreatedTimeT &&value)
GetDomainResult & WithTags(TagsT &&value)
const Aws::String & GetRequestId() 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