public class ModifyImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyImageAttributeRequest>
ModifyImageAttribute operation.
 Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.
NOTE: AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.
NOOP| Constructor and Description | 
|---|
ModifyImageAttributeRequest()
Default constructor for a new ModifyImageAttributeRequest object. 
 | 
ModifyImageAttributeRequest(String imageId,
                           String attribute)
Constructs a new ModifyImageAttributeRequest object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ModifyImageAttributeRequest | 
clone()  | 
boolean | 
equals(Object obj)  | 
String | 
getAttribute()
The name of the attribute to modify. 
 | 
String | 
getDescription()
A description for the AMI. 
 | 
Request<ModifyImageAttributeRequest> | 
getDryRunRequest()
This method is intended for internal use only. 
 | 
String | 
getImageId()
The ID of the AMI. 
 | 
LaunchPermissionModifications | 
getLaunchPermission()
A launch permission modification. 
 | 
String | 
getOperationType()
The operation type. 
 | 
List<String> | 
getProductCodes()
One or more product codes. 
 | 
List<String> | 
getUserGroups()
One or more user groups. 
 | 
List<String> | 
getUserIds()
One or more AWS account IDs. 
 | 
String | 
getValue()
The value of the attribute being modified. 
 | 
int | 
hashCode()  | 
void | 
setAttribute(String attribute)
The name of the attribute to modify. 
 | 
void | 
setDescription(String description)
A description for the AMI. 
 | 
void | 
setImageId(String imageId)
The ID of the AMI. 
 | 
void | 
setLaunchPermission(LaunchPermissionModifications launchPermission)
A launch permission modification. 
 | 
void | 
setOperationType(String operationType)
The operation type. 
 | 
void | 
setProductCodes(Collection<String> productCodes)
One or more product codes. 
 | 
void | 
setUserGroups(Collection<String> userGroups)
One or more user groups. 
 | 
void | 
setUserIds(Collection<String> userIds)
One or more AWS account IDs. 
 | 
void | 
setValue(String value)
The value of the attribute being modified. 
 | 
String | 
toString()
Returns a string representation of this object; useful for testing and
 debugging. 
 | 
ModifyImageAttributeRequest | 
withAttribute(String attribute)
The name of the attribute to modify. 
 | 
ModifyImageAttributeRequest | 
withDescription(String description)
A description for the AMI. 
 | 
ModifyImageAttributeRequest | 
withImageId(String imageId)
The ID of the AMI. 
 | 
ModifyImageAttributeRequest | 
withLaunchPermission(LaunchPermissionModifications launchPermission)
A launch permission modification. 
 | 
ModifyImageAttributeRequest | 
withOperationType(String operationType)
The operation type. 
 | 
ModifyImageAttributeRequest | 
withProductCodes(Collection<String> productCodes)
One or more product codes. 
 | 
ModifyImageAttributeRequest | 
withProductCodes(String... productCodes)
One or more product codes. 
 | 
ModifyImageAttributeRequest | 
withUserGroups(Collection<String> userGroups)
One or more user groups. 
 | 
ModifyImageAttributeRequest | 
withUserGroups(String... userGroups)
One or more user groups. 
 | 
ModifyImageAttributeRequest | 
withUserIds(Collection<String> userIds)
One or more AWS account IDs. 
 | 
ModifyImageAttributeRequest | 
withUserIds(String... userIds)
One or more AWS account IDs. 
 | 
ModifyImageAttributeRequest | 
withValue(String value)
The value of the attribute being modified. 
 | 
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic ModifyImageAttributeRequest()
public ModifyImageAttributeRequest(String imageId, String attribute)
imageId - The ID of the AMI.attribute - The name of the attribute to modify.public String getImageId()
public void setImageId(String imageId)
imageId - The ID of the AMI.public ModifyImageAttributeRequest withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId - The ID of the AMI.public String getAttribute()
public void setAttribute(String attribute)
attribute - The name of the attribute to modify.public ModifyImageAttributeRequest withAttribute(String attribute)
Returns a reference to this object so that method calls can be chained together.
attribute - The name of the attribute to modify.public String getOperationType()
public void setOperationType(String operationType)
operationType - The operation type.public ModifyImageAttributeRequest withOperationType(String operationType)
Returns a reference to this object so that method calls can be chained together.
operationType - The operation type.public List<String> getUserIds()
launchPermission attribute.launchPermission attribute.public void setUserIds(Collection<String> userIds)
launchPermission attribute.userIds - One or more AWS account IDs. This is only valid when modifying the
         launchPermission attribute.public ModifyImageAttributeRequest withUserIds(String... userIds)
launchPermission attribute.
 Returns a reference to this object so that method calls can be chained together.
userIds - One or more AWS account IDs. This is only valid when modifying the
         launchPermission attribute.public ModifyImageAttributeRequest withUserIds(Collection<String> userIds)
launchPermission attribute.
 Returns a reference to this object so that method calls can be chained together.
userIds - One or more AWS account IDs. This is only valid when modifying the
         launchPermission attribute.public List<String> getUserGroups()
launchPermission attribute.launchPermission attribute.public void setUserGroups(Collection<String> userGroups)
launchPermission attribute.userGroups - One or more user groups. This is only valid when modifying the
         launchPermission attribute.public ModifyImageAttributeRequest withUserGroups(String... userGroups)
launchPermission attribute.
 Returns a reference to this object so that method calls can be chained together.
userGroups - One or more user groups. This is only valid when modifying the
         launchPermission attribute.public ModifyImageAttributeRequest withUserGroups(Collection<String> userGroups)
launchPermission attribute.
 Returns a reference to this object so that method calls can be chained together.
userGroups - One or more user groups. This is only valid when modifying the
         launchPermission attribute.public List<String> getProductCodes()
productCodes attribute.productCodes attribute.public void setProductCodes(Collection<String> productCodes)
productCodes attribute.productCodes - One or more product codes. After you add a product code to an AMI, it
         can't be removed. This is only valid when modifying the
         productCodes attribute.public ModifyImageAttributeRequest withProductCodes(String... productCodes)
productCodes attribute.
 Returns a reference to this object so that method calls can be chained together.
productCodes - One or more product codes. After you add a product code to an AMI, it
         can't be removed. This is only valid when modifying the
         productCodes attribute.public ModifyImageAttributeRequest withProductCodes(Collection<String> productCodes)
productCodes attribute.
 Returns a reference to this object so that method calls can be chained together.
productCodes - One or more product codes. After you add a product code to an AMI, it
         can't be removed. This is only valid when modifying the
         productCodes attribute.public String getValue()
description attribute.description attribute.public void setValue(String value)
description attribute.value - The value of the attribute being modified. This is only valid when
         modifying the description attribute.public ModifyImageAttributeRequest withValue(String value)
description attribute.
 Returns a reference to this object so that method calls can be chained together.
value - The value of the attribute being modified. This is only valid when
         modifying the description attribute.public LaunchPermissionModifications getLaunchPermission()
public void setLaunchPermission(LaunchPermissionModifications launchPermission)
launchPermission - A launch permission modification.public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission)
Returns a reference to this object so that method calls can be chained together.
launchPermission - A launch permission modification.public String getDescription()
public void setDescription(String description)
description - A description for the AMI.public ModifyImageAttributeRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - A description for the AMI.public Request<ModifyImageAttributeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifyImageAttributeRequest>public String toString()
toString in class ObjectObject.toString()public ModifyImageAttributeRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.