AWS SDK for C++  1.9.109
AWS SDK for C++
DescribeResourceResult.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace WorkMail
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
43 
47  inline void SetResourceId(const Aws::String& value) { m_resourceId = value; }
48 
52  inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); }
53 
57  inline void SetResourceId(const char* value) { m_resourceId.assign(value); }
58 
62  inline DescribeResourceResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
63 
67  inline DescribeResourceResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
68 
72  inline DescribeResourceResult& WithResourceId(const char* value) { SetResourceId(value); return *this;}
73 
74 
78  inline const Aws::String& GetEmail() const{ return m_email; }
79 
83  inline void SetEmail(const Aws::String& value) { m_email = value; }
84 
88  inline void SetEmail(Aws::String&& value) { m_email = std::move(value); }
89 
93  inline void SetEmail(const char* value) { m_email.assign(value); }
94 
98  inline DescribeResourceResult& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
99 
103  inline DescribeResourceResult& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
104 
108  inline DescribeResourceResult& WithEmail(const char* value) { SetEmail(value); return *this;}
109 
110 
114  inline const Aws::String& GetName() const{ return m_name; }
115 
119  inline void SetName(const Aws::String& value) { m_name = value; }
120 
124  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
125 
129  inline void SetName(const char* value) { m_name.assign(value); }
130 
134  inline DescribeResourceResult& WithName(const Aws::String& value) { SetName(value); return *this;}
135 
139  inline DescribeResourceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
140 
144  inline DescribeResourceResult& WithName(const char* value) { SetName(value); return *this;}
145 
146 
150  inline const ResourceType& GetType() const{ return m_type; }
151 
155  inline void SetType(const ResourceType& value) { m_type = value; }
156 
160  inline void SetType(ResourceType&& value) { m_type = std::move(value); }
161 
165  inline DescribeResourceResult& WithType(const ResourceType& value) { SetType(value); return *this;}
166 
170  inline DescribeResourceResult& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
171 
172 
176  inline const BookingOptions& GetBookingOptions() const{ return m_bookingOptions; }
177 
181  inline void SetBookingOptions(const BookingOptions& value) { m_bookingOptions = value; }
182 
186  inline void SetBookingOptions(BookingOptions&& value) { m_bookingOptions = std::move(value); }
187 
191  inline DescribeResourceResult& WithBookingOptions(const BookingOptions& value) { SetBookingOptions(value); return *this;}
192 
196  inline DescribeResourceResult& WithBookingOptions(BookingOptions&& value) { SetBookingOptions(std::move(value)); return *this;}
197 
198 
203  inline const EntityState& GetState() const{ return m_state; }
204 
209  inline void SetState(const EntityState& value) { m_state = value; }
210 
215  inline void SetState(EntityState&& value) { m_state = std::move(value); }
216 
221  inline DescribeResourceResult& WithState(const EntityState& value) { SetState(value); return *this;}
222 
227  inline DescribeResourceResult& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
228 
229 
234  inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
235 
240  inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDate = value; }
241 
246  inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDate = std::move(value); }
247 
252  inline DescribeResourceResult& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
253 
258  inline DescribeResourceResult& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
259 
260 
265  inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
266 
271  inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDate = value; }
272 
277  inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDate = std::move(value); }
278 
283  inline DescribeResourceResult& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
284 
289  inline DescribeResourceResult& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
290 
291  private:
292 
293  Aws::String m_resourceId;
294 
295  Aws::String m_email;
296 
297  Aws::String m_name;
298 
299  ResourceType m_type;
300 
301  BookingOptions m_bookingOptions;
302 
303  EntityState m_state;
304 
305  Aws::Utils::DateTime m_enabledDate;
306 
307  Aws::Utils::DateTime m_disabledDate;
308  };
309 
310 } // namespace Model
311 } // namespace WorkMail
312 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::DescribeResourceResult::GetState
const EntityState & GetState() const
Definition: DescribeResourceResult.h:203
Aws::WorkMail::Model::DescribeResourceResult::SetType
void SetType(ResourceType &&value)
Definition: DescribeResourceResult.h:160
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::DescribeResourceResult::WithEmail
DescribeResourceResult & WithEmail(const char *value)
Definition: DescribeResourceResult.h:108
Aws::WorkMail::Model::DescribeResourceResult::GetName
const Aws::String & GetName() const
Definition: DescribeResourceResult.h:114
Aws::WorkMail::Model::DescribeResourceResult::SetType
void SetType(const ResourceType &value)
Definition: DescribeResourceResult.h:155
Aws::WorkMail::Model::DescribeResourceResult::GetType
const ResourceType & GetType() const
Definition: DescribeResourceResult.h:150
Aws::WorkMail::Model::DescribeResourceResult::WithDisabledDate
DescribeResourceResult & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeResourceResult.h:289
Aws::WorkMail::Model::DescribeResourceResult::SetState
void SetState(EntityState &&value)
Definition: DescribeResourceResult.h:215
DateTime.h
Aws::WorkMail::Model::DescribeResourceResult::WithType
DescribeResourceResult & WithType(ResourceType &&value)
Definition: DescribeResourceResult.h:170
Aws::WorkMail::Model::DescribeResourceResult::WithEmail
DescribeResourceResult & WithEmail(const Aws::String &value)
Definition: DescribeResourceResult.h:98
Aws::WorkMail::Model::DescribeResourceResult::SetName
void SetName(const char *value)
Definition: DescribeResourceResult.h:129
ResourceType.h
Aws::WorkMail::Model::DescribeResourceResult::SetResourceId
void SetResourceId(const char *value)
Definition: DescribeResourceResult.h:57
Aws::WorkMail::Model::DescribeResourceResult::WithType
DescribeResourceResult & WithType(const ResourceType &value)
Definition: DescribeResourceResult.h:165
WorkMail_EXPORTS.h
Aws::WorkMail::Model::DescribeResourceResult::WithResourceId
DescribeResourceResult & WithResourceId(Aws::String &&value)
Definition: DescribeResourceResult.h:67
Aws::WorkMail::Model::DescribeResourceResult::GetDisabledDate
const Aws::Utils::DateTime & GetDisabledDate() const
Definition: DescribeResourceResult.h:265
Aws::WorkMail::Model::DescribeResourceResult::DescribeResourceResult
DescribeResourceResult()
Aws::WorkMail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::WorkMail::Model::DescribeResourceResult::WithBookingOptions
DescribeResourceResult & WithBookingOptions(const BookingOptions &value)
Definition: DescribeResourceResult.h:191
Aws::WorkMail::Model::DescribeResourceResult::GetResourceId
const Aws::String & GetResourceId() const
Definition: DescribeResourceResult.h:42
Aws::WorkMail::Model::DescribeResourceResult::SetDisabledDate
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeResourceResult.h:277
Aws::WorkMail::Model::DescribeResourceResult::GetBookingOptions
const BookingOptions & GetBookingOptions() const
Definition: DescribeResourceResult.h:176
Aws::WorkMail::Model::DescribeResourceResult::SetName
void SetName(Aws::String &&value)
Definition: DescribeResourceResult.h:124
Aws::WorkMail::Model::DescribeResourceResult::WithName
DescribeResourceResult & WithName(const char *value)
Definition: DescribeResourceResult.h:144
Aws::WorkMail::Model::DescribeResourceResult::WithState
DescribeResourceResult & WithState(EntityState &&value)
Definition: DescribeResourceResult.h:227
Aws::WorkMail::Model::DescribeResourceResult::DescribeResourceResult
DescribeResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::DescribeResourceResult::WithBookingOptions
DescribeResourceResult & WithBookingOptions(BookingOptions &&value)
Definition: DescribeResourceResult.h:196
AWSString.h
Aws::WorkMail::Model::DescribeResourceResult::operator=
DescribeResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::DescribeResourceResult::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DescribeResourceResult.h:47
Aws::WorkMail::Model::DescribeResourceResult::SetDisabledDate
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeResourceResult.h:271
Aws::WorkMail::Model::DescribeResourceResult::SetEmail
void SetEmail(Aws::String &&value)
Definition: DescribeResourceResult.h:88
Aws::WorkMail::Model::DescribeResourceResult::WithDisabledDate
DescribeResourceResult & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeResourceResult.h:283
Aws::WorkMail::Model::DescribeResourceResult::WithResourceId
DescribeResourceResult & WithResourceId(const Aws::String &value)
Definition: DescribeResourceResult.h:62
Aws::WorkMail::Model::DescribeResourceResult::GetEmail
const Aws::String & GetEmail() const
Definition: DescribeResourceResult.h:78
Aws::WorkMail::Model::DescribeResourceResult::SetEnabledDate
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeResourceResult.h:240
Aws::WorkMail::Model::DescribeResourceResult::SetEnabledDate
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeResourceResult.h:246
Aws::WorkMail::Model::DescribeResourceResult::WithName
DescribeResourceResult & WithName(const Aws::String &value)
Definition: DescribeResourceResult.h:134
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::DescribeResourceResult::SetName
void SetName(const Aws::String &value)
Definition: DescribeResourceResult.h:119
Aws::WorkMail::Model::DescribeResourceResult::WithEnabledDate
DescribeResourceResult & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition: DescribeResourceResult.h:252
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::DescribeResourceResult::WithName
DescribeResourceResult & WithName(Aws::String &&value)
Definition: DescribeResourceResult.h:139
Aws::WorkMail::Model::DescribeResourceResult::WithState
DescribeResourceResult & WithState(const EntityState &value)
Definition: DescribeResourceResult.h:221
Aws::WorkMail::Model::DescribeResourceResult::WithEmail
DescribeResourceResult & WithEmail(Aws::String &&value)
Definition: DescribeResourceResult.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::DescribeResourceResult::WithResourceId
DescribeResourceResult & WithResourceId(const char *value)
Definition: DescribeResourceResult.h:72
EntityState.h
Aws::WorkMail::Model::DescribeResourceResult
Definition: DescribeResourceResult.h:32
BookingOptions.h
Aws::WorkMail::Model::DescribeResourceResult::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DescribeResourceResult.h:52
Aws::WorkMail::Model::DescribeResourceResult::SetEmail
void SetEmail(const char *value)
Definition: DescribeResourceResult.h:93
Aws::WorkMail::Model::BookingOptions
Definition: BookingOptions.h:31
Aws::WorkMail::Model::DescribeResourceResult::WithEnabledDate
DescribeResourceResult & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition: DescribeResourceResult.h:258
Aws::WorkMail::Model::DescribeResourceResult::SetBookingOptions
void SetBookingOptions(BookingOptions &&value)
Definition: DescribeResourceResult.h:186
Aws::WorkMail::Model::DescribeResourceResult::GetEnabledDate
const Aws::Utils::DateTime & GetEnabledDate() const
Definition: DescribeResourceResult.h:234
Aws::WorkMail::Model::DescribeResourceResult::SetEmail
void SetEmail(const Aws::String &value)
Definition: DescribeResourceResult.h:83
Aws::WorkMail::Model::DescribeResourceResult::SetState
void SetState(const EntityState &value)
Definition: DescribeResourceResult.h:209
Aws::WorkMail::Model::DescribeResourceResult::SetBookingOptions
void SetBookingOptions(const BookingOptions &value)
Definition: DescribeResourceResult.h:181
Aws::WorkMail::Model::EntityState
EntityState
Definition: EntityState.h:17