@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAttribute()
The name of the attribute to modify.
|
String |
getDescription()
A new 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 new launch permission for the AMI.
|
String |
getOperationType()
The operation type.
|
List<String> |
getProductCodes()
One or more DevPay 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 new description for the AMI.
|
void |
setImageId(String imageId)
The ID of the AMI.
|
void |
setLaunchPermission(LaunchPermissionModifications launchPermission)
A new launch permission for the AMI.
|
void |
setOperationType(OperationType operationType)
The operation type.
|
void |
setOperationType(String operationType)
The operation type.
|
void |
setProductCodes(Collection<String> productCodes)
One or more DevPay 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 new description for the AMI.
|
ModifyImageAttributeRequest |
withImageId(String imageId)
The ID of the AMI.
|
ModifyImageAttributeRequest |
withLaunchPermission(LaunchPermissionModifications launchPermission)
A new launch permission for the AMI.
|
ModifyImageAttributeRequest |
withOperationType(OperationType operationType)
The operation type.
|
ModifyImageAttributeRequest |
withOperationType(String operationType)
The operation type.
|
ModifyImageAttributeRequest |
withProductCodes(Collection<String> productCodes)
One or more DevPay product codes.
|
ModifyImageAttributeRequest |
withProductCodes(String... productCodes)
One or more DevPay 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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ModifyImageAttributeRequest()
public ModifyImageAttributeRequest(String imageId, String attribute)
imageId
- The ID of the AMI.attribute
- The name of the attribute to modify. The valid values are description
,
launchPermission
, and productCodes
.public void setAttribute(String attribute)
The name of the attribute to modify. The valid values are description
, launchPermission
, and productCodes
.
attribute
- The name of the attribute to modify. The valid values are description
,
launchPermission
, and productCodes
.public String getAttribute()
The name of the attribute to modify. The valid values are description
, launchPermission
, and productCodes
.
description
,
launchPermission
, and productCodes
.public ModifyImageAttributeRequest withAttribute(String attribute)
The name of the attribute to modify. The valid values are description
, launchPermission
, and productCodes
.
attribute
- The name of the attribute to modify. The valid values are description
,
launchPermission
, and productCodes
.public void setDescription(String description)
A new description for the AMI.
description
- A new description for the AMI.public String getDescription()
A new description for the AMI.
public ModifyImageAttributeRequest withDescription(String description)
A new description for the AMI.
description
- A new description for the AMI.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 setLaunchPermission(LaunchPermissionModifications launchPermission)
A new launch permission for the AMI.
launchPermission
- A new launch permission for the AMI.public LaunchPermissionModifications getLaunchPermission()
A new launch permission for the AMI.
public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission)
A new launch permission for the AMI.
launchPermission
- A new launch permission for the AMI.public void setOperationType(String operationType)
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
operationType
- The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.OperationType
public String getOperationType()
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
Attribute
parameter is
launchPermission
.OperationType
public ModifyImageAttributeRequest withOperationType(String operationType)
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
operationType
- The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.OperationType
public void setOperationType(OperationType operationType)
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
operationType
- The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.OperationType
public ModifyImageAttributeRequest withOperationType(OperationType operationType)
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
operationType
- The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.OperationType
public List<String> getProductCodes()
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
public void setProductCodes(Collection<String> productCodes)
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
productCodes
- One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.public ModifyImageAttributeRequest withProductCodes(String... productCodes)
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
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 DevPay product codes. After you add a product code to an AMI, it can't be removed.public ModifyImageAttributeRequest withProductCodes(Collection<String> productCodes)
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
productCodes
- One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.public List<String> getUserGroups()
One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.
Attribute
parameter is
launchPermission
.public void setUserGroups(Collection<String> userGroups)
One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userGroups
- One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.public ModifyImageAttributeRequest withUserGroups(String... userGroups)
One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.
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 parameter can be used only when the Attribute
parameter is
launchPermission
.public ModifyImageAttributeRequest withUserGroups(Collection<String> userGroups)
One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userGroups
- One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.public List<String> getUserIds()
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.
Attribute
parameter is
launchPermission
.public void setUserIds(Collection<String> userIds)
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userIds
- One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.public ModifyImageAttributeRequest withUserIds(String... userIds)
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.
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 parameter can be used only when the Attribute
parameter is
launchPermission
.public ModifyImageAttributeRequest withUserIds(Collection<String> userIds)
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userIds
- One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.public void setValue(String value)
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.
value
- The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.public String getValue()
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.
Attribute
parameter is description
or productCodes
.public ModifyImageAttributeRequest withValue(String value)
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.
value
- The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.public Request<ModifyImageAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyImageAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyImageAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.