Class ModifyImageAttributeRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifyImageAttributeRequest>
,Serializable
,Cloneable
Contains the parameters for ModifyImageAttribute.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for ModifyImageAttributeRequest object.ModifyImageAttributeRequest
(String imageId, String attribute) Constructs a new ModifyImageAttributeRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The name of the attribute to modify.A description for the AMI.This method is intended for internal use only.The ID of the AMI.A launch permission modification.The operation type.One or more product codes.One or more user groups.One or more AWS account IDs.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
The value of the attribute being modified.toString()
Returns a string representation of this object; useful for testing and debugging.withAttribute
(String attribute) The name of the attribute to modify.withDescription
(String description) A description for the AMI.withImageId
(String imageId) The ID of the AMI.withLaunchPermission
(LaunchPermissionModifications launchPermission) A launch permission modification.withOperationType
(OperationType operationType) The operation type.withOperationType
(String operationType) The operation type.withProductCodes
(String... productCodes) One or more product codes.withProductCodes
(Collection<String> productCodes) One or more product codes.withUserGroups
(String... userGroups) One or more user groups.withUserGroups
(Collection<String> userGroups) One or more user groups.withUserIds
(String... userIds) One or more AWS account IDs.withUserIds
(Collection<String> userIds) One or more AWS account IDs.The value of the attribute being modified.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
ModifyImageAttributeRequest
public ModifyImageAttributeRequest()Default constructor for ModifyImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
ModifyImageAttributeRequest
Constructs a new ModifyImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
imageId
- The ID of the AMI.attribute
- The name of the attribute to modify.
-
-
Method Details
-
setImageId
The ID of the AMI.
- Parameters:
imageId
- The ID of the AMI.
-
getImageId
The ID of the AMI.
- Returns:
- The ID of the AMI.
-
withImageId
The ID of the AMI.
- Parameters:
imageId
- The ID of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttribute
The name of the attribute to modify.
- Parameters:
attribute
- The name of the attribute to modify.
-
getAttribute
The name of the attribute to modify.
- Returns:
- The name of the attribute to modify.
-
withAttribute
The name of the attribute to modify.
- Parameters:
attribute
- The name of the attribute to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOperationType
The operation type.
- Parameters:
operationType
- The operation type.- See Also:
-
getOperationType
The operation type.
- Returns:
- The operation type.
- See Also:
-
withOperationType
The operation type.
- Parameters:
operationType
- The operation type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOperationType
The operation type.
- Parameters:
operationType
- The operation type.- See Also:
-
withOperationType
The operation type.
- Parameters:
operationType
- The operation type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getUserIds
One or more AWS account IDs. This is only valid when modifying the
launchPermission
attribute.- Returns:
- One or more AWS account IDs. This is only valid when modifying
the
launchPermission
attribute.
-
setUserIds
One or more AWS account IDs. This is only valid when modifying the
launchPermission
attribute.- Parameters:
userIds
- One or more AWS account IDs. This is only valid when modifying thelaunchPermission
attribute.
-
withUserIds
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)
orwithUserIds(java.util.Collection)
if you want to override the existing values.- Parameters:
userIds
- One or more AWS account IDs. This is only valid when modifying thelaunchPermission
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUserIds
One or more AWS account IDs. This is only valid when modifying the
launchPermission
attribute.- Parameters:
userIds
- One or more AWS account IDs. This is only valid when modifying thelaunchPermission
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getUserGroups
One or more user groups. This is only valid when modifying the
launchPermission
attribute.- Returns:
- One or more user groups. This is only valid when modifying the
launchPermission
attribute.
-
setUserGroups
One or more user groups. This is only valid when modifying the
launchPermission
attribute.- Parameters:
userGroups
- One or more user groups. This is only valid when modifying thelaunchPermission
attribute.
-
withUserGroups
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)
orwithUserGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
userGroups
- One or more user groups. This is only valid when modifying thelaunchPermission
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUserGroups
One or more user groups. This is only valid when modifying the
launchPermission
attribute.- Parameters:
userGroups
- One or more user groups. This is only valid when modifying thelaunchPermission
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Returns:
- 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.
-
setProductCodes
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.- Parameters:
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 theproductCodes
attribute.
-
withProductCodes
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)
orwithProductCodes(java.util.Collection)
if you want to override the existing values.- Parameters:
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 theproductCodes
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProductCodes
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.- Parameters:
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 theproductCodes
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value of the attribute being modified. This is only valid when modifying the
description
attribute.- Parameters:
value
- The value of the attribute being modified. This is only valid when modifying thedescription
attribute.
-
getValue
The value of the attribute being modified. This is only valid when modifying the
description
attribute.- Returns:
- The value of the attribute being modified. This is only valid
when modifying the
description
attribute.
-
withValue
The value of the attribute being modified. This is only valid when modifying the
description
attribute.- Parameters:
value
- The value of the attribute being modified. This is only valid when modifying thedescription
attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchPermission
A launch permission modification.
- Parameters:
launchPermission
- A launch permission modification.
-
getLaunchPermission
A launch permission modification.
- Returns:
- A launch permission modification.
-
withLaunchPermission
public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission) A launch permission modification.
- Parameters:
launchPermission
- A launch permission modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description for the AMI.
- Parameters:
description
- A description for the AMI.
-
getDescription
A description for the AMI.
- Returns:
- A description for the AMI.
-
withDescription
A description for the AMI.
- Parameters:
description
- A description for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ModifyImageAttributeRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-