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>
57 inline void SetAttribute(
const char* value) { m_attributeHasBeenSet =
true; m_attribute.assign(value); }
83 inline void SetImageId(
const char* value) { m_imageIdHasBeenSet =
true; m_imageId.assign(value); }
171 inline void SetValue(
const char* value) { m_valueHasBeenSet =
true; m_value.assign(value); }
242 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
248 bool m_attributeHasBeenSet =
false;
251 bool m_descriptionHasBeenSet =
false;
254 bool m_imageIdHasBeenSet =
false;
257 bool m_launchPermissionHasBeenSet =
false;
260 bool m_operationTypeHasBeenSet =
false;
263 bool m_productCodesHasBeenSet =
false;
266 bool m_userGroupsHasBeenSet =
false;
269 bool m_userIdsHasBeenSet =
false;
272 bool m_valueHasBeenSet =
false;
275 bool m_organizationArnsHasBeenSet =
false;
278 bool m_organizationalUnitArnsHasBeenSet =
false;
281 bool m_imdsSupportHasBeenSet =
false;
284 bool m_dryRunHasBeenSet =
false;
ModifyImageAttributeRequest & WithOperationType(const OperationType &value)
bool ImdsSupportHasBeenSet() const
const Aws::Vector< Aws::String > & GetUserGroups() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAttribute(const Aws::String &value)
ModifyImageAttributeRequest & WithProductCodes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetOrganizationalUnitArns() const
bool OrganizationArnsHasBeenSet() const
bool OrganizationalUnitArnsHasBeenSet() const
ModifyImageAttributeRequest & WithAttribute(const char *value)
ModifyImageAttributeRequest & AddUserGroups(const char *value)
const AttributeValue & GetDescription() const
AWS_EC2_API ModifyImageAttributeRequest()
ModifyImageAttributeRequest & WithOrganizationalUnitArns(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & AddOrganizationArns(Aws::String &&value)
bool ValueHasBeenSet() const
void SetAttribute(Aws::String &&value)
const Aws::String & GetValue() const
ModifyImageAttributeRequest & WithAttribute(const Aws::String &value)
ModifyImageAttributeRequest & WithValue(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetValue(Aws::String &&value)
ModifyImageAttributeRequest & WithDescription(const AttributeValue &value)
bool DescriptionHasBeenSet() const
ModifyImageAttributeRequest & WithValue(const char *value)
void SetImdsSupport(AttributeValue &&value)
bool OperationTypeHasBeenSet() const
void SetOrganizationalUnitArns(Aws::Vector< Aws::String > &&value)
void SetOrganizationalUnitArns(const Aws::Vector< Aws::String > &value)
void SetImageId(const Aws::String &value)
void SetOrganizationArns(Aws::Vector< Aws::String > &&value)
void SetAttribute(const char *value)
ModifyImageAttributeRequest & WithImageId(const char *value)
ModifyImageAttributeRequest & WithProductCodes(const Aws::Vector< Aws::String > &value)
bool ImageIdHasBeenSet() const
ModifyImageAttributeRequest & AddOrganizationArns(const char *value)
void SetDryRun(bool value)
ModifyImageAttributeRequest & AddProductCodes(const Aws::String &value)
bool UserGroupsHasBeenSet() const
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)
bool LaunchPermissionHasBeenSet() const
ModifyImageAttributeRequest & WithDryRun(bool value)
void SetProductCodes(const Aws::Vector< Aws::String > &value)
const Aws::String & GetAttribute() const
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)
bool DryRunHasBeenSet() const
ModifyImageAttributeRequest & WithOperationType(OperationType &&value)
void SetImageId(Aws::String &&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)
void SetOperationType(const OperationType &value)
ModifyImageAttributeRequest & WithImdsSupport(const AttributeValue &value)
ModifyImageAttributeRequest & AddProductCodes(const char *value)
ModifyImageAttributeRequest & AddProductCodes(Aws::String &&value)
void SetValue(const Aws::String &value)
const Aws::Vector< Aws::String > & GetUserIds() const
void SetValue(const char *value)
bool ProductCodesHasBeenSet() const
void SetUserGroups(Aws::Vector< Aws::String > &&value)
void SetImageId(const char *value)
void SetUserIds(Aws::Vector< Aws::String > &&value)
void SetDescription(AttributeValue &&value)
void SetOrganizationArns(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
ModifyImageAttributeRequest & AddOrganizationalUnitArns(const char *value)
bool UserIdsHasBeenSet() const
ModifyImageAttributeRequest & AddOrganizationArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetOrganizationArns() const
ModifyImageAttributeRequest & WithUserGroups(Aws::Vector< Aws::String > &&value)
const Aws::String & GetImageId() const
void SetImdsSupport(const AttributeValue &value)
void SetProductCodes(Aws::Vector< Aws::String > &&value)
void SetOperationType(OperationType &&value)
ModifyImageAttributeRequest & AddUserGroups(Aws::String &&value)
ModifyImageAttributeRequest & WithImdsSupport(AttributeValue &&value)
const OperationType & GetOperationType() const
ModifyImageAttributeRequest & WithOrganizationalUnitArns(Aws::Vector< Aws::String > &&value)
bool AttributeHasBeenSet() const
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)
const AttributeValue & GetImdsSupport() const
void SetDescription(const AttributeValue &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector