7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AttributeValue.h>
12#include <aws/ec2/model/LaunchPermissionModifications.h>
13#include <aws/ec2/model/OperationType.h>
51 template <
typename AttributeT = Aws::String>
53 m_attributeHasBeenSet =
true;
54 m_attribute = std::forward<AttributeT>(value);
56 template <
typename AttributeT = Aws::String>
69 template <
typename DescriptionT = AttributeValue>
71 m_descriptionHasBeenSet =
true;
72 m_description = std::forward<DescriptionT>(value);
74 template <
typename DescriptionT = AttributeValue>
87 template <
typename ImageIdT = Aws::String>
89 m_imageIdHasBeenSet =
true;
90 m_imageId = std::forward<ImageIdT>(value);
92 template <
typename ImageIdT = Aws::String>
105 template <
typename LaunchPermissionT = LaunchPermissionModifications>
107 m_launchPermissionHasBeenSet =
true;
108 m_launchPermission = std::forward<LaunchPermissionT>(value);
110 template <
typename LaunchPermissionT = LaunchPermissionModifications>
125 m_operationTypeHasBeenSet =
true;
126 m_operationType = value;
140 template <
typename ProductCodesT = Aws::Vector<Aws::String>>
142 m_productCodesHasBeenSet =
true;
143 m_productCodes = std::forward<ProductCodesT>(value);
145 template <
typename ProductCodesT = Aws::Vector<Aws::String>>
150 template <
typename ProductCodesT = Aws::String>
152 m_productCodesHasBeenSet =
true;
153 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
165 template <
typename UserGroupsT = Aws::Vector<Aws::String>>
167 m_userGroupsHasBeenSet =
true;
168 m_userGroups = std::forward<UserGroupsT>(value);
170 template <
typename UserGroupsT = Aws::Vector<Aws::String>>
175 template <
typename UserGroupsT = Aws::String>
177 m_userGroupsHasBeenSet =
true;
178 m_userGroups.emplace_back(std::forward<UserGroupsT>(value));
190 template <
typename UserIdsT = Aws::Vector<Aws::String>>
192 m_userIdsHasBeenSet =
true;
193 m_userIds = std::forward<UserIdsT>(value);
195 template <
typename UserIdsT = Aws::Vector<Aws::String>>
200 template <
typename UserIdsT = Aws::String>
202 m_userIdsHasBeenSet =
true;
203 m_userIds.emplace_back(std::forward<UserIdsT>(value));
216 template <
typename ValueT = Aws::String>
218 m_valueHasBeenSet =
true;
219 m_value = std::forward<ValueT>(value);
221 template <
typename ValueT = Aws::String>
223 SetValue(std::forward<ValueT>(value));
236 template <
typename OrganizationArnsT = Aws::Vector<Aws::String>>
238 m_organizationArnsHasBeenSet =
true;
239 m_organizationArns = std::forward<OrganizationArnsT>(value);
241 template <
typename OrganizationArnsT = Aws::Vector<Aws::String>>
246 template <
typename OrganizationArnsT = Aws::String>
248 m_organizationArnsHasBeenSet =
true;
249 m_organizationArns.emplace_back(std::forward<OrganizationArnsT>(value));
262 template <
typename OrganizationalUnitArnsT = Aws::Vector<Aws::String>>
264 m_organizationalUnitArnsHasBeenSet =
true;
265 m_organizationalUnitArns = std::forward<OrganizationalUnitArnsT>(value);
267 template <
typename OrganizationalUnitArnsT = Aws::Vector<Aws::String>>
272 template <
typename OrganizationalUnitArnsT = Aws::String>
274 m_organizationalUnitArnsHasBeenSet =
true;
275 m_organizationalUnitArns.emplace_back(std::forward<OrganizationalUnitArnsT>(value));
296 template <
typename ImdsSupportT = AttributeValue>
298 m_imdsSupportHasBeenSet =
true;
299 m_imdsSupport = std::forward<ImdsSupportT>(value);
301 template <
typename ImdsSupportT = AttributeValue>
318 m_dryRunHasBeenSet =
true;
349 AttributeValue m_imdsSupport;
351 bool m_dryRun{
false};
352 bool m_attributeHasBeenSet =
false;
353 bool m_descriptionHasBeenSet =
false;
354 bool m_imageIdHasBeenSet =
false;
355 bool m_launchPermissionHasBeenSet =
false;
356 bool m_operationTypeHasBeenSet =
false;
357 bool m_productCodesHasBeenSet =
false;
358 bool m_userGroupsHasBeenSet =
false;
359 bool m_userIdsHasBeenSet =
false;
360 bool m_valueHasBeenSet =
false;
361 bool m_organizationArnsHasBeenSet =
false;
362 bool m_organizationalUnitArnsHasBeenSet =
false;
363 bool m_imdsSupportHasBeenSet =
false;
364 bool m_dryRunHasBeenSet =
false;
ModifyImageAttributeRequest & AddProductCodes(ProductCodesT &&value)
ModifyImageAttributeRequest & WithDescription(DescriptionT &&value)
bool ImdsSupportHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetUserGroups() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetOrganizationalUnitArns() const
bool OrganizationArnsHasBeenSet() const
bool OrganizationalUnitArnsHasBeenSet() const
ModifyImageAttributeRequest & AddUserIds(UserIdsT &&value)
ModifyImageAttributeRequest & WithAttribute(AttributeT &&value)
ModifyImageAttributeRequest & AddOrganizationArns(OrganizationArnsT &&value)
const AttributeValue & GetDescription() const
bool ValueHasBeenSet() const
void SetUserIds(UserIdsT &&value)
const Aws::String & GetValue() const
ModifyImageAttributeRequest & WithImdsSupport(ImdsSupportT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetProductCodes(ProductCodesT &&value)
bool DescriptionHasBeenSet() const
bool OperationTypeHasBeenSet() const
ModifyImageAttributeRequest & WithUserIds(UserIdsT &&value)
void SetValue(ValueT &&value)
void SetUserGroups(UserGroupsT &&value)
bool ImageIdHasBeenSet() const
void SetDryRun(bool value)
bool UserGroupsHasBeenSet() const
const Aws::Vector< Aws::String > & GetProductCodes() const
bool LaunchPermissionHasBeenSet() const
ModifyImageAttributeRequest & WithUserGroups(UserGroupsT &&value)
ModifyImageAttributeRequest & WithDryRun(bool value)
void SetImageId(ImageIdT &&value)
void SetLaunchPermission(LaunchPermissionT &&value)
ModifyImageAttributeRequest & WithLaunchPermission(LaunchPermissionT &&value)
const Aws::String & GetAttribute() const
ModifyImageAttributeRequest & WithOrganizationalUnitArns(OrganizationalUnitArnsT &&value)
void SetImdsSupport(ImdsSupportT &&value)
ModifyImageAttributeRequest & WithOperationType(OperationType value)
ModifyImageAttributeRequest & WithImageId(ImageIdT &&value)
bool DryRunHasBeenSet() const
void SetOrganizationalUnitArns(OrganizationalUnitArnsT &&value)
const LaunchPermissionModifications & GetLaunchPermission() const
virtual const char * GetServiceRequestName() const override
ModifyImageAttributeRequest & WithOrganizationArns(OrganizationArnsT &&value)
ModifyImageAttributeRequest & WithProductCodes(ProductCodesT &&value)
ModifyImageAttributeRequest & AddOrganizationalUnitArns(OrganizationalUnitArnsT &&value)
const Aws::Vector< Aws::String > & GetUserIds() const
void SetOrganizationArns(OrganizationArnsT &&value)
ModifyImageAttributeRequest & WithValue(ValueT &&value)
bool ProductCodesHasBeenSet() const
void SetAttribute(AttributeT &&value)
ModifyImageAttributeRequest & AddUserGroups(UserGroupsT &&value)
bool UserIdsHasBeenSet() const
const Aws::Vector< Aws::String > & GetOrganizationArns() const
const Aws::String & GetImageId() const
AWS_EC2_API ModifyImageAttributeRequest()=default
bool AttributeHasBeenSet() const
void SetOperationType(OperationType value)
const AttributeValue & GetImdsSupport() const
OperationType GetOperationType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector