public class InstanceAttribute
extends java.lang.Object
implements java.io.Serializable
Describes an instance attribute.
Constructor and Description |
---|
InstanceAttribute() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
The block device mapping of the instance.
|
java.lang.Boolean |
getDisableApiTermination()
If the value is
true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
java.lang.Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
java.util.List<GroupIdentifier> |
getGroups()
The security groups associated with the instance.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.String |
getKernelId()
The kernel ID.
|
java.util.List<ProductCode> |
getProductCodes()
A list of product codes.
|
java.lang.String |
getRamdiskId()
The RAM disk ID.
|
java.lang.String |
getRootDeviceName()
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
java.lang.Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
java.lang.String |
getSriovNetSupport()
The value to use for a resource attribute.
|
java.lang.String |
getUserData()
The Base64-encoded MIME user data.
|
int |
hashCode() |
java.lang.Boolean |
isDisableApiTermination()
If the value is
true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
java.lang.Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
java.lang.Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
void |
setDisableApiTermination(java.lang.Boolean disableApiTermination)
If the value is
true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
void |
setGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setKernelId(java.lang.String kernelId)
The kernel ID.
|
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
|
void |
setRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.
|
void |
setRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
void |
setSriovNetSupport(java.lang.String sriovNetSupport)
The value to use for a resource attribute.
|
void |
setUserData(java.lang.String userData)
The Base64-encoded MIME user data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceAttribute |
withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mapping of the instance.
|
InstanceAttribute |
withDisableApiTermination(java.lang.Boolean disableApiTermination)
If the value is
true , you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can. |
InstanceAttribute |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
InstanceAttribute |
withGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the instance.
|
InstanceAttribute |
withGroups(GroupIdentifier... groups)
The security groups associated with the instance.
|
InstanceAttribute |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
InstanceAttribute |
withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).
|
InstanceAttribute |
withInstanceType(java.lang.String instanceType)
The instance type.
|
InstanceAttribute |
withKernelId(java.lang.String kernelId)
The kernel ID.
|
InstanceAttribute |
withProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
|
InstanceAttribute |
withProductCodes(ProductCode... productCodes)
A list of product codes.
|
InstanceAttribute |
withRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.
|
InstanceAttribute |
withRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example,
/dev/sda1 or
/dev/xvda ). |
InstanceAttribute |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
InstanceAttribute |
withSriovNetSupport(java.lang.String sriovNetSupport)
The value to use for a resource attribute.
|
InstanceAttribute |
withUserData(java.lang.String userData)
The Base64-encoded MIME user data.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.public InstanceAttribute 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 getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType
- The instance type.public InstanceAttribute withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type.public java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId
- The kernel ID.public InstanceAttribute withKernelId(java.lang.String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The kernel ID.public java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId
- The RAM disk ID.public InstanceAttribute withRamdiskId(java.lang.String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk ID.public java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData
- The Base64-encoded MIME user data.public InstanceAttribute withUserData(java.lang.String userData)
Returns a reference to this object so that method calls can be chained together.
userData
- The Base64-encoded MIME user data.public java.lang.Boolean isDisableApiTermination()
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public void setDisableApiTermination(java.lang.Boolean disableApiTermination)
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.disableApiTermination
- If the value is true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public InstanceAttribute withDisableApiTermination(java.lang.Boolean disableApiTermination)
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.
Returns a reference to this object so that method calls can be chained together.
disableApiTermination
- If the value is true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public java.lang.Boolean getDisableApiTermination()
true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.true
, you can't terminate the instance
through the Amazon EC2 console, CLI, or API; otherwise, you can.public java.lang.String getInstanceInitiatedShutdownBehavior()
public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).public InstanceAttribute withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Returns a reference to this object so that method calls can be chained together.
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).public java.lang.String getRootDeviceName()
/dev/sda1
or
/dev/xvda
)./dev/sda1
or
/dev/xvda
).public void setRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1
or
/dev/xvda
).rootDeviceName
- The name of the root device (for example, /dev/sda1
or
/dev/xvda
).public InstanceAttribute withRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1
or
/dev/xvda
).
Returns a reference to this object so that method calls can be chained together.
rootDeviceName
- The name of the root device (for example, /dev/sda1
or
/dev/xvda
).public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- The block device mapping of the instance.public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The block device mapping of the instance.public InstanceAttribute withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The block device mapping of the instance.public java.util.List<ProductCode> getProductCodes()
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.public InstanceAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.public java.lang.Boolean isEbsOptimized()
public void setEbsOptimized(java.lang.Boolean ebsOptimized)
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public InstanceAttribute withEbsOptimized(java.lang.Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O.public java.lang.Boolean getEbsOptimized()
public java.lang.String getSriovNetSupport()
public void setSriovNetSupport(java.lang.String sriovNetSupport)
sriovNetSupport
- The value to use for a resource attribute.public InstanceAttribute withSriovNetSupport(java.lang.String sriovNetSupport)
Returns a reference to this object so that method calls can be chained together.
sriovNetSupport
- The value to use for a resource attribute.public java.lang.Boolean isSourceDestCheck()
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.sourceDestCheck
- Indicates whether source/destination checking is enabled. A value of
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.public InstanceAttribute withSourceDestCheck(java.lang.Boolean sourceDestCheck)
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck
- Indicates whether source/destination checking is enabled. A value of
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.public java.lang.Boolean getSourceDestCheck()
true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.true
means checking is enabled, and false
means checking is disabled. This value must be false
for
a NAT instance to perform NAT.public java.util.List<GroupIdentifier> getGroups()
public void setGroups(java.util.Collection<GroupIdentifier> groups)
groups
- The security groups associated with the instance.public InstanceAttribute withGroups(GroupIdentifier... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The security groups associated with the instance.public InstanceAttribute withGroups(java.util.Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The security groups associated with the instance.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.