AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Activation.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/Tag.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 SSM
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_SSM_API Activation() = default;
41 AWS_SSM_API Activation(Aws::Utils::Json::JsonView jsonValue);
44
45
47
50 inline const Aws::String& GetActivationId() const { return m_activationId; }
51 inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; }
52 template<typename ActivationIdT = Aws::String>
53 void SetActivationId(ActivationIdT&& value) { m_activationIdHasBeenSet = true; m_activationId = std::forward<ActivationIdT>(value); }
54 template<typename ActivationIdT = Aws::String>
55 Activation& WithActivationId(ActivationIdT&& value) { SetActivationId(std::forward<ActivationIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 Activation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDefaultInstanceName() const { return m_defaultInstanceName; }
75 inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; }
76 template<typename DefaultInstanceNameT = Aws::String>
77 void SetDefaultInstanceName(DefaultInstanceNameT&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::forward<DefaultInstanceNameT>(value); }
78 template<typename DefaultInstanceNameT = Aws::String>
79 Activation& WithDefaultInstanceName(DefaultInstanceNameT&& value) { SetDefaultInstanceName(std::forward<DefaultInstanceNameT>(value)); return *this;}
81
83
87 inline const Aws::String& GetIamRole() const { return m_iamRole; }
88 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
89 template<typename IamRoleT = Aws::String>
90 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
91 template<typename IamRoleT = Aws::String>
92 Activation& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
94
96
100 inline int GetRegistrationLimit() const { return m_registrationLimit; }
101 inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; }
102 inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; }
103 inline Activation& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;}
105
107
110 inline int GetRegistrationsCount() const { return m_registrationsCount; }
111 inline bool RegistrationsCountHasBeenSet() const { return m_registrationsCountHasBeenSet; }
112 inline void SetRegistrationsCount(int value) { m_registrationsCountHasBeenSet = true; m_registrationsCount = value; }
113 inline Activation& WithRegistrationsCount(int value) { SetRegistrationsCount(value); return *this;}
115
117
121 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
122 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
123 template<typename ExpirationDateT = Aws::Utils::DateTime>
124 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
125 template<typename ExpirationDateT = Aws::Utils::DateTime>
126 Activation& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
128
130
133 inline bool GetExpired() const { return m_expired; }
134 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
135 inline void SetExpired(bool value) { m_expiredHasBeenSet = true; m_expired = value; }
136 inline Activation& WithExpired(bool value) { SetExpired(value); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
144 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
145 template<typename CreatedDateT = Aws::Utils::DateTime>
146 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
147 template<typename CreatedDateT = Aws::Utils::DateTime>
148 Activation& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
150
152
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template<typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
159 template<typename TagsT = Aws::Vector<Tag>>
160 Activation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
161 template<typename TagsT = Tag>
162 Activation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
164 private:
165
166 Aws::String m_activationId;
167 bool m_activationIdHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_defaultInstanceName;
173 bool m_defaultInstanceNameHasBeenSet = false;
174
175 Aws::String m_iamRole;
176 bool m_iamRoleHasBeenSet = false;
177
178 int m_registrationLimit{0};
179 bool m_registrationLimitHasBeenSet = false;
180
181 int m_registrationsCount{0};
182 bool m_registrationsCountHasBeenSet = false;
183
184 Aws::Utils::DateTime m_expirationDate{};
185 bool m_expirationDateHasBeenSet = false;
186
187 bool m_expired{false};
188 bool m_expiredHasBeenSet = false;
189
190 Aws::Utils::DateTime m_createdDate{};
191 bool m_createdDateHasBeenSet = false;
192
193 Aws::Vector<Tag> m_tags;
194 bool m_tagsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace SSM
199} // namespace Aws
Activation & WithDefaultInstanceName(DefaultInstanceNameT &&value)
Definition Activation.h:79
void SetActivationId(ActivationIdT &&value)
Definition Activation.h:53
void SetIamRole(IamRoleT &&value)
Definition Activation.h:90
const Aws::Utils::DateTime & GetExpirationDate() const
Definition Activation.h:121
Activation & WithCreatedDate(CreatedDateT &&value)
Definition Activation.h:148
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Activation.h:143
Activation & WithExpired(bool value)
Definition Activation.h:136
bool IamRoleHasBeenSet() const
Definition Activation.h:88
void SetTags(TagsT &&value)
Definition Activation.h:158
void SetDescription(DescriptionT &&value)
Definition Activation.h:65
bool ExpirationDateHasBeenSet() const
Definition Activation.h:122
Activation & WithExpirationDate(ExpirationDateT &&value)
Definition Activation.h:126
AWS_SSM_API Activation()=default
bool DefaultInstanceNameHasBeenSet() const
Definition Activation.h:75
void SetRegistrationsCount(int value)
Definition Activation.h:112
Activation & WithDescription(DescriptionT &&value)
Definition Activation.h:67
void SetDefaultInstanceName(DefaultInstanceNameT &&value)
Definition Activation.h:77
bool ActivationIdHasBeenSet() const
Definition Activation.h:51
Activation & WithRegistrationsCount(int value)
Definition Activation.h:113
bool CreatedDateHasBeenSet() const
Definition Activation.h:144
void SetExpirationDate(ExpirationDateT &&value)
Definition Activation.h:124
const Aws::String & GetDescription() const
Definition Activation.h:62
Activation & WithRegistrationLimit(int value)
Definition Activation.h:103
bool DescriptionHasBeenSet() const
Definition Activation.h:63
const Aws::Vector< Tag > & GetTags() const
Definition Activation.h:155
const Aws::String & GetIamRole() const
Definition Activation.h:87
Activation & AddTags(TagsT &&value)
Definition Activation.h:162
bool RegistrationLimitHasBeenSet() const
Definition Activation.h:101
bool RegistrationsCountHasBeenSet() const
Definition Activation.h:111
AWS_SSM_API Activation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegistrationLimit(int value)
Definition Activation.h:102
const Aws::String & GetDefaultInstanceName() const
Definition Activation.h:74
void SetExpired(bool value)
Definition Activation.h:135
Activation & WithTags(TagsT &&value)
Definition Activation.h:160
int GetRegistrationsCount() const
Definition Activation.h:110
void SetCreatedDate(CreatedDateT &&value)
Definition Activation.h:146
AWS_SSM_API Activation(Aws::Utils::Json::JsonView jsonValue)
Activation & WithIamRole(IamRoleT &&value)
Definition Activation.h:92
Activation & WithActivationId(ActivationIdT &&value)
Definition Activation.h:55
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetActivationId() const
Definition Activation.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue