AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/EntityState.h>
11#include <aws/workmail/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkMail {
23namespace Model {
24
30class Resource {
31 public:
32 AWS_WORKMAIL_API Resource() = default;
33 AWS_WORKMAIL_API Resource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WORKMAIL_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Resource& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEmail() const { return m_email; }
60 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
61 template <typename EmailT = Aws::String>
62 void SetEmail(EmailT&& value) {
63 m_emailHasBeenSet = true;
64 m_email = std::forward<EmailT>(value);
65 }
66 template <typename EmailT = Aws::String>
67 Resource& WithEmail(EmailT&& value) {
68 SetEmail(std::forward<EmailT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 Resource& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline ResourceType GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(ResourceType value) {
98 m_typeHasBeenSet = true;
99 m_type = value;
100 }
102 SetType(value);
103 return *this;
104 }
106
108
111 inline EntityState GetState() const { return m_state; }
112 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
113 inline void SetState(EntityState value) {
114 m_stateHasBeenSet = true;
115 m_state = value;
116 }
118 SetState(value);
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetEnabledDate() const { return m_enabledDate; }
128 inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
129 template <typename EnabledDateT = Aws::Utils::DateTime>
130 void SetEnabledDate(EnabledDateT&& value) {
131 m_enabledDateHasBeenSet = true;
132 m_enabledDate = std::forward<EnabledDateT>(value);
133 }
134 template <typename EnabledDateT = Aws::Utils::DateTime>
135 Resource& WithEnabledDate(EnabledDateT&& value) {
136 SetEnabledDate(std::forward<EnabledDateT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetDisabledDate() const { return m_disabledDate; }
146 inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
147 template <typename DisabledDateT = Aws::Utils::DateTime>
148 void SetDisabledDate(DisabledDateT&& value) {
149 m_disabledDateHasBeenSet = true;
150 m_disabledDate = std::forward<DisabledDateT>(value);
151 }
152 template <typename DisabledDateT = Aws::Utils::DateTime>
153 Resource& WithDisabledDate(DisabledDateT&& value) {
154 SetDisabledDate(std::forward<DisabledDateT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetDescription() const { return m_description; }
164 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
165 template <typename DescriptionT = Aws::String>
166 void SetDescription(DescriptionT&& value) {
167 m_descriptionHasBeenSet = true;
168 m_description = std::forward<DescriptionT>(value);
169 }
170 template <typename DescriptionT = Aws::String>
171 Resource& WithDescription(DescriptionT&& value) {
172 SetDescription(std::forward<DescriptionT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_id;
178
179 Aws::String m_email;
180
181 Aws::String m_name;
182
184
186
187 Aws::Utils::DateTime m_enabledDate{};
188
189 Aws::Utils::DateTime m_disabledDate{};
190
191 Aws::String m_description;
192 bool m_idHasBeenSet = false;
193 bool m_emailHasBeenSet = false;
194 bool m_nameHasBeenSet = false;
195 bool m_typeHasBeenSet = false;
196 bool m_stateHasBeenSet = false;
197 bool m_enabledDateHasBeenSet = false;
198 bool m_disabledDateHasBeenSet = false;
199 bool m_descriptionHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace WorkMail
204} // namespace Aws
AWS_WORKMAIL_API Resource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEmail() const
Definition Resource.h:59
Resource & WithEnabledDate(EnabledDateT &&value)
Definition Resource.h:135
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKMAIL_API Resource()=default
bool DisabledDateHasBeenSet() const
Definition Resource.h:146
Resource & WithDisabledDate(DisabledDateT &&value)
Definition Resource.h:153
ResourceType GetType() const
Definition Resource.h:95
EntityState GetState() const
Definition Resource.h:111
void SetType(ResourceType value)
Definition Resource.h:97
void SetEnabledDate(EnabledDateT &&value)
Definition Resource.h:130
void SetDisabledDate(DisabledDateT &&value)
Definition Resource.h:148
const Aws::Utils::DateTime & GetEnabledDate() const
Definition Resource.h:127
Resource & WithId(IdT &&value)
Definition Resource.h:49
bool EnabledDateHasBeenSet() const
Definition Resource.h:128
void SetState(EntityState value)
Definition Resource.h:113
void SetId(IdT &&value)
Definition Resource.h:44
Resource & WithEmail(EmailT &&value)
Definition Resource.h:67
void SetEmail(EmailT &&value)
Definition Resource.h:62
Resource & WithDescription(DescriptionT &&value)
Definition Resource.h:171
Resource & WithType(ResourceType value)
Definition Resource.h:101
const Aws::String & GetName() const
Definition Resource.h:77
bool DescriptionHasBeenSet() const
Definition Resource.h:164
const Aws::String & GetId() const
Definition Resource.h:41
Resource & WithName(NameT &&value)
Definition Resource.h:85
AWS_WORKMAIL_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithState(EntityState value)
Definition Resource.h:117
const Aws::String & GetDescription() const
Definition Resource.h:163
void SetDescription(DescriptionT &&value)
Definition Resource.h:166
const Aws::Utils::DateTime & GetDisabledDate() const
Definition Resource.h:145
void SetName(NameT &&value)
Definition Resource.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue