public class ResetImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ResetImageAttributeRequest>
ResetImageAttribute operation
.
The ResetImageAttribute operation resets an attribute of an AMI to its default value.
NOTE: The productCodes attribute cannot be reset.
Constructor and Description |
---|
ResetImageAttributeRequest()
Default constructor for a new ResetImageAttributeRequest object.
|
ResetImageAttributeRequest(String imageId,
ResetImageAttributeName attribute)
Constructs a new ResetImageAttributeRequest object.
|
ResetImageAttributeRequest(String imageId,
String attribute)
Constructs a new ResetImageAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAttribute()
The name of the attribute being reset.
|
Request<ResetImageAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI whose attribute is being reset.
|
int |
hashCode() |
void |
setAttribute(ResetImageAttributeName attribute)
The name of the attribute being reset.
|
void |
setAttribute(String attribute)
The name of the attribute being reset.
|
void |
setImageId(String imageId)
The ID of the AMI whose attribute is being reset.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResetImageAttributeRequest |
withAttribute(ResetImageAttributeName attribute)
The name of the attribute being reset.
|
ResetImageAttributeRequest |
withAttribute(String attribute)
The name of the attribute being reset.
|
ResetImageAttributeRequest |
withImageId(String imageId)
The ID of the AMI whose attribute is being reset.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public ResetImageAttributeRequest()
public ResetImageAttributeRequest(String imageId, String attribute)
imageId
- The ID of the AMI whose attribute is being reset.attribute
- The name of the attribute being reset. Available
attribute names: launchPermission
public ResetImageAttributeRequest(String imageId, ResetImageAttributeName attribute)
imageId
- The ID of the AMI whose attribute is being reset.attribute
- The name of the attribute being reset. Available
attribute names: launchPermission
public String getImageId()
public void setImageId(String imageId)
imageId
- The ID of the AMI whose attribute is being reset.public ResetImageAttributeRequest 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 is being reset.public String getAttribute()
Available attribute names:
launchPermission
Constraints:
Allowed Values: launchPermission
Available attribute names:
launchPermission
ResetImageAttributeName
public void setAttribute(String attribute)
Available attribute names:
launchPermission
Constraints:
Allowed Values: launchPermission
attribute
- The name of the attribute being reset. Available attribute names:
launchPermission
ResetImageAttributeName
public ResetImageAttributeRequest withAttribute(String attribute)
Available attribute names:
launchPermission
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: launchPermission
attribute
- The name of the attribute being reset. Available attribute names:
launchPermission
ResetImageAttributeName
public void setAttribute(ResetImageAttributeName attribute)
Available attribute names:
launchPermission
Constraints:
Allowed Values: launchPermission
attribute
- The name of the attribute being reset. Available attribute names:
launchPermission
ResetImageAttributeName
public ResetImageAttributeRequest withAttribute(ResetImageAttributeName attribute)
Available attribute names:
launchPermission
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: launchPermission
attribute
- The name of the attribute being reset. Available attribute names:
launchPermission
ResetImageAttributeName
public Request<ResetImageAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ResetImageAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.