AWS SDK for C++  1.7.233
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::EC2::Model::ModifyImageAttributeRequest Class Reference

#include <ModifyImageAttributeRequest.h>

+ Inheritance diagram for Aws::EC2::Model::ModifyImageAttributeRequest:

Public Member Functions

 ModifyImageAttributeRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::StringGetAttribute () const
 
bool AttributeHasBeenSet () const
 
void SetAttribute (const Aws::String &value)
 
void SetAttribute (Aws::String &&value)
 
void SetAttribute (const char *value)
 
ModifyImageAttributeRequestWithAttribute (const Aws::String &value)
 
ModifyImageAttributeRequestWithAttribute (Aws::String &&value)
 
ModifyImageAttributeRequestWithAttribute (const char *value)
 
const AttributeValueGetDescription () const
 
bool DescriptionHasBeenSet () const
 
void SetDescription (const AttributeValue &value)
 
void SetDescription (AttributeValue &&value)
 
ModifyImageAttributeRequestWithDescription (const AttributeValue &value)
 
ModifyImageAttributeRequestWithDescription (AttributeValue &&value)
 
const Aws::StringGetImageId () const
 
bool ImageIdHasBeenSet () const
 
void SetImageId (const Aws::String &value)
 
void SetImageId (Aws::String &&value)
 
void SetImageId (const char *value)
 
ModifyImageAttributeRequestWithImageId (const Aws::String &value)
 
ModifyImageAttributeRequestWithImageId (Aws::String &&value)
 
ModifyImageAttributeRequestWithImageId (const char *value)
 
const LaunchPermissionModificationsGetLaunchPermission () const
 
bool LaunchPermissionHasBeenSet () const
 
void SetLaunchPermission (const LaunchPermissionModifications &value)
 
void SetLaunchPermission (LaunchPermissionModifications &&value)
 
ModifyImageAttributeRequestWithLaunchPermission (const LaunchPermissionModifications &value)
 
ModifyImageAttributeRequestWithLaunchPermission (LaunchPermissionModifications &&value)
 
const OperationTypeGetOperationType () const
 
bool OperationTypeHasBeenSet () const
 
void SetOperationType (const OperationType &value)
 
void SetOperationType (OperationType &&value)
 
ModifyImageAttributeRequestWithOperationType (const OperationType &value)
 
ModifyImageAttributeRequestWithOperationType (OperationType &&value)
 
const Aws::Vector< Aws::String > & GetProductCodes () const
 
bool ProductCodesHasBeenSet () const
 
void SetProductCodes (const Aws::Vector< Aws::String > &value)
 
void SetProductCodes (Aws::Vector< Aws::String > &&value)
 
ModifyImageAttributeRequestWithProductCodes (const Aws::Vector< Aws::String > &value)
 
ModifyImageAttributeRequestWithProductCodes (Aws::Vector< Aws::String > &&value)
 
ModifyImageAttributeRequestAddProductCodes (const Aws::String &value)
 
ModifyImageAttributeRequestAddProductCodes (Aws::String &&value)
 
ModifyImageAttributeRequestAddProductCodes (const char *value)
 
const Aws::Vector< Aws::String > & GetUserGroups () const
 
bool UserGroupsHasBeenSet () const
 
void SetUserGroups (const Aws::Vector< Aws::String > &value)
 
void SetUserGroups (Aws::Vector< Aws::String > &&value)
 
ModifyImageAttributeRequestWithUserGroups (const Aws::Vector< Aws::String > &value)
 
ModifyImageAttributeRequestWithUserGroups (Aws::Vector< Aws::String > &&value)
 
ModifyImageAttributeRequestAddUserGroups (const Aws::String &value)
 
ModifyImageAttributeRequestAddUserGroups (Aws::String &&value)
 
ModifyImageAttributeRequestAddUserGroups (const char *value)
 
const Aws::Vector< Aws::String > & GetUserIds () const
 
bool UserIdsHasBeenSet () const
 
void SetUserIds (const Aws::Vector< Aws::String > &value)
 
void SetUserIds (Aws::Vector< Aws::String > &&value)
 
ModifyImageAttributeRequestWithUserIds (const Aws::Vector< Aws::String > &value)
 
ModifyImageAttributeRequestWithUserIds (Aws::Vector< Aws::String > &&value)
 
ModifyImageAttributeRequestAddUserIds (const Aws::String &value)
 
ModifyImageAttributeRequestAddUserIds (Aws::String &&value)
 
ModifyImageAttributeRequestAddUserIds (const char *value)
 
const Aws::StringGetValue () const
 
bool ValueHasBeenSet () const
 
void SetValue (const Aws::String &value)
 
void SetValue (Aws::String &&value)
 
void SetValue (const char *value)
 
ModifyImageAttributeRequestWithValue (const Aws::String &value)
 
ModifyImageAttributeRequestWithValue (Aws::String &&value)
 
ModifyImageAttributeRequestWithValue (const char *value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
ModifyImageAttributeRequestWithDryRun (bool value)
 
- Public Member Functions inherited from Aws::EC2::EC2Request
virtual ~EC2Request ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Protected Member Functions

void DumpBodyToUrl (Aws::Http::URI &uri) const override
 
- Protected Member Functions inherited from Aws::EC2::EC2Request
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const
 

Detailed Description

Contains the parameters for ModifyImageAttribute.

See Also:

AWS API Reference

Definition at line 39 of file ModifyImageAttributeRequest.h.

Constructor & Destructor Documentation

◆ ModifyImageAttributeRequest()

Aws::EC2::Model::ModifyImageAttributeRequest::ModifyImageAttributeRequest ( )

Member Function Documentation

◆ AddProductCodes() [1/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddProductCodes ( const Aws::String value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 294 of file ModifyImageAttributeRequest.h.

◆ AddProductCodes() [2/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddProductCodes ( Aws::String &&  value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 300 of file ModifyImageAttributeRequest.h.

◆ AddProductCodes() [3/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddProductCodes ( const char *  value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 306 of file ModifyImageAttributeRequest.h.

◆ AddUserGroups() [1/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddUserGroups ( const Aws::String value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 349 of file ModifyImageAttributeRequest.h.

◆ AddUserGroups() [2/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddUserGroups ( Aws::String &&  value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 355 of file ModifyImageAttributeRequest.h.

◆ AddUserGroups() [3/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddUserGroups ( const char *  value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 361 of file ModifyImageAttributeRequest.h.

◆ AddUserIds() [1/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddUserIds ( const Aws::String value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 404 of file ModifyImageAttributeRequest.h.

◆ AddUserIds() [2/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddUserIds ( Aws::String &&  value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 410 of file ModifyImageAttributeRequest.h.

◆ AddUserIds() [3/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::AddUserIds ( const char *  value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 416 of file ModifyImageAttributeRequest.h.

◆ AttributeHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::AttributeHasBeenSet ( ) const
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 69 of file ModifyImageAttributeRequest.h.

◆ DescriptionHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::DescriptionHasBeenSet ( ) const
inline

A new description for the AMI.

Definition at line 122 of file ModifyImageAttributeRequest.h.

◆ DryRunHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::DryRunHasBeenSet ( ) const
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 490 of file ModifyImageAttributeRequest.h.

◆ DumpBodyToUrl()

void Aws::EC2::Model::ModifyImageAttributeRequest::DumpBodyToUrl ( Aws::Http::URI uri) const
overrideprotectedvirtual

Default does nothing. Override this to convert what would otherwise be the payload of the request to a query string format.

Reimplemented from Aws::AmazonWebServiceRequest.

◆ GetAttribute()

const Aws::String& Aws::EC2::Model::ModifyImageAttributeRequest::GetAttribute ( ) const
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 62 of file ModifyImageAttributeRequest.h.

◆ GetDescription()

const AttributeValue& Aws::EC2::Model::ModifyImageAttributeRequest::GetDescription ( ) const
inline

A new description for the AMI.

Definition at line 117 of file ModifyImageAttributeRequest.h.

◆ GetDryRun()

bool Aws::EC2::Model::ModifyImageAttributeRequest::GetDryRun ( ) const
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 482 of file ModifyImageAttributeRequest.h.

◆ GetImageId()

const Aws::String& Aws::EC2::Model::ModifyImageAttributeRequest::GetImageId ( ) const
inline

The ID of the AMI.

Definition at line 148 of file ModifyImageAttributeRequest.h.

◆ GetLaunchPermission()

const LaunchPermissionModifications& Aws::EC2::Model::ModifyImageAttributeRequest::GetLaunchPermission ( ) const
inline

A new launch permission for the AMI.

Definition at line 189 of file ModifyImageAttributeRequest.h.

◆ GetOperationType()

const OperationType& Aws::EC2::Model::ModifyImageAttributeRequest::GetOperationType ( ) const
inline

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 221 of file ModifyImageAttributeRequest.h.

◆ GetProductCodes()

const Aws::Vector<Aws::String>& Aws::EC2::Model::ModifyImageAttributeRequest::GetProductCodes ( ) const
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 258 of file ModifyImageAttributeRequest.h.

◆ GetServiceRequestName()

virtual const char* Aws::EC2::Model::ModifyImageAttributeRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

Implements Aws::AmazonWebServiceRequest.

Definition at line 48 of file ModifyImageAttributeRequest.h.

◆ GetUserGroups()

const Aws::Vector<Aws::String>& Aws::EC2::Model::ModifyImageAttributeRequest::GetUserGroups ( ) const
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 313 of file ModifyImageAttributeRequest.h.

◆ GetUserIds()

const Aws::Vector<Aws::String>& Aws::EC2::Model::ModifyImageAttributeRequest::GetUserIds ( ) const
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 368 of file ModifyImageAttributeRequest.h.

◆ GetValue()

const Aws::String& Aws::EC2::Model::ModifyImageAttributeRequest::GetValue ( ) const
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 424 of file ModifyImageAttributeRequest.h.

◆ ImageIdHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::ImageIdHasBeenSet ( ) const
inline

The ID of the AMI.

Definition at line 153 of file ModifyImageAttributeRequest.h.

◆ LaunchPermissionHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::LaunchPermissionHasBeenSet ( ) const
inline

A new launch permission for the AMI.

Definition at line 194 of file ModifyImageAttributeRequest.h.

◆ OperationTypeHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::OperationTypeHasBeenSet ( ) const
inline

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 227 of file ModifyImageAttributeRequest.h.

◆ ProductCodesHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::ProductCodesHasBeenSet ( ) const
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 264 of file ModifyImageAttributeRequest.h.

◆ SerializePayload()

Aws::String Aws::EC2::Model::ModifyImageAttributeRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetAttribute() [1/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetAttribute ( const Aws::String value)
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 76 of file ModifyImageAttributeRequest.h.

◆ SetAttribute() [2/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetAttribute ( Aws::String &&  value)
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 83 of file ModifyImageAttributeRequest.h.

◆ SetAttribute() [3/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetAttribute ( const char *  value)
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 90 of file ModifyImageAttributeRequest.h.

◆ SetDescription() [1/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetDescription ( const AttributeValue value)
inline

A new description for the AMI.

Definition at line 127 of file ModifyImageAttributeRequest.h.

◆ SetDescription() [2/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetDescription ( AttributeValue &&  value)
inline

A new description for the AMI.

Definition at line 132 of file ModifyImageAttributeRequest.h.

◆ SetDryRun()

void Aws::EC2::Model::ModifyImageAttributeRequest::SetDryRun ( bool  value)
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 498 of file ModifyImageAttributeRequest.h.

◆ SetImageId() [1/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetImageId ( const Aws::String value)
inline

The ID of the AMI.

Definition at line 158 of file ModifyImageAttributeRequest.h.

◆ SetImageId() [2/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetImageId ( Aws::String &&  value)
inline

The ID of the AMI.

Definition at line 163 of file ModifyImageAttributeRequest.h.

◆ SetImageId() [3/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetImageId ( const char *  value)
inline

The ID of the AMI.

Definition at line 168 of file ModifyImageAttributeRequest.h.

◆ SetLaunchPermission() [1/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetLaunchPermission ( const LaunchPermissionModifications value)
inline

A new launch permission for the AMI.

Definition at line 199 of file ModifyImageAttributeRequest.h.

◆ SetLaunchPermission() [2/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetLaunchPermission ( LaunchPermissionModifications &&  value)
inline

A new launch permission for the AMI.

Definition at line 204 of file ModifyImageAttributeRequest.h.

◆ SetOperationType() [1/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetOperationType ( const OperationType value)
inline

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 233 of file ModifyImageAttributeRequest.h.

◆ SetOperationType() [2/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetOperationType ( OperationType &&  value)
inline

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 239 of file ModifyImageAttributeRequest.h.

◆ SetProductCodes() [1/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetProductCodes ( const Aws::Vector< Aws::String > &  value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 270 of file ModifyImageAttributeRequest.h.

◆ SetProductCodes() [2/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetProductCodes ( Aws::Vector< Aws::String > &&  value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 276 of file ModifyImageAttributeRequest.h.

◆ SetUserGroups() [1/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetUserGroups ( const Aws::Vector< Aws::String > &  value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 325 of file ModifyImageAttributeRequest.h.

◆ SetUserGroups() [2/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetUserGroups ( Aws::Vector< Aws::String > &&  value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 331 of file ModifyImageAttributeRequest.h.

◆ SetUserIds() [1/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetUserIds ( const Aws::Vector< Aws::String > &  value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 380 of file ModifyImageAttributeRequest.h.

◆ SetUserIds() [2/2]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetUserIds ( Aws::Vector< Aws::String > &&  value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 386 of file ModifyImageAttributeRequest.h.

◆ SetValue() [1/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetValue ( const Aws::String value)
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 438 of file ModifyImageAttributeRequest.h.

◆ SetValue() [2/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetValue ( Aws::String &&  value)
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 445 of file ModifyImageAttributeRequest.h.

◆ SetValue() [3/3]

void Aws::EC2::Model::ModifyImageAttributeRequest::SetValue ( const char *  value)
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 452 of file ModifyImageAttributeRequest.h.

◆ UserGroupsHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::UserGroupsHasBeenSet ( ) const
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 319 of file ModifyImageAttributeRequest.h.

◆ UserIdsHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::UserIdsHasBeenSet ( ) const
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 374 of file ModifyImageAttributeRequest.h.

◆ ValueHasBeenSet()

bool Aws::EC2::Model::ModifyImageAttributeRequest::ValueHasBeenSet ( ) const
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 431 of file ModifyImageAttributeRequest.h.

◆ WithAttribute() [1/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithAttribute ( const Aws::String value)
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 97 of file ModifyImageAttributeRequest.h.

◆ WithAttribute() [2/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithAttribute ( Aws::String &&  value)
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 104 of file ModifyImageAttributeRequest.h.

◆ WithAttribute() [3/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithAttribute ( const char *  value)
inline

The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

Definition at line 111 of file ModifyImageAttributeRequest.h.

◆ WithDescription() [1/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithDescription ( const AttributeValue value)
inline

A new description for the AMI.

Definition at line 137 of file ModifyImageAttributeRequest.h.

◆ WithDescription() [2/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithDescription ( AttributeValue &&  value)
inline

A new description for the AMI.

Definition at line 142 of file ModifyImageAttributeRequest.h.

◆ WithDryRun()

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithDryRun ( bool  value)
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 506 of file ModifyImageAttributeRequest.h.

◆ WithImageId() [1/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithImageId ( const Aws::String value)
inline

The ID of the AMI.

Definition at line 173 of file ModifyImageAttributeRequest.h.

◆ WithImageId() [2/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithImageId ( Aws::String &&  value)
inline

The ID of the AMI.

Definition at line 178 of file ModifyImageAttributeRequest.h.

◆ WithImageId() [3/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithImageId ( const char *  value)
inline

The ID of the AMI.

Definition at line 183 of file ModifyImageAttributeRequest.h.

◆ WithLaunchPermission() [1/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithLaunchPermission ( const LaunchPermissionModifications value)
inline

A new launch permission for the AMI.

Definition at line 209 of file ModifyImageAttributeRequest.h.

◆ WithLaunchPermission() [2/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithLaunchPermission ( LaunchPermissionModifications &&  value)
inline

A new launch permission for the AMI.

Definition at line 214 of file ModifyImageAttributeRequest.h.

◆ WithOperationType() [1/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithOperationType ( const OperationType value)
inline

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 245 of file ModifyImageAttributeRequest.h.

◆ WithOperationType() [2/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithOperationType ( OperationType &&  value)
inline

The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 251 of file ModifyImageAttributeRequest.h.

◆ WithProductCodes() [1/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithProductCodes ( const Aws::Vector< Aws::String > &  value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 282 of file ModifyImageAttributeRequest.h.

◆ WithProductCodes() [2/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithProductCodes ( Aws::Vector< Aws::String > &&  value)
inline

The DevPay product codes. After you add a product code to an AMI, it can't be removed.

Definition at line 288 of file ModifyImageAttributeRequest.h.

◆ WithUserGroups() [1/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithUserGroups ( const Aws::Vector< Aws::String > &  value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 337 of file ModifyImageAttributeRequest.h.

◆ WithUserGroups() [2/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithUserGroups ( Aws::Vector< Aws::String > &&  value)
inline

The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 343 of file ModifyImageAttributeRequest.h.

◆ WithUserIds() [1/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithUserIds ( const Aws::Vector< Aws::String > &  value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 392 of file ModifyImageAttributeRequest.h.

◆ WithUserIds() [2/2]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithUserIds ( Aws::Vector< Aws::String > &&  value)
inline

The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

Definition at line 398 of file ModifyImageAttributeRequest.h.

◆ WithValue() [1/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithValue ( const Aws::String value)
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 459 of file ModifyImageAttributeRequest.h.

◆ WithValue() [2/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithValue ( Aws::String &&  value)
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 466 of file ModifyImageAttributeRequest.h.

◆ WithValue() [3/3]

ModifyImageAttributeRequest& Aws::EC2::Model::ModifyImageAttributeRequest::WithValue ( const char *  value)
inline

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

Definition at line 473 of file ModifyImageAttributeRequest.h.


The documentation for this class was generated from the following file: