public class DescribeInstanceAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DescribeInstanceAttributeRequest>
DescribeInstanceAttribute operation
.
Describes the specified attribute of the specified instance. You can
specify only one attribute at a time. Valid attribute values are:
instanceType
|
kernel
|
ramdisk
|
userData
|
disableApiTermination
|
instanceInitiatedShutdownBehavior
|
rootDeviceName
|
blockDeviceMapping
|
productCodes
|
sourceDestCheck
|
groupSet
|
ebsOptimized
|
sriovNetSupport
Constructor and Description |
---|
DescribeInstanceAttributeRequest()
Default constructor for a new DescribeInstanceAttributeRequest object.
|
DescribeInstanceAttributeRequest(java.lang.String instanceId,
InstanceAttributeName attribute)
Constructs a new DescribeInstanceAttributeRequest object.
|
DescribeInstanceAttributeRequest(java.lang.String instanceId,
java.lang.String attribute)
Constructs a new DescribeInstanceAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The instance attribute.
|
Request<DescribeInstanceAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
int |
hashCode() |
void |
setAttribute(InstanceAttributeName attribute)
The instance attribute.
|
void |
setAttribute(java.lang.String attribute)
The instance attribute.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstanceAttributeRequest |
withAttribute(InstanceAttributeName attribute)
The instance attribute.
|
DescribeInstanceAttributeRequest |
withAttribute(java.lang.String attribute)
The instance attribute.
|
DescribeInstanceAttributeRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DescribeInstanceAttributeRequest()
public DescribeInstanceAttributeRequest(java.lang.String instanceId, java.lang.String attribute)
instanceId
- The ID of the instance.attribute
- The instance attribute.public DescribeInstanceAttributeRequest(java.lang.String instanceId, InstanceAttributeName attribute)
instanceId
- The ID of the instance.attribute
- The instance attribute.public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.public DescribeInstanceAttributeRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public java.lang.String getAttribute()
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
InstanceAttributeName
public void setAttribute(java.lang.String attribute)
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
attribute
- The instance attribute.InstanceAttributeName
public DescribeInstanceAttributeRequest withAttribute(java.lang.String attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
attribute
- The instance attribute.InstanceAttributeName
public void setAttribute(InstanceAttributeName attribute)
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
attribute
- The instance attribute.InstanceAttributeName
public DescribeInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
attribute
- The instance attribute.InstanceAttributeName
public Request<DescribeInstanceAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeInstanceAttributeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.