AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resource.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/ResourceType.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
35 {
36 public:
37 AWS_WORKMAIL_API Resource();
38 AWS_WORKMAIL_API Resource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKMAIL_API Resource& 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 Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Resource& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetEmail() const{ return m_email; }
62 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
63 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
64 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
65 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
66 inline Resource& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
67 inline Resource& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
68 inline Resource& WithEmail(const char* value) { SetEmail(value); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline Resource& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const ResourceType& GetType() const{ return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
92 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 inline Resource& WithType(const ResourceType& value) { SetType(value); return *this;}
94 inline Resource& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
96
98
101 inline const EntityState& GetState() const{ return m_state; }
102 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
103 inline void SetState(const EntityState& value) { m_stateHasBeenSet = true; m_state = value; }
104 inline void SetState(EntityState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
105 inline Resource& WithState(const EntityState& value) { SetState(value); return *this;}
106 inline Resource& WithState(EntityState&& value) { SetState(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetEnabledDate() const{ return m_enabledDate; }
114 inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
115 inline void SetEnabledDate(const Aws::Utils::DateTime& value) { m_enabledDateHasBeenSet = true; m_enabledDate = value; }
116 inline void SetEnabledDate(Aws::Utils::DateTime&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::move(value); }
117 inline Resource& WithEnabledDate(const Aws::Utils::DateTime& value) { SetEnabledDate(value); return *this;}
118 inline Resource& WithEnabledDate(Aws::Utils::DateTime&& value) { SetEnabledDate(std::move(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetDisabledDate() const{ return m_disabledDate; }
126 inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
127 inline void SetDisabledDate(const Aws::Utils::DateTime& value) { m_disabledDateHasBeenSet = true; m_disabledDate = value; }
128 inline void SetDisabledDate(Aws::Utils::DateTime&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::move(value); }
129 inline Resource& WithDisabledDate(const Aws::Utils::DateTime& value) { SetDisabledDate(value); return *this;}
130 inline Resource& WithDisabledDate(Aws::Utils::DateTime&& value) { SetDisabledDate(std::move(value)); return *this;}
132
134
137 inline const Aws::String& GetDescription() const{ return m_description; }
138 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
139 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
140 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
141 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
142 inline Resource& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
143 inline Resource& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
144 inline Resource& WithDescription(const char* value) { SetDescription(value); return *this;}
146 private:
147
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 Aws::String m_email;
152 bool m_emailHasBeenSet = false;
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 ResourceType m_type;
158 bool m_typeHasBeenSet = false;
159
160 EntityState m_state;
161 bool m_stateHasBeenSet = false;
162
163 Aws::Utils::DateTime m_enabledDate;
164 bool m_enabledDateHasBeenSet = false;
165
166 Aws::Utils::DateTime m_disabledDate;
167 bool m_disabledDateHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace WorkMail
175} // namespace Aws
AWS_WORKMAIL_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithDescription(const Aws::String &value)
Definition Resource.h:142
Resource & WithDisabledDate(const Aws::Utils::DateTime &value)
Definition Resource.h:129
void SetType(const ResourceType &value)
Definition Resource.h:91
const Aws::String & GetEmail() const
Definition Resource.h:61
void SetName(const Aws::String &value)
Definition Resource.h:77
Resource & WithEmail(const Aws::String &value)
Definition Resource.h:66
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const char *value)
Definition Resource.h:79
void SetState(const EntityState &value)
Definition Resource.h:103
Resource & WithEmail(const char *value)
Definition Resource.h:68
Resource & WithState(EntityState &&value)
Definition Resource.h:106
Resource & WithDescription(Aws::String &&value)
Definition Resource.h:143
void SetDescription(const Aws::String &value)
Definition Resource.h:139
bool DisabledDateHasBeenSet() const
Definition Resource.h:126
void SetName(Aws::String &&value)
Definition Resource.h:78
void SetEmail(const Aws::String &value)
Definition Resource.h:63
Resource & WithEnabledDate(Aws::Utils::DateTime &&value)
Definition Resource.h:118
void SetEmail(Aws::String &&value)
Definition Resource.h:64
Resource & WithId(const Aws::String &value)
Definition Resource.h:52
Resource & WithDisabledDate(Aws::Utils::DateTime &&value)
Definition Resource.h:130
const Aws::Utils::DateTime & GetEnabledDate() const
Definition Resource.h:113
bool EnabledDateHasBeenSet() const
Definition Resource.h:114
Resource & WithType(ResourceType &&value)
Definition Resource.h:94
Resource & WithDescription(const char *value)
Definition Resource.h:144
void SetType(ResourceType &&value)
Definition Resource.h:92
void SetState(EntityState &&value)
Definition Resource.h:104
void SetEnabledDate(const Aws::Utils::DateTime &value)
Definition Resource.h:115
Resource & WithName(const char *value)
Definition Resource.h:82
Resource & WithName(Aws::String &&value)
Definition Resource.h:81
void SetDisabledDate(Aws::Utils::DateTime &&value)
Definition Resource.h:128
const Aws::String & GetName() const
Definition Resource.h:75
Resource & WithId(const char *value)
Definition Resource.h:54
bool DescriptionHasBeenSet() const
Definition Resource.h:138
Resource & WithState(const EntityState &value)
Definition Resource.h:105
void SetId(const Aws::String &value)
Definition Resource.h:49
void SetEnabledDate(Aws::Utils::DateTime &&value)
Definition Resource.h:116
Resource & WithId(Aws::String &&value)
Definition Resource.h:53
const Aws::String & GetId() const
Definition Resource.h:47
Resource & WithType(const ResourceType &value)
Definition Resource.h:93
void SetDescription(Aws::String &&value)
Definition Resource.h:140
const EntityState & GetState() const
Definition Resource.h:101
const ResourceType & GetType() const
Definition Resource.h:89
void SetDescription(const char *value)
Definition Resource.h:141
void SetId(Aws::String &&value)
Definition Resource.h:50
Resource & WithEnabledDate(const Aws::Utils::DateTime &value)
Definition Resource.h:117
void SetEmail(const char *value)
Definition Resource.h:65
AWS_WORKMAIL_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithName(const Aws::String &value)
Definition Resource.h:80
void SetDisabledDate(const Aws::Utils::DateTime &value)
Definition Resource.h:127
const Aws::String & GetDescription() const
Definition Resource.h:137
const Aws::Utils::DateTime & GetDisabledDate() const
Definition Resource.h:125
void SetId(const char *value)
Definition Resource.h:51
Resource & WithEmail(Aws::String &&value)
Definition Resource.h:67
AWS_WORKMAIL_API Resource()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue