AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyImageAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/AttributeValue.h>
11#include <aws/ec2/model/LaunchPermissionModifications.h>
12#include <aws/ec2/model/OperationType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ModifyImageAttribute"; }
39
40 AWS_EC2_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
53 inline const Aws::String& GetAttribute() const{ return m_attribute; }
54 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
55 inline void SetAttribute(const Aws::String& value) { m_attributeHasBeenSet = true; m_attribute = value; }
56 inline void SetAttribute(Aws::String&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
57 inline void SetAttribute(const char* value) { m_attributeHasBeenSet = true; m_attribute.assign(value); }
58 inline ModifyImageAttributeRequest& WithAttribute(const Aws::String& value) { SetAttribute(value); return *this;}
59 inline ModifyImageAttributeRequest& WithAttribute(Aws::String&& value) { SetAttribute(std::move(value)); return *this;}
60 inline ModifyImageAttributeRequest& WithAttribute(const char* value) { SetAttribute(value); return *this;}
62
64
67 inline const AttributeValue& GetDescription() const{ return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 inline void SetDescription(const AttributeValue& value) { m_descriptionHasBeenSet = true; m_description = value; }
70 inline void SetDescription(AttributeValue&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
71 inline ModifyImageAttributeRequest& WithDescription(const AttributeValue& value) { SetDescription(value); return *this;}
72 inline ModifyImageAttributeRequest& WithDescription(AttributeValue&& value) { SetDescription(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetImageId() const{ return m_imageId; }
80 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
81 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
82 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
83 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
84 inline ModifyImageAttributeRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
85 inline ModifyImageAttributeRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
86 inline ModifyImageAttributeRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
88
90
93 inline const LaunchPermissionModifications& GetLaunchPermission() const{ return m_launchPermission; }
94 inline bool LaunchPermissionHasBeenSet() const { return m_launchPermissionHasBeenSet; }
95 inline void SetLaunchPermission(const LaunchPermissionModifications& value) { m_launchPermissionHasBeenSet = true; m_launchPermission = value; }
96 inline void SetLaunchPermission(LaunchPermissionModifications&& value) { m_launchPermissionHasBeenSet = true; m_launchPermission = std::move(value); }
100
102
106 inline const OperationType& GetOperationType() const{ return m_operationType; }
107 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
108 inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
109 inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
111 inline ModifyImageAttributeRequest& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;}
113
115
118 inline const Aws::Vector<Aws::String>& GetProductCodes() const{ return m_productCodes; }
119 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
120 inline void SetProductCodes(const Aws::Vector<Aws::String>& value) { m_productCodesHasBeenSet = true; m_productCodes = value; }
121 inline void SetProductCodes(Aws::Vector<Aws::String>&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::move(value); }
124 inline ModifyImageAttributeRequest& AddProductCodes(const Aws::String& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; }
125 inline ModifyImageAttributeRequest& AddProductCodes(Aws::String&& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(std::move(value)); return *this; }
126 inline ModifyImageAttributeRequest& AddProductCodes(const char* value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; }
128
130
134 inline const Aws::Vector<Aws::String>& GetUserGroups() const{ return m_userGroups; }
135 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
136 inline void SetUserGroups(const Aws::Vector<Aws::String>& value) { m_userGroupsHasBeenSet = true; m_userGroups = value; }
137 inline void SetUserGroups(Aws::Vector<Aws::String>&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::move(value); }
139 inline ModifyImageAttributeRequest& WithUserGroups(Aws::Vector<Aws::String>&& value) { SetUserGroups(std::move(value)); return *this;}
140 inline ModifyImageAttributeRequest& AddUserGroups(const Aws::String& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
141 inline ModifyImageAttributeRequest& AddUserGroups(Aws::String&& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(std::move(value)); return *this; }
142 inline ModifyImageAttributeRequest& AddUserGroups(const char* value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
144
146
150 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
151 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
152 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
153 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
154 inline ModifyImageAttributeRequest& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
155 inline ModifyImageAttributeRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
156 inline ModifyImageAttributeRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
157 inline ModifyImageAttributeRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
158 inline ModifyImageAttributeRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
160
162
167 inline const Aws::String& GetValue() const{ return m_value; }
168 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
169 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
170 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
171 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
172 inline ModifyImageAttributeRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
173 inline ModifyImageAttributeRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
174 inline ModifyImageAttributeRequest& WithValue(const char* value) { SetValue(value); return *this;}
176
178
183 inline const Aws::Vector<Aws::String>& GetOrganizationArns() const{ return m_organizationArns; }
184 inline bool OrganizationArnsHasBeenSet() const { return m_organizationArnsHasBeenSet; }
185 inline void SetOrganizationArns(const Aws::Vector<Aws::String>& value) { m_organizationArnsHasBeenSet = true; m_organizationArns = value; }
186 inline void SetOrganizationArns(Aws::Vector<Aws::String>&& value) { m_organizationArnsHasBeenSet = true; m_organizationArns = std::move(value); }
189 inline ModifyImageAttributeRequest& AddOrganizationArns(const Aws::String& value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(value); return *this; }
190 inline ModifyImageAttributeRequest& AddOrganizationArns(Aws::String&& value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(std::move(value)); return *this; }
191 inline ModifyImageAttributeRequest& AddOrganizationArns(const char* value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(value); return *this; }
193
195
200 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitArns() const{ return m_organizationalUnitArns; }
201 inline bool OrganizationalUnitArnsHasBeenSet() const { return m_organizationalUnitArnsHasBeenSet; }
202 inline void SetOrganizationalUnitArns(const Aws::Vector<Aws::String>& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns = value; }
203 inline void SetOrganizationalUnitArns(Aws::Vector<Aws::String>&& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns = std::move(value); }
206 inline ModifyImageAttributeRequest& AddOrganizationalUnitArns(const Aws::String& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(value); return *this; }
207 inline ModifyImageAttributeRequest& AddOrganizationalUnitArns(Aws::String&& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(std::move(value)); return *this; }
208 inline ModifyImageAttributeRequest& AddOrganizationalUnitArns(const char* value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(value); return *this; }
210
212
225 inline const AttributeValue& GetImdsSupport() const{ return m_imdsSupport; }
226 inline bool ImdsSupportHasBeenSet() const { return m_imdsSupportHasBeenSet; }
227 inline void SetImdsSupport(const AttributeValue& value) { m_imdsSupportHasBeenSet = true; m_imdsSupport = value; }
228 inline void SetImdsSupport(AttributeValue&& value) { m_imdsSupportHasBeenSet = true; m_imdsSupport = std::move(value); }
229 inline ModifyImageAttributeRequest& WithImdsSupport(const AttributeValue& value) { SetImdsSupport(value); return *this;}
230 inline ModifyImageAttributeRequest& WithImdsSupport(AttributeValue&& value) { SetImdsSupport(std::move(value)); return *this;}
232
234
240 inline bool GetDryRun() const{ return m_dryRun; }
241 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
242 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
243 inline ModifyImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
245 private:
246
247 Aws::String m_attribute;
248 bool m_attributeHasBeenSet = false;
249
250 AttributeValue m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::String m_imageId;
254 bool m_imageIdHasBeenSet = false;
255
256 LaunchPermissionModifications m_launchPermission;
257 bool m_launchPermissionHasBeenSet = false;
258
259 OperationType m_operationType;
260 bool m_operationTypeHasBeenSet = false;
261
262 Aws::Vector<Aws::String> m_productCodes;
263 bool m_productCodesHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_userGroups;
266 bool m_userGroupsHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_userIds;
269 bool m_userIdsHasBeenSet = false;
270
271 Aws::String m_value;
272 bool m_valueHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_organizationArns;
275 bool m_organizationArnsHasBeenSet = false;
276
277 Aws::Vector<Aws::String> m_organizationalUnitArns;
278 bool m_organizationalUnitArnsHasBeenSet = false;
279
280 AttributeValue m_imdsSupport;
281 bool m_imdsSupportHasBeenSet = false;
282
283 bool m_dryRun;
284 bool m_dryRunHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace EC2
289} // namespace Aws
ModifyImageAttributeRequest & WithOperationType(const OperationType &value)
const Aws::Vector< Aws::String > & GetUserGroups() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyImageAttributeRequest & WithProductCodes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetOrganizationalUnitArns() const
ModifyImageAttributeRequest & WithAttribute(const char *value)
ModifyImageAttributeRequest & AddUserGroups(const char *value)
ModifyImageAttributeRequest & WithOrganizationalUnitArns(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & AddOrganizationArns(Aws::String &&value)
ModifyImageAttributeRequest & WithAttribute(const Aws::String &value)
ModifyImageAttributeRequest & WithValue(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyImageAttributeRequest & WithDescription(const AttributeValue &value)
ModifyImageAttributeRequest & WithValue(const char *value)
void SetOrganizationalUnitArns(Aws::Vector< Aws::String > &&value)
void SetOrganizationalUnitArns(const Aws::Vector< Aws::String > &value)
void SetOrganizationArns(Aws::Vector< Aws::String > &&value)
ModifyImageAttributeRequest & WithImageId(const char *value)
ModifyImageAttributeRequest & WithProductCodes(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & AddOrganizationArns(const char *value)
ModifyImageAttributeRequest & AddProductCodes(const Aws::String &value)
ModifyImageAttributeRequest & AddUserIds(const char *value)
void SetLaunchPermission(const LaunchPermissionModifications &value)
const Aws::Vector< Aws::String > & GetProductCodes() const
ModifyImageAttributeRequest & WithLaunchPermission(const LaunchPermissionModifications &value)
ModifyImageAttributeRequest & AddUserGroups(const Aws::String &value)
ModifyImageAttributeRequest & WithDryRun(bool value)
void SetProductCodes(const Aws::Vector< Aws::String > &value)
void SetUserGroups(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & WithLaunchPermission(LaunchPermissionModifications &&value)
ModifyImageAttributeRequest & AddUserIds(const Aws::String &value)
ModifyImageAttributeRequest & WithOrganizationArns(Aws::Vector< Aws::String > &&value)
ModifyImageAttributeRequest & AddOrganizationalUnitArns(const Aws::String &value)
ModifyImageAttributeRequest & WithValue(Aws::String &&value)
ModifyImageAttributeRequest & WithUserGroups(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & WithImageId(Aws::String &&value)
ModifyImageAttributeRequest & WithOrganizationArns(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & WithOperationType(OperationType &&value)
const LaunchPermissionModifications & GetLaunchPermission() const
virtual const char * GetServiceRequestName() const override
ModifyImageAttributeRequest & WithAttribute(Aws::String &&value)
void SetLaunchPermission(LaunchPermissionModifications &&value)
ModifyImageAttributeRequest & AddUserIds(Aws::String &&value)
ModifyImageAttributeRequest & WithImdsSupport(const AttributeValue &value)
ModifyImageAttributeRequest & AddProductCodes(const char *value)
ModifyImageAttributeRequest & AddProductCodes(Aws::String &&value)
const Aws::Vector< Aws::String > & GetUserIds() const
void SetUserGroups(Aws::Vector< Aws::String > &&value)
void SetUserIds(Aws::Vector< Aws::String > &&value)
void SetOrganizationArns(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & AddOrganizationalUnitArns(const char *value)
ModifyImageAttributeRequest & AddOrganizationArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetOrganizationArns() const
ModifyImageAttributeRequest & WithUserGroups(Aws::Vector< Aws::String > &&value)
void SetProductCodes(Aws::Vector< Aws::String > &&value)
ModifyImageAttributeRequest & AddUserGroups(Aws::String &&value)
ModifyImageAttributeRequest & WithImdsSupport(AttributeValue &&value)
ModifyImageAttributeRequest & WithOrganizationalUnitArns(Aws::Vector< Aws::String > &&value)
ModifyImageAttributeRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
ModifyImageAttributeRequest & WithImageId(const Aws::String &value)
ModifyImageAttributeRequest & AddOrganizationalUnitArns(Aws::String &&value)
ModifyImageAttributeRequest & WithDescription(AttributeValue &&value)
void SetUserIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector