AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Member.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/MemberType.h>
10#include <aws/workmail/model/EntityState.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkMail
25{
26namespace Model
27{
28
34 class Member
35 {
36 public:
37 AWS_WORKMAIL_API Member();
38 AWS_WORKMAIL_API Member(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKMAIL_API Member& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Member& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Member& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Member& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline Member& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline Member& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline Member& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const MemberType& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const MemberType& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(MemberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline Member& WithType(const MemberType& value) { SetType(value); return *this;}
80 inline Member& WithType(MemberType&& value) { SetType(std::move(value)); return *this;}
82
84
87 inline const EntityState& GetState() const{ return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
89 inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
90 inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
91 inline Member& WithState(const EntityState& value) { SetState(value); return *this;}
92 inline Member& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
100 inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
101 inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
102 inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
103 inline Member& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
104 inline Member& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
112 inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
113 inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
114 inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
115 inline Member& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
116 inline Member& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
118 private:
119
120 Aws::String m_id;
121 bool m_idHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 MemberType m_type;
127 bool m_typeHasBeenSet = false;
128
129 EntityState m_state;
130 bool m_stateHasBeenSet = false;
131
132 Aws::Utils::DateTime m_enabledDate;
133 bool m_enabledDateHasBeenSet = false;
134
135 Aws::Utils::DateTime m_disabledDate;
136 bool m_disabledDateHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace WorkMail
141} // namespace Aws
AWS_WORKMAIL_API Member()
bool StateHasBeenSet() const
Definition Member.h:88
void SetState(const EntityState &value)
Definition Member.h:89
bool DisabledDateHasBeenSet() const
Definition Member.h:112
Member & WithType(MemberType &&value)
Definition Member.h:80
void SetName(const Aws::String &value)
Definition Member.h:63
const EntityState & GetState() const
Definition Member.h:87
void SetState(EntityState &&value)
Definition Member.h:90
Member & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition Member.h:116
void SetId(Aws::String &&value)
Definition Member.h:50
AWS_WORKMAIL_API Member & operator=(Aws::Utils::Json::JsonView jsonValue)
Member & WithType(const MemberType &value)
Definition Member.h:79
Member & WithId(const Aws::String &value)
Definition Member.h:52
void SetType(const MemberType &value)
Definition Member.h:77
Member & WithId(const char *value)
Definition Member.h:54
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition Member.h:102
Member & WithName(const Aws::String &value)
Definition Member.h:66
Member & WithName(const char *value)
Definition Member.h:68
void SetId(const char *value)
Definition Member.h:51
bool IdHasBeenSet() const
Definition Member.h:48
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition Member.h:101
Member & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition Member.h:103
const Aws::String & GetName() const
Definition Member.h:61
bool TypeHasBeenSet() const
Definition Member.h:76
Member & WithId(Aws::String &&value)
Definition Member.h:53
bool NameHasBeenSet() const
Definition Member.h:62
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition Member.h:113
const Aws::Utils::DateTime & GetEnabledDate() const
Definition Member.h:99
Member & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition Member.h:104
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Member.h:64
const Aws::String & GetId() const
Definition Member.h:47
Member & WithState(EntityState &&value)
Definition Member.h:92
const MemberType & GetType() const
Definition Member.h:75
const Aws::Utils::DateTime & GetDisabledDate() const
Definition Member.h:111
Member & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition Member.h:115
Member & WithState(const EntityState &value)
Definition Member.h:91
void SetName(const char *value)
Definition Member.h:65
bool EnabledDateHasBeenSet() const
Definition Member.h:100
AWS_WORKMAIL_API Member(Aws::Utils::Json::JsonView jsonValue)
void SetType(MemberType &&value)
Definition Member.h:78
void SetId(const Aws::String &value)
Definition Member.h:49
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition Member.h:114
Member & WithName(Aws::String &&value)
Definition Member.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue