AWS SDK for C++  1.9.105
AWS SDK for C++
Resource.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WorkMail
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline Resource& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetEmail() const{ return m_email; }
88 
92  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
93 
97  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
98 
102  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
103 
107  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
108 
112  inline Resource& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
113 
117  inline Resource& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
118 
122  inline Resource& WithEmail(const char* value) { SetEmail(value); return *this;}
123 
124 
128  inline const Aws::String& GetName() const{ return m_name; }
129 
133  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 
138  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
139 
143  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
144 
148  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 
153  inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
154 
158  inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
159 
163  inline Resource& WithName(const char* value) { SetName(value); return *this;}
164 
165 
169  inline const ResourceType& GetType() const{ return m_type; }
170 
174  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
175 
179  inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
180 
184  inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
185 
189  inline Resource& WithType(const ResourceType& value) { SetType(value); return *this;}
190 
194  inline Resource& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
195 
196 
200  inline const EntityState& GetState() const{ return m_state; }
201 
205  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
206 
210  inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
211 
215  inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
216 
220  inline Resource& WithState(const EntityState& value) { SetState(value); return *this;}
221 
225  inline Resource& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
226 
227 
232  inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
233 
238  inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
239 
244  inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
245 
250  inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
251 
256  inline Resource& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
257 
262  inline Resource& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
263 
264 
269  inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
270 
275  inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
276 
281  inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
282 
287  inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
288 
293  inline Resource& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
294 
299  inline Resource& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
300 
301  private:
302 
303  Aws::String m_id;
304  bool m_idHasBeenSet;
305 
306  Aws::String m_email;
307  bool m_emailHasBeenSet;
308 
309  Aws::String m_name;
310  bool m_nameHasBeenSet;
311 
312  ResourceType m_type;
313  bool m_typeHasBeenSet;
314 
315  EntityState m_state;
316  bool m_stateHasBeenSet;
317 
318  Aws::Utils::DateTime m_enabledDate;
319  bool m_enabledDateHasBeenSet;
320 
321  Aws::Utils::DateTime m_disabledDate;
322  bool m_disabledDateHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace WorkMail
327 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::Resource::SetId
void SetId(const Aws::String &value)
Definition: Resource.h:56
Aws::WorkMail::Model::Resource::WithType
Resource & WithType(const ResourceType &value)
Definition: Resource.h:189
Aws::WorkMail::Model::Resource::SetDisabledDate
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition: Resource.h:281
Aws::WorkMail::Model::Resource::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Resource.h:205
Aws::WorkMail::Model::Resource
Definition: Resource.h:35
Aws::WorkMail::Model::Resource::SetDisabledDate
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition: Resource.h:287
Aws::WorkMail::Model::Resource::WithName
Resource & WithName(const char *value)
Definition: Resource.h:163
Aws::WorkMail::Model::Resource::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Resource.h:174
Aws::WorkMail::Model::Resource::SetEnabledDate
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition: Resource.h:250
Aws::WorkMail::Model::Resource::SetEnabledDate
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition: Resource.h:244
DateTime.h
Aws::WorkMail::Model::Resource::WithDisabledDate
Resource & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition: Resource.h:293
ResourceType.h
Aws::WorkMail::Model::Resource::GetName
const Aws::String & GetName() const
Definition: Resource.h:128
Aws::WorkMail::Model::Resource::WithName
Resource & WithName(const Aws::String &value)
Definition: Resource.h:153
Aws::WorkMail::Model::Resource::WithEmail
Resource & WithEmail(const char *value)
Definition: Resource.h:122
Aws::WorkMail::Model::Resource::SetEmail
void SetEmail(Aws::String &&value)
Definition: Resource.h:102
Aws::WorkMail::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::Resource::GetEmail
const Aws::String & GetEmail() const
Definition: Resource.h:87
WorkMail_EXPORTS.h
Aws::WorkMail::Model::Resource::EnabledDateHasBeenSet
bool EnabledDateHasBeenSet() const
Definition: Resource.h:238
Aws::WorkMail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::WorkMail::Model::Resource::WithEmail
Resource & WithEmail(Aws::String &&value)
Definition: Resource.h:117
Aws::WorkMail::Model::Resource::WithId
Resource & WithId(const char *value)
Definition: Resource.h:81
Aws::WorkMail::Model::Resource::GetEnabledDate
const Aws::Utils::DateTime & GetEnabledDate() const
Definition: Resource.h:232
Aws::WorkMail::Model::Resource::GetDisabledDate
const Aws::Utils::DateTime & GetDisabledDate() const
Definition: Resource.h:269
Aws::WorkMail::Model::Resource::WithId
Resource & WithId(Aws::String &&value)
Definition: Resource.h:76
Aws::WorkMail::Model::Resource::SetName
void SetName(const Aws::String &value)
Definition: Resource.h:138
Aws::WorkMail::Model::Resource::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: Resource.h:92
Aws::WorkMail::Model::Resource::WithState
Resource & WithState(const EntityState &value)
Definition: Resource.h:220
Aws::WorkMail::Model::Resource::DisabledDateHasBeenSet
bool DisabledDateHasBeenSet() const
Definition: Resource.h:275
Aws::WorkMail::Model::Resource::WithEmail
Resource & WithEmail(const Aws::String &value)
Definition: Resource.h:112
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::Resource::SetId
void SetId(const char *value)
Definition: Resource.h:66
Aws::WorkMail::Model::Resource::WithState
Resource & WithState(EntityState &&value)
Definition: Resource.h:225
Aws::WorkMail::Model::Resource::GetState
const EntityState & GetState() const
Definition: Resource.h:200
Aws::WorkMail::Model::Resource::GetType
const ResourceType & GetType() const
Definition: Resource.h:169
Aws::WorkMail::Model::Resource::WithId
Resource & WithId(const Aws::String &value)
Definition: Resource.h:71
Aws::WorkMail::Model::Resource::SetState
void SetState(const EntityState &value)
Definition: Resource.h:210
Aws::WorkMail::Model::Resource::SetName
void SetName(Aws::String &&value)
Definition: Resource.h:143
Aws::WorkMail::Model::Resource::Resource
Resource()
Aws::WorkMail::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::Resource::WithEnabledDate
Resource & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition: Resource.h:262
Aws::WorkMail::Model::Resource::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Resource.h:51
Aws::WorkMail::Model::Resource::SetName
void SetName(const char *value)
Definition: Resource.h:148
Aws::WorkMail::Model::Resource::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Resource.h:133
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::Resource::GetId
const Aws::String & GetId() const
Definition: Resource.h:46
Aws::WorkMail::Model::Resource::WithEnabledDate
Resource & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition: Resource.h:256
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::Resource::WithType
Resource & WithType(ResourceType &&value)
Definition: Resource.h:194
EntityState.h
Aws::WorkMail::Model::Resource::SetType
void SetType(const ResourceType &value)
Definition: Resource.h:179
Aws::WorkMail::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::Resource::SetId
void SetId(Aws::String &&value)
Definition: Resource.h:61
Aws::WorkMail::Model::Resource::SetType
void SetType(ResourceType &&value)
Definition: Resource.h:184
Aws::WorkMail::Model::Resource::SetState
void SetState(EntityState &&value)
Definition: Resource.h:215
Aws::WorkMail::Model::Resource::WithDisabledDate
Resource & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition: Resource.h:299
Aws::WorkMail::Model::Resource::SetEmail
void SetEmail(const char *value)
Definition: Resource.h:107
Aws::WorkMail::Model::Resource::SetEmail
void SetEmail(const Aws::String &value)
Definition: Resource.h:97
Aws::WorkMail::Model::Resource::WithName
Resource & WithName(Aws::String &&value)
Definition: Resource.h:158
Aws::WorkMail::Model::EntityState
EntityState
Definition: EntityState.h:17