com.amazonaws.services.ec2.model
Class InstanceAttribute

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceAttribute
All Implemented Interfaces:
java.io.Serializable

public class InstanceAttribute
extends java.lang.Object
implements java.io.Serializable

Describes an instance attribute.

See Also:
Serialized Form

Constructor Summary
InstanceAttribute()
           
 
Method Summary
 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.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).
 java.lang.Boolean getSourceDestCheck()
          Indicates whether source/destination checking is enabled.
 java.lang.String getSriovNetSupport()
           
 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 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).
 void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
          Indicates whether source/destination checking is enabled.
 void setSriovNetSupport(java.lang.String sriovNetSupport)
           
 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 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).
 InstanceAttribute withSourceDestCheck(java.lang.Boolean sourceDestCheck)
          Indicates whether source/destination checking is enabled.
 InstanceAttribute withSriovNetSupport(java.lang.String sriovNetSupport)
           Returns a reference to this object so that method calls can be chained together.
 InstanceAttribute withUserData(java.lang.String userData)
          The Base64-encoded MIME user data.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceAttribute

public InstanceAttribute()
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public InstanceAttribute withInstanceId(java.lang.String instanceId)
The ID of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public java.lang.String getInstanceType()
The instance type.

Returns:
The instance type.

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type.

Parameters:
instanceType - The instance type.

withInstanceType

public InstanceAttribute withInstanceType(java.lang.String instanceType)
The instance type.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceType - The instance type.
Returns:
A reference to this updated object so that method calls can be chained together.

getKernelId

public java.lang.String getKernelId()
The kernel ID.

Returns:
The kernel ID.

setKernelId

public void setKernelId(java.lang.String kernelId)
The kernel ID.

Parameters:
kernelId - The kernel ID.

withKernelId

public InstanceAttribute withKernelId(java.lang.String kernelId)
The kernel ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
kernelId - The kernel ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public java.lang.String getRamdiskId()
The RAM disk ID.

Returns:
The RAM disk ID.

setRamdiskId

public void setRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.

Parameters:
ramdiskId - The RAM disk ID.

withRamdiskId

public InstanceAttribute withRamdiskId(java.lang.String ramdiskId)
The RAM disk ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ramdiskId - The RAM disk ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getUserData

public java.lang.String getUserData()
The Base64-encoded MIME user data.

Returns:
The Base64-encoded MIME user data.

setUserData

public void setUserData(java.lang.String userData)
The Base64-encoded MIME user data.

Parameters:
userData - The Base64-encoded MIME user data.

withUserData

public InstanceAttribute withUserData(java.lang.String userData)
The Base64-encoded MIME user data.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userData - The Base64-encoded MIME user data.
Returns:
A reference to this updated object so that method calls can be chained together.

isDisableApiTermination

public 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.

Returns:
If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

setDisableApiTermination

public 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.

Parameters:
disableApiTermination - If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

withDisableApiTermination

public 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
disableApiTermination - If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.
Returns:
A reference to this updated object so that method calls can be chained together.

getDisableApiTermination

public 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.

Returns:
If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

getInstanceInitiatedShutdownBehavior

public 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).

Returns:
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

setInstanceInitiatedShutdownBehavior

public 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).

Parameters:
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

withInstanceInitiatedShutdownBehavior

public 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).

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Returns:
A reference to this updated object so that method calls can be chained together.

getRootDeviceName

public java.lang.String getRootDeviceName()
The name of the root device (for example, /dev/sda1).

Returns:
The name of the root device (for example, /dev/sda1).

setRootDeviceName

public void setRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1).

Parameters:
rootDeviceName - The name of the root device (for example, /dev/sda1).

withRootDeviceName

public InstanceAttribute withRootDeviceName(java.lang.String rootDeviceName)
The name of the root device (for example, /dev/sda1).

Returns a reference to this object so that method calls can be chained together.

Parameters:
rootDeviceName - The name of the root device (for example, /dev/sda1).
Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
The block device mapping of the instance.

Returns:
The block device mapping of the instance.

setBlockDeviceMappings

public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.

Parameters:
blockDeviceMappings - The block device mapping of the instance.

withBlockDeviceMappings

public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mapping of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - The block device mapping of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public InstanceAttribute withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mapping of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - The block device mapping of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductCodes

public java.util.List<ProductCode> getProductCodes()
A list of product codes.

Returns:
A list of product codes.

setProductCodes

public void setProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.

Parameters:
productCodes - A list of product codes.

withProductCodes

public InstanceAttribute withProductCodes(ProductCode... productCodes)
A list of product codes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - A list of product codes.
Returns:
A reference to this updated object so that method calls can be chained together.

withProductCodes

public InstanceAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - A list of product codes.
Returns:
A reference to this updated object so that method calls can be chained together.

isEbsOptimized

public java.lang.Boolean isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.

Returns:
Indicates whether the instance is optimized for EBS I/O.

setEbsOptimized

public void setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.

Parameters:
ebsOptimized - Indicates whether the instance is optimized for EBS I/O.

withEbsOptimized

public InstanceAttribute withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ebsOptimized - Indicates whether the instance is optimized for EBS I/O.
Returns:
A reference to this updated object so that method calls can be chained together.

getEbsOptimized

public java.lang.Boolean getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.

Returns:
Indicates whether the instance is optimized for EBS I/O.

getSriovNetSupport

public java.lang.String getSriovNetSupport()
Returns:

setSriovNetSupport

public void setSriovNetSupport(java.lang.String sriovNetSupport)
Parameters:
sriovNetSupport -

withSriovNetSupport

public InstanceAttribute withSriovNetSupport(java.lang.String sriovNetSupport)

Returns a reference to this object so that method calls can be chained together.

Parameters:
sriovNetSupport -
Returns:
A reference to this updated object so that method calls can be chained together.

isSourceDestCheck

public java.lang.Boolean isSourceDestCheck()
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.

Returns:
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.

setSourceDestCheck

public void setSourceDestCheck(java.lang.Boolean 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.

Parameters:
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.

withSourceDestCheck

public InstanceAttribute withSourceDestCheck(java.lang.Boolean 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceDestCheck

public java.lang.Boolean getSourceDestCheck()
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.

Returns:
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.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.