AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCases {
25namespace Model {
27 public:
28 AWS_CONNECTCASES_API GetDomainResult() = default;
31
33
36 inline const Aws::String& GetDomainId() const { return m_domainId; }
37 template <typename DomainIdT = Aws::String>
38 void SetDomainId(DomainIdT&& value) {
39 m_domainIdHasBeenSet = true;
40 m_domainId = std::forward<DomainIdT>(value);
41 }
42 template <typename DomainIdT = Aws::String>
43 GetDomainResult& WithDomainId(DomainIdT&& value) {
44 SetDomainId(std::forward<DomainIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
54 template <typename DomainArnT = Aws::String>
55 void SetDomainArn(DomainArnT&& value) {
56 m_domainArnHasBeenSet = true;
57 m_domainArn = std::forward<DomainArnT>(value);
58 }
59 template <typename DomainArnT = Aws::String>
60 GetDomainResult& WithDomainArn(DomainArnT&& value) {
61 SetDomainArn(std::forward<DomainArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 template <typename NameT = Aws::String>
72 void SetName(NameT&& value) {
73 m_nameHasBeenSet = true;
74 m_name = std::forward<NameT>(value);
75 }
76 template <typename NameT = Aws::String>
77 GetDomainResult& WithName(NameT&& value) {
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
88 template <typename CreatedTimeT = Aws::Utils::DateTime>
89 void SetCreatedTime(CreatedTimeT&& value) {
90 m_createdTimeHasBeenSet = true;
91 m_createdTime = std::forward<CreatedTimeT>(value);
92 }
93 template <typename CreatedTimeT = Aws::Utils::DateTime>
94 GetDomainResult& WithCreatedTime(CreatedTimeT&& value) {
95 SetCreatedTime(std::forward<CreatedTimeT>(value));
96 return *this;
97 }
99
101
104 inline DomainStatus GetDomainStatus() const { return m_domainStatus; }
105 inline void SetDomainStatus(DomainStatus value) {
106 m_domainStatusHasBeenSet = true;
107 m_domainStatus = value;
108 }
110 SetDomainStatus(value);
111 return *this;
112 }
114
116
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 GetDomainResult& WithTags(TagsT&& value) {
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 GetDomainResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
148 GetDomainResult& WithRequestId(RequestIdT&& value) {
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_domainId;
155
156 Aws::String m_domainArn;
157
158 Aws::String m_name;
159
160 Aws::Utils::DateTime m_createdTime{};
161
162 DomainStatus m_domainStatus{DomainStatus::NOT_SET};
163
165
166 Aws::String m_requestId;
167 bool m_domainIdHasBeenSet = false;
168 bool m_domainArnHasBeenSet = false;
169 bool m_nameHasBeenSet = false;
170 bool m_createdTimeHasBeenSet = false;
171 bool m_domainStatusHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace ConnectCases
178} // namespace Aws
GetDomainResult & WithDomainArn(DomainArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTCASES_API GetDomainResult()=default
const Aws::String & GetDomainId() const
GetDomainResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetDomainResult & WithDomainStatus(DomainStatus value)
GetDomainResult & WithName(NameT &&value)
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