|
|||||||
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.ResetImageAttributeRequest
public class ResetImageAttributeRequest
Container for the parameters to the ResetImageAttribute operation
.
The ResetImageAttribute operation resets an attribute of an AMI to its default value.
NOTE: The productCodes attribute cannot be reset.
AmazonEC2.resetImageAttribute(ResetImageAttributeRequest)
Constructor Summary | |
---|---|
ResetImageAttributeRequest()
Default constructor for a new ResetImageAttributeRequest object. |
|
ResetImageAttributeRequest(String imageId,
String attribute)
Constructs a new ResetImageAttributeRequest object. |
Method Summary | |
---|---|
String |
getAttribute()
The name of the attribute being reset. |
String |
getImageId()
The ID of the AMI whose attribute is 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(String attribute)
The name of the attribute being reset. |
ResetImageAttributeRequest |
withImageId(String imageId)
The ID of the AMI whose attribute is being reset. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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
Available attribute names: launchPermission
public void setAttribute(String attribute)
Available attribute names: launchPermission
attribute
- The name of the attribute being reset. Available attribute names: launchPermission
public ResetImageAttributeRequest withAttribute(String attribute)
Available attribute names: launchPermission
Returns a reference to this object so that method calls can be chained together.
attribute
- The name of the attribute being reset. Available attribute names: launchPermission
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |