AWS SDK for C++  1.9.104
AWS SDK for C++
Group.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WorkMail
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  Group();
40 
41 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
50  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline Group& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline Group& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline Group& WithId(const char* value) { SetId(value); return *this;}
81 
82 
86  inline const Aws::String& GetEmail() const{ return m_email; }
87 
91  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
92 
96  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
97 
101  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
102 
106  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
107 
111  inline Group& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
112 
116  inline Group& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
117 
121  inline Group& WithEmail(const char* value) { SetEmail(value); return *this;}
122 
123 
127  inline const Aws::String& GetName() const{ return m_name; }
128 
132  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 
137  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
138 
142  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
143 
147  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
148 
152  inline Group& WithName(const Aws::String& value) { SetName(value); return *this;}
153 
157  inline Group& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
158 
162  inline Group& WithName(const char* value) { SetName(value); return *this;}
163 
164 
168  inline const EntityState& GetState() const{ return m_state; }
169 
173  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
174 
178  inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
179 
183  inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
184 
188  inline Group& WithState(const EntityState& value) { SetState(value); return *this;}
189 
193  inline Group& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
194 
195 
199  inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
200 
204  inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
205 
209  inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
210 
214  inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
215 
219  inline Group& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
220 
224  inline Group& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
225 
226 
230  inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
231 
235  inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
236 
240  inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
241 
245  inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
246 
250  inline Group& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
251 
255  inline Group& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
256 
257  private:
258 
259  Aws::String m_id;
260  bool m_idHasBeenSet;
261 
262  Aws::String m_email;
263  bool m_emailHasBeenSet;
264 
265  Aws::String m_name;
266  bool m_nameHasBeenSet;
267 
268  EntityState m_state;
269  bool m_stateHasBeenSet;
270 
271  Aws::Utils::DateTime m_enabledDate;
272  bool m_enabledDateHasBeenSet;
273 
274  Aws::Utils::DateTime m_disabledDate;
275  bool m_disabledDateHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace WorkMail
280 } // namespace Aws
Aws::WorkMail::Model::Group::SetEmail
void SetEmail(const char *value)
Definition: Group.h:106
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::Group::SetName
void SetName(Aws::String &&value)
Definition: Group.h:142
Aws::WorkMail::Model::Group::WithName
Group & WithName(Aws::String &&value)
Definition: Group.h:157
Aws::WorkMail::Model::Group::GetDisabledDate
const Aws::Utils::DateTime & GetDisabledDate() const
Definition: Group.h:230
Aws::WorkMail::Model::Group::WithId
Group & WithId(const Aws::String &value)
Definition: Group.h:70
Aws::WorkMail::Model::Group::WithEmail
Group & WithEmail(const char *value)
Definition: Group.h:121
Aws::WorkMail::Model::Group::SetId
void SetId(const Aws::String &value)
Definition: Group.h:55
Aws::WorkMail::Model::Group::WithDisabledDate
Group & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition: Group.h:255
Aws::WorkMail::Model::Group::EnabledDateHasBeenSet
bool EnabledDateHasBeenSet() const
Definition: Group.h:204
Aws::WorkMail::Model::Group::SetDisabledDate
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition: Group.h:245
Aws::WorkMail::Model::Group::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: Group.h:91
Aws::WorkMail::Model::Group::GetState
const EntityState & GetState() const
Definition: Group.h:168
Aws::WorkMail::Model::Group::WithId
Group & WithId(const char *value)
Definition: Group.h:80
DateTime.h
Aws::WorkMail::Model::Group::WithState
Group & WithState(const EntityState &value)
Definition: Group.h:188
Aws::WorkMail::Model::Group::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Group.h:132
Aws::WorkMail::Model::Group::WithEnabledDate
Group & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition: Group.h:219
Aws::WorkMail::Model::Group::WithId
Group & WithId(Aws::String &&value)
Definition: Group.h:75
Aws::WorkMail::Model::Group::operator=
Group & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::Group::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Group.h:173
WorkMail_EXPORTS.h
Aws::WorkMail::Model::Group::Group
Group(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::Group::DisabledDateHasBeenSet
bool DisabledDateHasBeenSet() const
Definition: Group.h:235
Aws::WorkMail::Model::Group::SetState
void SetState(const EntityState &value)
Definition: Group.h:178
Aws::WorkMail::Model::Group::SetEnabledDate
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition: Group.h:214
Aws::WorkMail::Model::Group::WithEmail
Group & WithEmail(const Aws::String &value)
Definition: Group.h:111
Aws::WorkMail::Model::Group::SetState
void SetState(EntityState &&value)
Definition: Group.h:183
Aws::WorkMail::Model::Group::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::Group::Group
Group()
Aws::WorkMail::Model::Group::WithName
Group & WithName(const Aws::String &value)
Definition: Group.h:152
Aws::WorkMail::Model::Group::SetName
void SetName(const char *value)
Definition: Group.h:147
Aws::WorkMail::Model::Group::WithState
Group & WithState(EntityState &&value)
Definition: Group.h:193
Aws::WorkMail::Model::Group::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Group.h:50
Aws::WorkMail::Model::Group::WithEmail
Group & WithEmail(Aws::String &&value)
Definition: Group.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::Group::SetEmail
void SetEmail(Aws::String &&value)
Definition: Group.h:101
Aws::WorkMail::Model::Group::WithEnabledDate
Group & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition: Group.h:224
Aws::WorkMail::Model::Group::WithName
Group & WithName(const char *value)
Definition: Group.h:162
Aws::WorkMail::Model::Group::SetId
void SetId(const char *value)
Definition: Group.h:65
Aws::WorkMail::Model::Group::GetEnabledDate
const Aws::Utils::DateTime & GetEnabledDate() const
Definition: Group.h:199
Aws::WorkMail::Model::Group::GetName
const Aws::String & GetName() const
Definition: Group.h:127
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::Group::GetId
const Aws::String & GetId() const
Definition: Group.h:45
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::Group::GetEmail
const Aws::String & GetEmail() const
Definition: Group.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EntityState.h
Aws::WorkMail::Model::Group
Definition: Group.h:34
Aws::WorkMail::Model::Group::SetId
void SetId(Aws::String &&value)
Definition: Group.h:60
Aws::WorkMail::Model::Group::SetEnabledDate
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition: Group.h:209
Aws::WorkMail::Model::Group::SetDisabledDate
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition: Group.h:240
Aws::WorkMail::Model::Group::WithDisabledDate
Group & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition: Group.h:250
Aws::WorkMail::Model::Group::SetName
void SetName(const Aws::String &value)
Definition: Group.h:137
Aws::WorkMail::Model::EntityState
EntityState
Definition: EntityState.h:17
Aws::WorkMail::Model::Group::SetEmail
void SetEmail(const Aws::String &value)
Definition: Group.h:96