AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeResourceResult.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/AWSString.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/BookingOptions.h>
12#include <aws/workmail/model/EntityState.h>
13#include <aws/workmail/model/ResourceType.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 WorkMail {
27namespace Model {
29 public:
30 AWS_WORKMAIL_API DescribeResourceResult() = default;
33
35
38 inline const Aws::String& GetResourceId() const { return m_resourceId; }
39 template <typename ResourceIdT = Aws::String>
40 void SetResourceId(ResourceIdT&& value) {
41 m_resourceIdHasBeenSet = true;
42 m_resourceId = std::forward<ResourceIdT>(value);
43 }
44 template <typename ResourceIdT = Aws::String>
45 DescribeResourceResult& WithResourceId(ResourceIdT&& value) {
46 SetResourceId(std::forward<ResourceIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEmail() const { return m_email; }
56 template <typename EmailT = Aws::String>
57 void SetEmail(EmailT&& value) {
58 m_emailHasBeenSet = true;
59 m_email = std::forward<EmailT>(value);
60 }
61 template <typename EmailT = Aws::String>
63 SetEmail(std::forward<EmailT>(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>
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline ResourceType GetType() const { return m_type; }
90 inline void SetType(ResourceType value) {
91 m_typeHasBeenSet = true;
92 m_type = value;
93 }
95 SetType(value);
96 return *this;
97 }
99
101
104 inline const BookingOptions& GetBookingOptions() const { return m_bookingOptions; }
105 template <typename BookingOptionsT = BookingOptions>
106 void SetBookingOptions(BookingOptionsT&& value) {
107 m_bookingOptionsHasBeenSet = true;
108 m_bookingOptions = std::forward<BookingOptionsT>(value);
109 }
110 template <typename BookingOptionsT = BookingOptions>
111 DescribeResourceResult& WithBookingOptions(BookingOptionsT&& value) {
112 SetBookingOptions(std::forward<BookingOptionsT>(value));
113 return *this;
114 }
116
118
122 inline EntityState GetState() const { return m_state; }
123 inline void SetState(EntityState value) {
124 m_stateHasBeenSet = true;
125 m_state = value;
126 }
128 SetState(value);
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetEnabledDate() const { return m_enabledDate; }
139 template <typename EnabledDateT = Aws::Utils::DateTime>
140 void SetEnabledDate(EnabledDateT&& value) {
141 m_enabledDateHasBeenSet = true;
142 m_enabledDate = std::forward<EnabledDateT>(value);
143 }
144 template <typename EnabledDateT = Aws::Utils::DateTime>
146 SetEnabledDate(std::forward<EnabledDateT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Utils::DateTime& GetDisabledDate() const { return m_disabledDate; }
157 template <typename DisabledDateT = Aws::Utils::DateTime>
158 void SetDisabledDate(DisabledDateT&& value) {
159 m_disabledDateHasBeenSet = true;
160 m_disabledDate = std::forward<DisabledDateT>(value);
161 }
162 template <typename DisabledDateT = Aws::Utils::DateTime>
163 DescribeResourceResult& WithDisabledDate(DisabledDateT&& value) {
164 SetDisabledDate(std::forward<DisabledDateT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetDescription() const { return m_description; }
174 template <typename DescriptionT = Aws::String>
175 void SetDescription(DescriptionT&& value) {
176 m_descriptionHasBeenSet = true;
177 m_description = std::forward<DescriptionT>(value);
178 }
179 template <typename DescriptionT = Aws::String>
181 SetDescription(std::forward<DescriptionT>(value));
182 return *this;
183 }
185
187
190 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
191 inline void SetHiddenFromGlobalAddressList(bool value) {
192 m_hiddenFromGlobalAddressListHasBeenSet = true;
193 m_hiddenFromGlobalAddressList = value;
194 }
197 return *this;
198 }
200
202
203 inline const Aws::String& GetRequestId() const { return m_requestId; }
204 template <typename RequestIdT = Aws::String>
205 void SetRequestId(RequestIdT&& value) {
206 m_requestIdHasBeenSet = true;
207 m_requestId = std::forward<RequestIdT>(value);
208 }
209 template <typename RequestIdT = Aws::String>
211 SetRequestId(std::forward<RequestIdT>(value));
212 return *this;
213 }
215 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
216
217 private:
218 Aws::String m_resourceId;
219
220 Aws::String m_email;
221
222 Aws::String m_name;
223
225
226 BookingOptions m_bookingOptions;
227
229
230 Aws::Utils::DateTime m_enabledDate{};
231
232 Aws::Utils::DateTime m_disabledDate{};
233
234 Aws::String m_description;
235
236 bool m_hiddenFromGlobalAddressList{false};
237
238 Aws::String m_requestId;
239 Aws::Http::HttpResponseCode m_HttpResponseCode;
240 bool m_resourceIdHasBeenSet = false;
241 bool m_emailHasBeenSet = false;
242 bool m_nameHasBeenSet = false;
243 bool m_typeHasBeenSet = false;
244 bool m_bookingOptionsHasBeenSet = false;
245 bool m_stateHasBeenSet = false;
246 bool m_enabledDateHasBeenSet = false;
247 bool m_disabledDateHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
250 bool m_requestIdHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace WorkMail
255} // namespace Aws
DescribeResourceResult & WithBookingOptions(BookingOptionsT &&value)
DescribeResourceResult & WithResourceId(ResourceIdT &&value)
DescribeResourceResult & WithType(ResourceType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeResourceResult & WithDisabledDate(DisabledDateT &&value)
DescribeResourceResult & WithEnabledDate(EnabledDateT &&value)
DescribeResourceResult & WithHiddenFromGlobalAddressList(bool value)
DescribeResourceResult & WithState(EntityState value)
DescribeResourceResult & WithRequestId(RequestIdT &&value)
AWS_WORKMAIL_API DescribeResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_WORKMAIL_API DescribeResourceResult()=default
AWS_WORKMAIL_API DescribeResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeResourceResult & WithName(NameT &&value)
DescribeResourceResult & WithEmail(EmailT &&value)
const Aws::Utils::DateTime & GetDisabledDate() const
DescribeResourceResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetEnabledDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue