|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ModifyImageAttributeRequest
public class ModifyImageAttributeRequest
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 |
---|
public ModifyImageAttributeRequest()
Method Detail |
---|
public String getImageId()
public void setImageId(String imageId)
imageId
- The ID of the AMI whose attribute you want to modify.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 whose attribute you want to modify.
public String getAttribute()
Available attributes: launchPermission, productCodes
Available attributes: launchPermission, productCodes
public void setAttribute(String attribute)
Available attributes: launchPermission, productCodes
attribute
- The name of the AMI attribute you want to modify. Available attributes: launchPermission, productCodes
public ModifyImageAttributeRequest withAttribute(String attribute)
Available attributes: launchPermission, productCodes
Returns a reference to this object so that method calls can be chained together.
attribute
- The name of the AMI attribute you want to modify. Available attributes: launchPermission, productCodes
public String getOperationType()
Available operation types: add, remove
Available operation types: add, remove
public void setOperationType(String operationType)
Available operation types: add, remove
operationType
- The type of operation being requested. Available operation types: add, remove
public ModifyImageAttributeRequest withOperationType(String operationType)
Available operation types: add, remove
Returns a reference to this object so that method calls can be chained together.
operationType
- The type of operation being requested. Available operation types: add, remove
public List<String> getUserIds()
public void setUserIds(Collection<String> userIds)
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.public ModifyImageAttributeRequest withUserIds(String... userIds)
Returns a reference to this object so that method calls can be chained together.
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.
public ModifyImageAttributeRequest withUserIds(Collection<String> userIds)
Returns a reference to this object so that method calls can be chained together.
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.
public List<String> getUserGroups()
Available user groups: all
Available user groups: all
public void setUserGroups(Collection<String> userGroups)
Available user groups: all
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
public ModifyImageAttributeRequest withUserGroups(String... userGroups)
Available user groups: all
Returns a reference to this object so that method calls can be chained together.
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
public ModifyImageAttributeRequest withUserGroups(Collection<String> userGroups)
Available user groups: all
Returns a reference to this object so that method calls can be chained together.
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
public List<String> getProductCodes()
public void setProductCodes(Collection<String> productCodes)
productCodes
- The list of product codes being added to or removed from the specified
AMI. Only valid when the productCodes attribute is being modified.public ModifyImageAttributeRequest withProductCodes(String... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- The list of product codes being added to or removed from the specified
AMI. Only valid when the productCodes attribute is being modified.
public ModifyImageAttributeRequest withProductCodes(Collection<String> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- The list of product codes being added to or removed from the specified
AMI. Only valid when the productCodes attribute is being modified.
public String getValue()
public void setValue(String value)
value
- The value of the attribute being modified. Only valid when the
description attribute is being modified.public ModifyImageAttributeRequest withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The value of the attribute being modified. Only valid when the
description attribute is being modified.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |