AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Resource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
63 template<typename EmailT = Aws::String>
64 Resource& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 Resource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
83 inline ResourceType GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(ResourceType value) { m_typeHasBeenSet = true; m_type = value; }
86 inline Resource& WithType(ResourceType value) { SetType(value); return *this;}
88
90
93 inline EntityState GetState() const { return m_state; }
94 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
95 inline void SetState(EntityState value) { m_stateHasBeenSet = true; m_state = value; }
96 inline Resource& WithState(EntityState value) { SetState(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetEnabledDate() const { return m_enabledDate; }
104 inline bool EnabledDateHasBeenSet() const { return m_enabledDateHasBeenSet; }
105 template<typename EnabledDateT = Aws::Utils::DateTime>
106 void SetEnabledDate(EnabledDateT&& value) { m_enabledDateHasBeenSet = true; m_enabledDate = std::forward<EnabledDateT>(value); }
107 template<typename EnabledDateT = Aws::Utils::DateTime>
108 Resource& WithEnabledDate(EnabledDateT&& value) { SetEnabledDate(std::forward<EnabledDateT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetDisabledDate() const { return m_disabledDate; }
116 inline bool DisabledDateHasBeenSet() const { return m_disabledDateHasBeenSet; }
117 template<typename DisabledDateT = Aws::Utils::DateTime>
118 void SetDisabledDate(DisabledDateT&& value) { m_disabledDateHasBeenSet = true; m_disabledDate = std::forward<DisabledDateT>(value); }
119 template<typename DisabledDateT = Aws::Utils::DateTime>
120 Resource& WithDisabledDate(DisabledDateT&& value) { SetDisabledDate(std::forward<DisabledDateT>(value)); return *this;}
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
129 template<typename DescriptionT = Aws::String>
130 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
131 template<typename DescriptionT = Aws::String>
132 Resource& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
134 private:
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_email;
140 bool m_emailHasBeenSet = false;
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
146 bool m_typeHasBeenSet = false;
147
149 bool m_stateHasBeenSet = false;
150
151 Aws::Utils::DateTime m_enabledDate{};
152 bool m_enabledDateHasBeenSet = false;
153
154 Aws::Utils::DateTime m_disabledDate{};
155 bool m_disabledDateHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace WorkMail
163} // 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:108
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKMAIL_API Resource()=default
bool DisabledDateHasBeenSet() const
Definition Resource.h:116
Resource & WithDisabledDate(DisabledDateT &&value)
Definition Resource.h:120
ResourceType GetType() const
Definition Resource.h:83
EntityState GetState() const
Definition Resource.h:93
void SetType(ResourceType value)
Definition Resource.h:85
void SetEnabledDate(EnabledDateT &&value)
Definition Resource.h:106
void SetDisabledDate(DisabledDateT &&value)
Definition Resource.h:118
const Aws::Utils::DateTime & GetEnabledDate() const
Definition Resource.h:103
Resource & WithId(IdT &&value)
Definition Resource.h:52
bool EnabledDateHasBeenSet() const
Definition Resource.h:104
void SetState(EntityState value)
Definition Resource.h:95
void SetId(IdT &&value)
Definition Resource.h:50
Resource & WithEmail(EmailT &&value)
Definition Resource.h:64
void SetEmail(EmailT &&value)
Definition Resource.h:62
Resource & WithDescription(DescriptionT &&value)
Definition Resource.h:132
Resource & WithType(ResourceType value)
Definition Resource.h:86
const Aws::String & GetName() const
Definition Resource.h:71
bool DescriptionHasBeenSet() const
Definition Resource.h:128
const Aws::String & GetId() const
Definition Resource.h:47
Resource & WithName(NameT &&value)
Definition Resource.h:76
AWS_WORKMAIL_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithState(EntityState value)
Definition Resource.h:96
const Aws::String & GetDescription() const
Definition Resource.h:127
void SetDescription(DescriptionT &&value)
Definition Resource.h:130
const Aws::Utils::DateTime & GetDisabledDate() const
Definition Resource.h:115
void SetName(NameT &&value)
Definition Resource.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue