public class ModifyImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyImageAttributeRequest>
Contains the parameters for ModifyImageAttribute.
NOOP| Constructor and Description |
|---|
ModifyImageAttributeRequest()
Default constructor for 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(OperationType operationType)
The operation type.
|
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(OperationType operationType)
The operation type.
|
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, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic ModifyImageAttributeRequest()
public ModifyImageAttributeRequest(String imageId, String attribute)
imageId - The ID of the AMI.attribute - The name of the attribute to modify.public void setImageId(String imageId)
The ID of the AMI.
imageId - The ID of the AMI.public String getImageId()
The ID of the AMI.
public ModifyImageAttributeRequest withImageId(String imageId)
The ID of the AMI.
imageId - The ID of the AMI.public void setAttribute(String attribute)
The name of the attribute to modify.
attribute - The name of the attribute to modify.public String getAttribute()
The name of the attribute to modify.
public ModifyImageAttributeRequest withAttribute(String attribute)
The name of the attribute to modify.
attribute - The name of the attribute to modify.public void setOperationType(String operationType)
The operation type.
operationType - The operation type.OperationTypepublic String getOperationType()
The operation type.
OperationTypepublic ModifyImageAttributeRequest withOperationType(String operationType)
The operation type.
operationType - The operation type.OperationTypepublic void setOperationType(OperationType operationType)
The operation type.
operationType - The operation type.OperationTypepublic ModifyImageAttributeRequest withOperationType(OperationType operationType)
The operation type.
operationType - The operation type.OperationTypepublic List<String> getUserIds()
One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.
launchPermission attribute.public void setUserIds(Collection<String> userIds)
One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.
userIds - One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.public ModifyImageAttributeRequest withUserIds(String... userIds)
One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.
NOTE: This method appends the values to the existing list (if
any). Use setUserIds(java.util.Collection) or
withUserIds(java.util.Collection) if you want to override the
existing values.
userIds - One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.public ModifyImageAttributeRequest withUserIds(Collection<String> userIds)
One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.
userIds - One or more AWS account IDs. This is only valid when modifying the
launchPermission attribute.public List<String> getUserGroups()
One or more user groups. This is only valid when modifying the
launchPermission attribute.
launchPermission attribute.public void setUserGroups(Collection<String> userGroups)
One or more user groups. This is only valid when modifying the
launchPermission attribute.
userGroups - One or more user groups. This is only valid when modifying the
launchPermission attribute.public ModifyImageAttributeRequest withUserGroups(String... userGroups)
One or more user groups. This is only valid when modifying the
launchPermission attribute.
NOTE: This method appends the values to the existing list (if
any). Use setUserGroups(java.util.Collection) or
withUserGroups(java.util.Collection) if you want to override the
existing values.
userGroups - One or more user groups. This is only valid when modifying the
launchPermission attribute.public ModifyImageAttributeRequest withUserGroups(Collection<String> userGroups)
One or more user groups. This is only valid when modifying the
launchPermission attribute.
userGroups - One or more user groups. This is only valid when modifying the
launchPermission attribute.public List<String> getProductCodes()
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.
productCodes attribute.public void setProductCodes(Collection<String> 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.
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)
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.
NOTE: This method appends the values to the existing list (if
any). Use setProductCodes(java.util.Collection) or
withProductCodes(java.util.Collection) if you want to override
the existing values.
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)
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.
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 void setValue(String value)
The value of the attribute being modified. This is only valid when
modifying the description attribute.
value - The value of the attribute being modified. This is only valid when
modifying the description attribute.public String getValue()
The value of the attribute being modified. This is only valid when
modifying the description attribute.
description attribute.public ModifyImageAttributeRequest withValue(String value)
The value of the attribute being modified. This is only valid when
modifying the description attribute.
value - The value of the attribute being modified. This is only valid when
modifying the description attribute.public void setLaunchPermission(LaunchPermissionModifications launchPermission)
A launch permission modification.
launchPermission - A launch permission modification.public LaunchPermissionModifications getLaunchPermission()
A launch permission modification.
public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission)
A launch permission modification.
launchPermission - A launch permission modification.public void setDescription(String description)
A description for the AMI.
description - A description for the AMI.public String getDescription()
A description for the AMI.
public ModifyImageAttributeRequest withDescription(String description)
A description for the AMI.
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 © 2016. All rights reserved.