com.amazonaws.services.autoscaling.model
Class BlockDeviceMapping

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

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

The BlockDeviceMapping data type.

See Also:
Serialized Form

Constructor Summary
BlockDeviceMapping()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDeviceName()
          The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).
 Ebs getEbs()
          The Elastic Block Storage volume information.
 java.lang.Boolean getNoDevice()
          Suppresses the device mapping.
 java.lang.String getVirtualName()
          The virtual name associated with the device.
 int hashCode()
           
 java.lang.Boolean isNoDevice()
          Suppresses the device mapping.
 void setDeviceName(java.lang.String deviceName)
          The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).
 void setEbs(Ebs ebs)
          The Elastic Block Storage volume information.
 void setNoDevice(java.lang.Boolean noDevice)
          Suppresses the device mapping.
 void setVirtualName(java.lang.String virtualName)
          The virtual name associated with the device.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BlockDeviceMapping withDeviceName(java.lang.String deviceName)
          The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).
 BlockDeviceMapping withEbs(Ebs ebs)
          The Elastic Block Storage volume information.
 BlockDeviceMapping withNoDevice(java.lang.Boolean noDevice)
          Suppresses the device mapping.
 BlockDeviceMapping withVirtualName(java.lang.String virtualName)
          The virtual name associated with the device.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockDeviceMapping

public BlockDeviceMapping()
Method Detail

getVirtualName

public java.lang.String getVirtualName()
The virtual name associated with the device.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The virtual name associated with the device.

setVirtualName

public void setVirtualName(java.lang.String virtualName)
The virtual name associated with the device.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
virtualName - The virtual name associated with the device.

withVirtualName

public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
The virtual name associated with the device.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
virtualName - The virtual name associated with the device.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeviceName

public java.lang.String getDeviceName()
The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).

setDeviceName

public void setDeviceName(java.lang.String deviceName)
The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
deviceName - The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).

withDeviceName

public BlockDeviceMapping withDeviceName(java.lang.String deviceName)
The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
deviceName - The name of the device within Amazon EC2 (for example, /dev/sdh or xvdh).
Returns:
A reference to this updated object so that method calls can be chained together.

getEbs

public Ebs getEbs()
The Elastic Block Storage volume information.

Returns:
The Elastic Block Storage volume information.

setEbs

public void setEbs(Ebs ebs)
The Elastic Block Storage volume information.

Parameters:
ebs - The Elastic Block Storage volume information.

withEbs

public BlockDeviceMapping withEbs(Ebs ebs)
The Elastic Block Storage volume information.

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

Parameters:
ebs - The Elastic Block Storage volume information.
Returns:
A reference to this updated object so that method calls can be chained together.

isNoDevice

public java.lang.Boolean isNoDevice()
Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

Returns:
Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

setNoDevice

public void setNoDevice(java.lang.Boolean noDevice)
Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

Parameters:
noDevice - Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

withNoDevice

public BlockDeviceMapping withNoDevice(java.lang.Boolean noDevice)
Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

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

Parameters:
noDevice - Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
Returns:
A reference to this updated object so that method calls can be chained together.

getNoDevice

public java.lang.Boolean getNoDevice()
Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

Returns:
Suppresses the device mapping. If NoDevice is set to true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

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.