AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Group.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/EntityState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkMail
24{
25namespace Model
26{
27
33 class Group
34 {
35 public:
36 AWS_WORKMAIL_API Group();
37 AWS_WORKMAIL_API Group(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKMAIL_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline Group& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline Group& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline Group& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::String& GetEmail() const{ return m_email; }
61 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
62 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
63 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
64 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
65 inline Group& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
66 inline Group& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
67 inline Group& WithEmail(const char* value) { SetEmail(value); return *this;}
69
71
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline Group& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline Group& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline Group& WithName(const char* value) { SetName(value); return *this;}
83
85
88 inline const EntityState& GetState() const{ return m_state; }
89 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
90 inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
91 inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
92 inline Group& WithState(const EntityState& value) { SetState(value); return *this;}
93 inline Group& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
101 inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
102 inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
103 inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
104 inline Group& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
105 inline Group& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
113 inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
114 inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
115 inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
116 inline Group& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
117 inline Group& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_id;
122 bool m_idHasBeenSet = false;
123
124 Aws::String m_email;
125 bool m_emailHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 EntityState m_state;
131 bool m_stateHasBeenSet = false;
132
133 Aws::Utils::DateTime m_enabledDate;
134 bool m_enabledDateHasBeenSet = false;
135
136 Aws::Utils::DateTime m_disabledDate;
137 bool m_disabledDateHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace WorkMail
142} // namespace Aws
Group & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition Group.h:116
Group & WithId(const char *value)
Definition Group.h:53
AWS_WORKMAIL_API Group()
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition Group.h:102
void SetName(const char *value)
Definition Group.h:78
Group & WithId(const Aws::String &value)
Definition Group.h:51
const Aws::String & GetEmail() const
Definition Group.h:60
void SetEmail(const Aws::String &value)
Definition Group.h:62
Group & WithName(const Aws::String &value)
Definition Group.h:79
bool DisabledDateHasBeenSet() const
Definition Group.h:113
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(EntityState &&value)
Definition Group.h:91
void SetEmail(Aws::String &&value)
Definition Group.h:63
void SetName(Aws::String &&value)
Definition Group.h:77
bool NameHasBeenSet() const
Definition Group.h:75
bool IdHasBeenSet() const
Definition Group.h:47
const Aws::Utils::DateTime & GetDisabledDate() const
Definition Group.h:112
Group & WithState(const EntityState &value)
Definition Group.h:92
const EntityState & GetState() const
Definition Group.h:88
void SetId(const char *value)
Definition Group.h:50
void SetId(Aws::String &&value)
Definition Group.h:49
const Aws::String & GetName() const
Definition Group.h:74
Group & WithEmail(const Aws::String &value)
Definition Group.h:65
Group & WithName(const char *value)
Definition Group.h:81
bool EnabledDateHasBeenSet() const
Definition Group.h:101
Group & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition Group.h:105
Group & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition Group.h:104
void SetName(const Aws::String &value)
Definition Group.h:76
void SetId(const Aws::String &value)
Definition Group.h:48
void SetState(const EntityState &value)
Definition Group.h:90
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition Group.h:114
Group & WithEmail(Aws::String &&value)
Definition Group.h:66
Group & WithState(EntityState &&value)
Definition Group.h:93
const Aws::String & GetId() const
Definition Group.h:46
Group & WithId(Aws::String &&value)
Definition Group.h:52
const Aws::Utils::DateTime & GetEnabledDate() const
Definition Group.h:100
void SetEmail(const char *value)
Definition Group.h:64
Group & WithName(Aws::String &&value)
Definition Group.h:80
bool StateHasBeenSet() const
Definition Group.h:89
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition Group.h:103
Group & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition Group.h:117
AWS_WORKMAIL_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKMAIL_API Group(Aws::Utils::Json::JsonView jsonValue)
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition Group.h:115
bool EmailHasBeenSet() const
Definition Group.h:61
Group & WithEmail(const char *value)
Definition Group.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue