AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActivationId(const Aws::String& value) { m_activationIdHasBeenSet = true; m_activationId = value; }
53 inline void SetActivationId(Aws::String&& value) { m_activationIdHasBeenSet = true; m_activationId = std::move(value); }
54 inline void SetActivationId(const char* value) { m_activationIdHasBeenSet = true; m_activationId.assign(value); }
55 inline Activation& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;}
56 inline Activation& WithActivationId(Aws::String&& value) { SetActivationId(std::move(value)); return *this;}
57 inline Activation& WithActivationId(const char* value) { SetActivationId(value); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline Activation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline Activation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline Activation& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
78 inline const Aws::String& GetDefaultInstanceName() const{ return m_defaultInstanceName; }
79 inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; }
80 inline void SetDefaultInstanceName(const Aws::String& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = value; }
81 inline void SetDefaultInstanceName(Aws::String&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::move(value); }
82 inline void SetDefaultInstanceName(const char* value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName.assign(value); }
83 inline Activation& WithDefaultInstanceName(const Aws::String& value) { SetDefaultInstanceName(value); return *this;}
84 inline Activation& WithDefaultInstanceName(Aws::String&& value) { SetDefaultInstanceName(std::move(value)); return *this;}
85 inline Activation& WithDefaultInstanceName(const char* value) { SetDefaultInstanceName(value); return *this;}
87
89
93 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
94 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
95 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
96 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
97 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
98 inline Activation& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
99 inline Activation& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
100 inline Activation& WithIamRole(const char* value) { SetIamRole(value); return *this;}
102
104
108 inline int GetRegistrationLimit() const{ return m_registrationLimit; }
109 inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; }
110 inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; }
111 inline Activation& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;}
113
115
118 inline int GetRegistrationsCount() const{ return m_registrationsCount; }
119 inline bool RegistrationsCountHasBeenSet() const { return m_registrationsCountHasBeenSet; }
120 inline void SetRegistrationsCount(int value) { m_registrationsCountHasBeenSet = true; m_registrationsCount = value; }
121 inline Activation& WithRegistrationsCount(int value) { SetRegistrationsCount(value); return *this;}
123
125
129 inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
130 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
131 inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
132 inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
133 inline Activation& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
134 inline Activation& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
136
138
141 inline bool GetExpired() const{ return m_expired; }
142 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
143 inline void SetExpired(bool value) { m_expiredHasBeenSet = true; m_expired = value; }
144 inline Activation& WithExpired(bool value) { SetExpired(value); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
152 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
153 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
154 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
155 inline Activation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
156 inline Activation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
158
160
163 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
166 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
167 inline Activation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
168 inline Activation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
169 inline Activation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
170 inline Activation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
172 private:
173
174 Aws::String m_activationId;
175 bool m_activationIdHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::String m_defaultInstanceName;
181 bool m_defaultInstanceNameHasBeenSet = false;
182
183 Aws::String m_iamRole;
184 bool m_iamRoleHasBeenSet = false;
185
186 int m_registrationLimit;
187 bool m_registrationLimitHasBeenSet = false;
188
189 int m_registrationsCount;
190 bool m_registrationsCountHasBeenSet = false;
191
192 Aws::Utils::DateTime m_expirationDate;
193 bool m_expirationDateHasBeenSet = false;
194
195 bool m_expired;
196 bool m_expiredHasBeenSet = false;
197
198 Aws::Utils::DateTime m_createdDate;
199 bool m_createdDateHasBeenSet = false;
200
201 Aws::Vector<Tag> m_tags;
202 bool m_tagsHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace SSM
207} // namespace Aws
void SetDefaultInstanceName(const Aws::String &value)
Definition Activation.h:80
Activation & WithDescription(const char *value)
Definition Activation.h:71
void SetActivationId(Aws::String &&value)
Definition Activation.h:53
Activation & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition Activation.h:156
const Aws::Utils::DateTime & GetExpirationDate() const
Definition Activation.h:129
Activation & WithActivationId(Aws::String &&value)
Definition Activation.h:56
void SetTags(const Aws::Vector< Tag > &value)
Definition Activation.h:165
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Activation.h:151
Activation & WithTags(Aws::Vector< Tag > &&value)
Definition Activation.h:168
Activation & WithExpired(bool value)
Definition Activation.h:144
bool IamRoleHasBeenSet() const
Definition Activation.h:94
void SetActivationId(const char *value)
Definition Activation.h:54
bool ExpirationDateHasBeenSet() const
Definition Activation.h:130
Activation & WithIamRole(Aws::String &&value)
Definition Activation.h:99
Activation & WithDescription(Aws::String &&value)
Definition Activation.h:70
Activation & WithIamRole(const Aws::String &value)
Definition Activation.h:98
void SetDescription(const char *value)
Definition Activation.h:68
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition Activation.h:153
void SetIamRole(Aws::String &&value)
Definition Activation.h:96
bool DefaultInstanceNameHasBeenSet() const
Definition Activation.h:79
void SetRegistrationsCount(int value)
Definition Activation.h:120
Activation & WithExpirationDate(const Aws::Utils::DateTime &value)
Definition Activation.h:133
Activation & WithExpirationDate(Aws::Utils::DateTime &&value)
Definition Activation.h:134
bool ActivationIdHasBeenSet() const
Definition Activation.h:51
Activation & WithRegistrationsCount(int value)
Definition Activation.h:121
Activation & AddTags(const Tag &value)
Definition Activation.h:169
bool CreatedDateHasBeenSet() const
Definition Activation.h:152
const Aws::String & GetDescription() const
Definition Activation.h:64
void SetIamRole(const Aws::String &value)
Definition Activation.h:95
Activation & WithRegistrationLimit(int value)
Definition Activation.h:111
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition Activation.h:154
bool DescriptionHasBeenSet() const
Definition Activation.h:65
const Aws::Vector< Tag > & GetTags() const
Definition Activation.h:163
void SetDefaultInstanceName(const char *value)
Definition Activation.h:82
const Aws::String & GetIamRole() const
Definition Activation.h:93
void SetDescription(const Aws::String &value)
Definition Activation.h:66
bool RegistrationLimitHasBeenSet() const
Definition Activation.h:109
bool RegistrationsCountHasBeenSet() const
Definition Activation.h:119
void SetDefaultInstanceName(Aws::String &&value)
Definition Activation.h:81
Activation & WithIamRole(const char *value)
Definition Activation.h:100
AWS_SSM_API Activation & operator=(Aws::Utils::Json::JsonView jsonValue)
Activation & WithTags(const Aws::Vector< Tag > &value)
Definition Activation.h:167
void SetTags(Aws::Vector< Tag > &&value)
Definition Activation.h:166
void SetExpirationDate(Aws::Utils::DateTime &&value)
Definition Activation.h:132
void SetActivationId(const Aws::String &value)
Definition Activation.h:52
Activation & WithDefaultInstanceName(Aws::String &&value)
Definition Activation.h:84
Activation & WithDefaultInstanceName(const char *value)
Definition Activation.h:85
Activation & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition Activation.h:155
void SetRegistrationLimit(int value)
Definition Activation.h:110
Activation & WithActivationId(const Aws::String &value)
Definition Activation.h:55
const Aws::String & GetDefaultInstanceName() const
Definition Activation.h:78
void SetExpired(bool value)
Definition Activation.h:143
void SetExpirationDate(const Aws::Utils::DateTime &value)
Definition Activation.h:131
Activation & AddTags(Tag &&value)
Definition Activation.h:170
int GetRegistrationsCount() const
Definition Activation.h:118
Activation & WithActivationId(const char *value)
Definition Activation.h:57
void SetIamRole(const char *value)
Definition Activation.h:97
AWS_SSM_API Activation(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
Activation & WithDefaultInstanceName(const Aws::String &value)
Definition Activation.h:83
void SetDescription(Aws::String &&value)
Definition Activation.h:67
const Aws::String & GetActivationId() const
Definition Activation.h:50
Activation & WithDescription(const Aws::String &value)
Definition Activation.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue