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>
55 template<
typename AttributeT = Aws::String>
56 void SetAttribute(AttributeT&& value) { m_attributeHasBeenSet =
true; m_attribute = std::forward<AttributeT>(value); }
57 template<
typename AttributeT = Aws::String>
67 template<
typename DescriptionT = AttributeValue>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
69 template<
typename DescriptionT = AttributeValue>
79 template<
typename ImageIdT = Aws::String>
80 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet =
true; m_imageId = std::forward<ImageIdT>(value); }
81 template<
typename ImageIdT = Aws::String>
91 template<
typename LaunchPermissionT = LaunchPermissionModifications>
92 void SetLaunchPermission(LaunchPermissionT&& value) { m_launchPermissionHasBeenSet =
true; m_launchPermission = std::forward<LaunchPermissionT>(value); }
93 template<
typename LaunchPermissionT = LaunchPermissionModifications>
114 template<
typename ProductCodesT = Aws::Vector<Aws::String>>
115 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet =
true; m_productCodes = std::forward<ProductCodesT>(value); }
116 template<
typename ProductCodesT = Aws::Vector<Aws::String>>
118 template<
typename ProductCodesT = Aws::String>
129 template<
typename UserGroupsT = Aws::Vector<Aws::String>>
130 void SetUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet =
true; m_userGroups = std::forward<UserGroupsT>(value); }
131 template<
typename UserGroupsT = Aws::Vector<Aws::String>>
133 template<
typename UserGroupsT = Aws::String>
144 template<
typename UserIdsT = Aws::Vector<Aws::String>>
145 void SetUserIds(UserIdsT&& value) { m_userIdsHasBeenSet =
true; m_userIds = std::forward<UserIdsT>(value); }
146 template<
typename UserIdsT = Aws::Vector<Aws::String>>
148 template<
typename UserIdsT = Aws::String>
160 template<
typename ValueT = Aws::String>
161 void SetValue(ValueT&& value) { m_valueHasBeenSet =
true; m_value = std::forward<ValueT>(value); }
162 template<
typename ValueT = Aws::String>
174 template<
typename OrganizationArnsT = Aws::Vector<Aws::String>>
175 void SetOrganizationArns(OrganizationArnsT&& value) { m_organizationArnsHasBeenSet =
true; m_organizationArns = std::forward<OrganizationArnsT>(value); }
176 template<
typename OrganizationArnsT = Aws::Vector<Aws::String>>
178 template<
typename OrganizationArnsT = Aws::String>
190 template<
typename OrganizationalUnitArnsT = Aws::Vector<Aws::String>>
191 void SetOrganizationalUnitArns(OrganizationalUnitArnsT&& value) { m_organizationalUnitArnsHasBeenSet =
true; m_organizationalUnitArns = std::forward<OrganizationalUnitArnsT>(value); }
192 template<
typename OrganizationalUnitArnsT = Aws::Vector<Aws::String>>
194 template<
typename OrganizationalUnitArnsT = Aws::String>
214 template<
typename ImdsSupportT = AttributeValue>
215 void SetImdsSupport(ImdsSupportT&& value) { m_imdsSupportHasBeenSet =
true; m_imdsSupport = std::forward<ImdsSupportT>(value); }
216 template<
typename ImdsSupportT = AttributeValue>
229 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
235 bool m_attributeHasBeenSet =
false;
238 bool m_descriptionHasBeenSet =
false;
241 bool m_imageIdHasBeenSet =
false;
244 bool m_launchPermissionHasBeenSet =
false;
247 bool m_operationTypeHasBeenSet =
false;
250 bool m_productCodesHasBeenSet =
false;
253 bool m_userGroupsHasBeenSet =
false;
256 bool m_userIdsHasBeenSet =
false;
259 bool m_valueHasBeenSet =
false;
262 bool m_organizationArnsHasBeenSet =
false;
265 bool m_organizationalUnitArnsHasBeenSet =
false;
267 AttributeValue m_imdsSupport;
268 bool m_imdsSupportHasBeenSet =
false;
270 bool m_dryRun{
false};
271 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