|
|||||||
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
Container for the parameters to the ModifyImageAttribute operation
.
The ModifyImageAttribute operation modifies an attribute of an AMI.
AmazonEC2.modifyImageAttribute(ModifyImageAttributeRequest)
Constructor Summary | |
---|---|
ModifyImageAttributeRequest()
Default constructor for a new ModifyImageAttributeRequest object. |
|
ModifyImageAttributeRequest(String imageId,
String attribute)
Constructs a new ModifyImageAttributeRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAttribute()
The name of the AMI attribute you want to modify. |
String |
getDescription()
String value |
String |
getImageId()
The ID of the AMI whose attribute you want to modify. |
LaunchPermissionModifications |
getLaunchPermission()
Returns the value of the LaunchPermission property for this object. |
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. |
int |
hashCode()
|
void |
setAttribute(String attribute)
The name of the AMI attribute you want to modify. |
void |
setDescription(String description)
String value |
void |
setImageId(String imageId)
The ID of the AMI whose attribute you want to modify. |
void |
setLaunchPermission(LaunchPermissionModifications launchPermission)
Sets the value of the LaunchPermission property for this object. |
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()
Returns a string representation of this object; useful for testing and debugging. |
ModifyImageAttributeRequest |
withAttribute(String attribute)
The name of the AMI attribute you want to modify. |
ModifyImageAttributeRequest |
withDescription(String description)
String value |
ModifyImageAttributeRequest |
withImageId(String imageId)
The ID of the AMI whose attribute you want to modify. |
ModifyImageAttributeRequest |
withLaunchPermission(LaunchPermissionModifications launchPermission)
Sets the value of the LaunchPermission property for this object. |
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, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModifyImageAttributeRequest()
public ModifyImageAttributeRequest(String imageId, String attribute)
imageId
- The ID of the AMI whose attribute you want to modify.attribute
- The name of the AMI attribute you want to modify.
Available attributes: launchPermission
,
productCodes
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 LaunchPermissionModifications getLaunchPermission()
public void setLaunchPermission(LaunchPermissionModifications launchPermission)
launchPermission
- The new value for the LaunchPermission property for this object.public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission)
Returns a reference to this object so that method calls can be chained together.
launchPermission
- The new value for the LaunchPermission property for this object.
public String getDescription()
public void setDescription(String description)
description
- String valuepublic ModifyImageAttributeRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- String value
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |