AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateActivationRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/Tag.h>
13#include <aws/ssm/model/RegistrationMetadataItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateActivation"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline CreateActivationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline CreateActivationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline CreateActivationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
64 inline const Aws::String& GetDefaultInstanceName() const{ return m_defaultInstanceName; }
65 inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; }
66 inline void SetDefaultInstanceName(const Aws::String& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = value; }
67 inline void SetDefaultInstanceName(Aws::String&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::move(value); }
68 inline void SetDefaultInstanceName(const char* value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName.assign(value); }
70 inline CreateActivationRequest& WithDefaultInstanceName(Aws::String&& value) { SetDefaultInstanceName(std::move(value)); return *this;}
71 inline CreateActivationRequest& WithDefaultInstanceName(const char* value) { SetDefaultInstanceName(value); return *this;}
73
75
86 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
87 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
88 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
89 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
90 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
91 inline CreateActivationRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
92 inline CreateActivationRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
93 inline CreateActivationRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
95
97
101 inline int GetRegistrationLimit() const{ return m_registrationLimit; }
102 inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; }
103 inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; }
104 inline CreateActivationRequest& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;}
106
108
114 inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
115 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
116 inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
117 inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
119 inline CreateActivationRequest& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
121
123
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline CreateActivationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline CreateActivationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateActivationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline CreateActivationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152
154
157 inline const Aws::Vector<RegistrationMetadataItem>& GetRegistrationMetadata() const{ return m_registrationMetadata; }
158 inline bool RegistrationMetadataHasBeenSet() const { return m_registrationMetadataHasBeenSet; }
159 inline void SetRegistrationMetadata(const Aws::Vector<RegistrationMetadataItem>& value) { m_registrationMetadataHasBeenSet = true; m_registrationMetadata = value; }
160 inline void SetRegistrationMetadata(Aws::Vector<RegistrationMetadataItem>&& value) { m_registrationMetadataHasBeenSet = true; m_registrationMetadata = std::move(value); }
163 inline CreateActivationRequest& AddRegistrationMetadata(const RegistrationMetadataItem& value) { m_registrationMetadataHasBeenSet = true; m_registrationMetadata.push_back(value); return *this; }
164 inline CreateActivationRequest& AddRegistrationMetadata(RegistrationMetadataItem&& value) { m_registrationMetadataHasBeenSet = true; m_registrationMetadata.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_defaultInstanceName;
172 bool m_defaultInstanceNameHasBeenSet = false;
173
174 Aws::String m_iamRole;
175 bool m_iamRoleHasBeenSet = false;
176
177 int m_registrationLimit;
178 bool m_registrationLimitHasBeenSet = false;
179
180 Aws::Utils::DateTime m_expirationDate;
181 bool m_expirationDateHasBeenSet = false;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_tagsHasBeenSet = false;
185
186 Aws::Vector<RegistrationMetadataItem> m_registrationMetadata;
187 bool m_registrationMetadataHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SSM
192} // namespace Aws
CreateActivationRequest & WithDescription(const char *value)
void SetExpirationDate(const Aws::Utils::DateTime &value)
CreateActivationRequest & WithDefaultInstanceName(Aws::String &&value)
CreateActivationRequest & WithExpirationDate(const Aws::Utils::DateTime &value)
CreateActivationRequest & WithIamRole(const Aws::String &value)
CreateActivationRequest & WithDescription(Aws::String &&value)
CreateActivationRequest & AddRegistrationMetadata(const RegistrationMetadataItem &value)
void SetExpirationDate(Aws::Utils::DateTime &&value)
CreateActivationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateActivationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateActivationRequest & AddTags(Tag &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
CreateActivationRequest & WithExpirationDate(Aws::Utils::DateTime &&value)
CreateActivationRequest & AddRegistrationMetadata(RegistrationMetadataItem &&value)
void SetRegistrationMetadata(const Aws::Vector< RegistrationMetadataItem > &value)
CreateActivationRequest & WithRegistrationLimit(int value)
CreateActivationRequest & WithRegistrationMetadata(Aws::Vector< RegistrationMetadataItem > &&value)
void SetDefaultInstanceName(const Aws::String &value)
void SetDescription(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateActivationRequest & WithIamRole(const char *value)
CreateActivationRequest & WithDefaultInstanceName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
void SetRegistrationMetadata(Aws::Vector< RegistrationMetadataItem > &&value)
const Aws::Vector< RegistrationMetadataItem > & GetRegistrationMetadata() const
CreateActivationRequest & WithDefaultInstanceName(const Aws::String &value)
CreateActivationRequest & WithDescription(const Aws::String &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateActivationRequest & AddTags(const Tag &value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateActivationRequest & WithRegistrationMetadata(const Aws::Vector< RegistrationMetadataItem > &value)
virtual const char * GetServiceRequestName() const override
CreateActivationRequest & WithIamRole(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector