AWS SDK for C++  1.9.105
AWS SDK for C++
Member.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:
37  Member();
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 Member& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline Member& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline Member& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline Member& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline Member& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline Member& WithName(const char* value) { SetName(value); return *this;}
123 
124 
128  inline const MemberType& GetType() const{ return m_type; }
129 
133  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 
138  inline void SetType(const MemberType& value) { m_typeHasBeenSet = true; m_type = value; }
139 
143  inline void SetType(MemberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
144 
148  inline Member& WithType(const MemberType& value) { SetType(value); return *this;}
149 
153  inline Member& WithType(MemberType&& value) { SetType(std::move(value)); return *this;}
154 
155 
159  inline const EntityState& GetState() const{ return m_state; }
160 
164  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
165 
169  inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
170 
174  inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
175 
179  inline Member& WithState(const EntityState& value) { SetState(value); return *this;}
180 
184  inline Member& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
185 
186 
190  inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
191 
195  inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
196 
200  inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
201 
205  inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
206 
210  inline Member& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
211 
215  inline Member& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
216 
217 
222  inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
223 
228  inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
229 
234  inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
235 
240  inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
241 
246  inline Member& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
247 
252  inline Member& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
253 
254  private:
255 
256  Aws::String m_id;
257  bool m_idHasBeenSet;
258 
259  Aws::String m_name;
260  bool m_nameHasBeenSet;
261 
262  MemberType m_type;
263  bool m_typeHasBeenSet;
264 
265  EntityState m_state;
266  bool m_stateHasBeenSet;
267 
268  Aws::Utils::DateTime m_enabledDate;
269  bool m_enabledDateHasBeenSet;
270 
271  Aws::Utils::DateTime m_disabledDate;
272  bool m_disabledDateHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace WorkMail
277 } // namespace Aws
Aws::WorkMail::Model::Member::WithDisabledDate
Member & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition: Member.h:246
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WorkMail::Model::Member::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Member.h:51
Aws::WorkMail::Model::Member::WithName
Member & WithName(Aws::String &&value)
Definition: Member.h:117
Aws::WorkMail::Model::Member::WithDisabledDate
Member & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition: Member.h:252
Aws::WorkMail::Model::Member::WithState
Member & WithState(EntityState &&value)
Definition: Member.h:184
Aws::WorkMail::Model::Member::SetState
void SetState(EntityState &&value)
Definition: Member.h:174
Aws::WorkMail::Model::Member::SetDisabledDate
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition: Member.h:240
MemberType.h
Aws::WorkMail::Model::Member::WithId
Member & WithId(const Aws::String &value)
Definition: Member.h:71
DateTime.h
Aws::WorkMail::Model::Member::DisabledDateHasBeenSet
bool DisabledDateHasBeenSet() const
Definition: Member.h:228
Aws::WorkMail::Model::Member::SetEnabledDate
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition: Member.h:205
WorkMail_EXPORTS.h
Aws::WorkMail::Model::Member::SetName
void SetName(Aws::String &&value)
Definition: Member.h:102
Aws::WorkMail::Model::Member::GetId
const Aws::String & GetId() const
Definition: Member.h:46
Aws::WorkMail::Model::Member::SetId
void SetId(const char *value)
Definition: Member.h:66
Aws::WorkMail::Model::Member::SetEnabledDate
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition: Member.h:200
Aws::WorkMail::Model::Member::GetDisabledDate
const Aws::Utils::DateTime & GetDisabledDate() const
Definition: Member.h:222
Aws::WorkMail::Model::Member::SetName
void SetName(const Aws::String &value)
Definition: Member.h:97
Aws::WorkMail::Model::Member::SetType
void SetType(const MemberType &value)
Definition: Member.h:138
Aws::WorkMail::Model::Member::WithType
Member & WithType(const MemberType &value)
Definition: Member.h:148
Aws::WorkMail::Model::Member::operator=
Member & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::Member::WithName
Member & WithName(const Aws::String &value)
Definition: Member.h:112
Aws::WorkMail::Model::Member::WithId
Member & WithId(Aws::String &&value)
Definition: Member.h:76
Aws::WorkMail::Model::Member::WithType
Member & WithType(MemberType &&value)
Definition: Member.h:153
Aws::WorkMail::Model::Member::Member
Member()
Aws::WorkMail::Model::Member::GetType
const MemberType & GetType() const
Definition: Member.h:128
Aws::WorkMail::Model::Member::Member
Member(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::Member::WithId
Member & WithId(const char *value)
Definition: Member.h:81
Aws::WorkMail::Model::Member::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Member.h:133
Aws::WorkMail::Model::Member::SetId
void SetId(Aws::String &&value)
Definition: Member.h:61
Aws::WorkMail::Model::Member::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::Member
Definition: Member.h:35
Aws::WorkMail::Model::Member::EnabledDateHasBeenSet
bool EnabledDateHasBeenSet() const
Definition: Member.h:195
Aws::WorkMail::Model::Member::GetEnabledDate
const Aws::Utils::DateTime & GetEnabledDate() const
Definition: Member.h:190
Aws::WorkMail::Model::Member::GetName
const Aws::String & GetName() const
Definition: Member.h:87
Aws::WorkMail::Model::Member::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Member.h:92
Aws::WorkMail::Model::Member::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Member.h:164
Aws::WorkMail::Model::Member::WithName
Member & WithName(const char *value)
Definition: Member.h:122
Aws::WorkMail::Model::Member::WithEnabledDate
Member & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition: Member.h:210
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::Member::GetState
const EntityState & GetState() const
Definition: Member.h:159
Aws::WorkMail::Model::Member::SetType
void SetType(MemberType &&value)
Definition: Member.h:143
Aws::WorkMail::Model::Member::WithState
Member & WithState(const EntityState &value)
Definition: Member.h:179
Aws::WorkMail::Model::MemberType
MemberType
Definition: MemberType.h:17
Aws::WorkMail::Model::Member::SetDisabledDate
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition: Member.h:234
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EntityState.h
Aws::WorkMail::Model::Member::SetId
void SetId(const Aws::String &value)
Definition: Member.h:56
Aws::WorkMail::Model::Member::WithEnabledDate
Member & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition: Member.h:215
Aws::WorkMail::Model::Member::SetState
void SetState(const EntityState &value)
Definition: Member.h:169
Aws::WorkMail::Model::Member::SetName
void SetName(const char *value)
Definition: Member.h:107
Aws::WorkMail::Model::EntityState
EntityState
Definition: EntityState.h:17