com.amazonaws.services.ec2.model
Class ModifyImageAttributeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ModifyImageAttributeRequest

public class ModifyImageAttributeRequest
extends AmazonWebServiceRequest

A request to modify an attribute of an Amazon Machine Image (AMI).


Constructor Summary
ModifyImageAttributeRequest()
           
 
Method Summary
 String getAttribute()
          The name of the AMI attribute you want to modify.
 String getImageId()
          The ID of the AMI whose attribute you want to modify.
 String getOperationType()
          The type of operation being requested.
 List<String> getProductCodes()
          The list of product codes being added to or removed from the specified AMI.
 List<String> getUserGroups()
          The user group being added to or removed from the list of user groups with launch permissions for this AMI.
 List<String> getUserIds()
          The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
 String getValue()
          The value of the attribute being modified.
 void setAttribute(String attribute)
          The name of the AMI attribute you want to modify.
 void setImageId(String imageId)
          The ID of the AMI whose attribute you want to modify.
 void setOperationType(String operationType)
          The type of operation being requested.
 void setProductCodes(Collection<String> productCodes)
          The list of product codes being added to or removed from the specified AMI.
 void setUserGroups(Collection<String> userGroups)
          The user group being added to or removed from the list of user groups with launch permissions for this AMI.
 void setUserIds(Collection<String> userIds)
          The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
 void setValue(String value)
          The value of the attribute being modified.
 String toString()
           
 ModifyImageAttributeRequest withAttribute(String attribute)
          The name of the AMI attribute you want to modify.
 ModifyImageAttributeRequest withImageId(String imageId)
          The ID of the AMI whose attribute you want to modify.
 ModifyImageAttributeRequest withOperationType(String operationType)
          The type of operation being requested.
 ModifyImageAttributeRequest withProductCodes(Collection<String> productCodes)
          The list of product codes being added to or removed from the specified AMI.
 ModifyImageAttributeRequest withProductCodes(String... productCodes)
          The list of product codes being added to or removed from the specified AMI.
 ModifyImageAttributeRequest withUserGroups(Collection<String> userGroups)
          The user group being added to or removed from the list of user groups with launch permissions for this AMI.
 ModifyImageAttributeRequest withUserGroups(String... userGroups)
          The user group being added to or removed from the list of user groups with launch permissions for this AMI.
 ModifyImageAttributeRequest withUserIds(Collection<String> userIds)
          The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
 ModifyImageAttributeRequest withUserIds(String... userIds)
          The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
 ModifyImageAttributeRequest withValue(String value)
          The value of the attribute being modified.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyImageAttributeRequest

public ModifyImageAttributeRequest()
Method Detail

getImageId

public String getImageId()
The ID of the AMI whose attribute you want to modify.

Returns:
The ID of the AMI whose attribute you want to modify.

setImageId

public void setImageId(String imageId)
The ID of the AMI whose attribute you want to modify.

Parameters:
imageId - The ID of the AMI whose attribute you want to modify.

withImageId

public ModifyImageAttributeRequest withImageId(String imageId)
The ID of the AMI whose attribute you want to modify.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageId - The ID of the AMI whose attribute you want to modify.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttribute

public String getAttribute()
The name of the AMI attribute you want to modify.

Available attributes: launchPermission, productCodes

Returns:
The name of the AMI attribute you want to modify.

Available attributes: launchPermission, productCodes


setAttribute

public void setAttribute(String attribute)
The name of the AMI attribute you want to modify.

Available attributes: launchPermission, productCodes

Parameters:
attribute - The name of the AMI attribute you want to modify.

Available attributes: launchPermission, productCodes


withAttribute

public ModifyImageAttributeRequest withAttribute(String attribute)
The name of the AMI attribute you want to modify.

Available attributes: launchPermission, productCodes

Returns a reference to this object so that method calls can be chained together.

Parameters:
attribute - The name of the AMI attribute you want to modify.

Available attributes: launchPermission, productCodes

Returns:
A reference to this updated object so that method calls can be chained together.

getOperationType

public String getOperationType()
The type of operation being requested.

Available operation types: add, remove

Returns:
The type of operation being requested.

Available operation types: add, remove


setOperationType

public void setOperationType(String operationType)
The type of operation being requested.

Available operation types: add, remove

Parameters:
operationType - The type of operation being requested.

Available operation types: add, remove


withOperationType

public ModifyImageAttributeRequest withOperationType(String operationType)
The type of operation being requested.

Available operation types: add, remove

Returns a reference to this object so that method calls can be chained together.

Parameters:
operationType - The type of operation being requested.

Available operation types: add, remove

Returns:
A reference to this updated object so that method calls can be chained together.

getUserIds

public List<String> getUserIds()
The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Returns:
The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

setUserIds

public void setUserIds(Collection<String> userIds)
The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Parameters:
userIds - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

withUserIds

public ModifyImageAttributeRequest withUserIds(String... userIds)
The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userIds - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.
Returns:
A reference to this updated object so that method calls can be chained together.

withUserIds

public ModifyImageAttributeRequest withUserIds(Collection<String> userIds)
The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userIds - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.
Returns:
A reference to this updated object so that method calls can be chained together.

getUserGroups

public List<String> getUserGroups()
The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all

Returns:
The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all


setUserGroups

public void setUserGroups(Collection<String> userGroups)
The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all

Parameters:
userGroups - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all


withUserGroups

public ModifyImageAttributeRequest withUserGroups(String... userGroups)
The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all

Returns a reference to this object so that method calls can be chained together.

Parameters:
userGroups - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all

Returns:
A reference to this updated object so that method calls can be chained together.

withUserGroups

public ModifyImageAttributeRequest withUserGroups(Collection<String> userGroups)
The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all

Returns a reference to this object so that method calls can be chained together.

Parameters:
userGroups - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

Available user groups: all

Returns:
A reference to this updated object so that method calls can be chained together.

getProductCodes

public List<String> getProductCodes()
The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

Returns:
The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

setProductCodes

public void setProductCodes(Collection<String> productCodes)
The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

Parameters:
productCodes - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

withProductCodes

public ModifyImageAttributeRequest withProductCodes(String... productCodes)
The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.
Returns:
A reference to this updated object so that method calls can be chained together.

withProductCodes

public ModifyImageAttributeRequest withProductCodes(Collection<String> productCodes)
The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.
Returns:
A reference to this updated object so that method calls can be chained together.

getValue

public String getValue()
The value of the attribute being modified. Only valid when the description attribute is being modified.

Returns:
The value of the attribute being modified. Only valid when the description attribute is being modified.

setValue

public void setValue(String value)
The value of the attribute being modified. Only valid when the description attribute is being modified.

Parameters:
value - The value of the attribute being modified. Only valid when the description attribute is being modified.

withValue

public ModifyImageAttributeRequest withValue(String value)
The value of the attribute being modified. Only valid when the description attribute is being modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
value - The value of the attribute being modified. Only valid when the description attribute is being modified.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.