Package com.amazonaws.services.ec2.model
Class EbsInstanceBlockDevice
- java.lang.Object
-
- com.amazonaws.services.ec2.model.EbsInstanceBlockDevice
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EbsInstanceBlockDevice extends Object implements Serializable, Cloneable
Describes a parameter used to set up an EBS volume in a block device mapping.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EbsInstanceBlockDevice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EbsInstanceBlockDevice
clone()
boolean
equals(Object obj)
Date
getAttachTime()
The time stamp when the attachment initiated.Boolean
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.String
getStatus()
The attachment state.String
getVolumeId()
The ID of the EBS volume.int
hashCode()
Boolean
isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.void
setAttachTime(Date attachTime)
The time stamp when the attachment initiated.void
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.void
setStatus(AttachmentStatus status)
The attachment state.void
setStatus(String status)
The attachment state.void
setVolumeId(String volumeId)
The ID of the EBS volume.String
toString()
Returns a string representation of this object; useful for testing and debugging.EbsInstanceBlockDevice
withAttachTime(Date attachTime)
The time stamp when the attachment initiated.EbsInstanceBlockDevice
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.EbsInstanceBlockDevice
withStatus(AttachmentStatus status)
The attachment state.EbsInstanceBlockDevice
withStatus(String status)
The attachment state.EbsInstanceBlockDevice
withVolumeId(String volumeId)
The ID of the EBS volume.
-
-
-
Method Detail
-
setVolumeId
public void setVolumeId(String volumeId)
The ID of the EBS volume.
- Parameters:
volumeId
- The ID of the EBS volume.
-
getVolumeId
public String getVolumeId()
The ID of the EBS volume.
- Returns:
- The ID of the EBS volume.
-
withVolumeId
public EbsInstanceBlockDevice withVolumeId(String volumeId)
The ID of the EBS volume.
- Parameters:
volumeId
- The ID of the EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The attachment state.
- Parameters:
status
- The attachment state.- See Also:
AttachmentStatus
-
getStatus
public String getStatus()
The attachment state.
- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
withStatus
public EbsInstanceBlockDevice withStatus(String status)
The attachment state.
- Parameters:
status
- The attachment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentStatus
-
setStatus
public void setStatus(AttachmentStatus status)
The attachment state.
- Parameters:
status
- The attachment state.- See Also:
AttachmentStatus
-
withStatus
public EbsInstanceBlockDevice withStatus(AttachmentStatus status)
The attachment state.
- Parameters:
status
- The attachment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentStatus
-
setAttachTime
public void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
- Parameters:
attachTime
- The time stamp when the attachment initiated.
-
getAttachTime
public Date getAttachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
withAttachTime
public EbsInstanceBlockDevice withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
- Parameters:
attachTime
- The time stamp when the attachment initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeleteOnTermination
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
- Parameters:
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
- Returns:
- Indicates whether the volume is deleted on instance termination.
-
withDeleteOnTermination
public EbsInstanceBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
- Parameters:
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
public Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
- Returns:
- Indicates whether the volume is deleted on instance termination.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EbsInstanceBlockDevice clone()
-
-