@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Disk extends Object implements Serializable, Cloneable, StructuredPojo
Describes the hard disk (an SSD).
Constructor and Description |
---|
Disk() |
Modifier and Type | Method and Description |
---|---|
Disk |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the disk.
|
String |
getAttachedTo()
The resources to which the disk is attached.
|
String |
getAttachmentState()
The attachment state of the disk.
|
Date |
getCreatedAt()
The date when the disk was created.
|
Integer |
getGbInUse()
The number of GB in use by the disk.
|
Integer |
getIops()
The input/output operations per second (IOPS) of the disk.
|
Boolean |
getIsAttached()
A Boolean value indicating whether the disk is attached.
|
Boolean |
getIsSystemDisk()
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
|
ResourceLocation |
getLocation()
The region and Availability Zone where the disk is located.
|
String |
getName()
The name of the disk.
|
String |
getPath()
The disk path.
|
String |
getResourceType()
The resource type of the disk.
|
Integer |
getSizeInGb()
The size of the disk in GB.
|
String |
getSupportCode()
The support code.
|
int |
hashCode() |
Boolean |
isAttached()
A Boolean value indicating whether the disk is attached.
|
Boolean |
isSystemDisk()
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the disk.
|
void |
setAttachedTo(String attachedTo)
The resources to which the disk is attached.
|
void |
setAttachmentState(String attachmentState)
The attachment state of the disk.
|
void |
setCreatedAt(Date createdAt)
The date when the disk was created.
|
void |
setGbInUse(Integer gbInUse)
The number of GB in use by the disk.
|
void |
setIops(Integer iops)
The input/output operations per second (IOPS) of the disk.
|
void |
setIsAttached(Boolean isAttached)
A Boolean value indicating whether the disk is attached.
|
void |
setIsSystemDisk(Boolean isSystemDisk)
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
|
void |
setLocation(ResourceLocation location)
The region and Availability Zone where the disk is located.
|
void |
setName(String name)
The name of the disk.
|
void |
setPath(String path)
The disk path.
|
void |
setResourceType(ResourceType resourceType)
The resource type of the disk.
|
void |
setResourceType(String resourceType)
The resource type of the disk.
|
void |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB.
|
void |
setSupportCode(String supportCode)
The support code.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Disk |
withArn(String arn)
The Amazon Resource Name (ARN) of the disk.
|
Disk |
withAttachedTo(String attachedTo)
The resources to which the disk is attached.
|
Disk |
withAttachmentState(String attachmentState)
The attachment state of the disk.
|
Disk |
withCreatedAt(Date createdAt)
The date when the disk was created.
|
Disk |
withGbInUse(Integer gbInUse)
The number of GB in use by the disk.
|
Disk |
withIops(Integer iops)
The input/output operations per second (IOPS) of the disk.
|
Disk |
withIsAttached(Boolean isAttached)
A Boolean value indicating whether the disk is attached.
|
Disk |
withIsSystemDisk(Boolean isSystemDisk)
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
|
Disk |
withLocation(ResourceLocation location)
The region and Availability Zone where the disk is located.
|
Disk |
withName(String name)
The name of the disk.
|
Disk |
withPath(String path)
The disk path.
|
Disk |
withResourceType(ResourceType resourceType)
The resource type of the disk.
|
Disk |
withResourceType(String resourceType)
The resource type of the disk.
|
Disk |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB.
|
Disk |
withSupportCode(String supportCode)
The support code.
|
public void setName(String name)
The name of the disk.
name
- The name of the disk.public String getName()
The name of the disk.
public Disk withName(String name)
The name of the disk.
name
- The name of the disk.public void setArn(String arn)
The Amazon Resource Name (ARN) of the disk.
arn
- The Amazon Resource Name (ARN) of the disk.public String getArn()
The Amazon Resource Name (ARN) of the disk.
public Disk withArn(String arn)
The Amazon Resource Name (ARN) of the disk.
arn
- The Amazon Resource Name (ARN) of the disk.public void setSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public String getSupportCode()
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
public Disk withSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public void setCreatedAt(Date createdAt)
The date when the disk was created.
createdAt
- The date when the disk was created.public Date getCreatedAt()
The date when the disk was created.
public Disk withCreatedAt(Date createdAt)
The date when the disk was created.
createdAt
- The date when the disk was created.public void setLocation(ResourceLocation location)
The region and Availability Zone where the disk is located.
location
- The region and Availability Zone where the disk is located.public ResourceLocation getLocation()
The region and Availability Zone where the disk is located.
public Disk withLocation(ResourceLocation location)
The region and Availability Zone where the disk is located.
location
- The region and Availability Zone where the disk is located.public void setResourceType(String resourceType)
The resource type of the disk.
resourceType
- The resource type of the disk.ResourceType
public String getResourceType()
The resource type of the disk.
ResourceType
public Disk withResourceType(String resourceType)
The resource type of the disk.
resourceType
- The resource type of the disk.ResourceType
public void setResourceType(ResourceType resourceType)
The resource type of the disk.
resourceType
- The resource type of the disk.ResourceType
public Disk withResourceType(ResourceType resourceType)
The resource type of the disk.
resourceType
- The resource type of the disk.ResourceType
public void setSizeInGb(Integer sizeInGb)
The size of the disk in GB.
sizeInGb
- The size of the disk in GB.public Integer getSizeInGb()
The size of the disk in GB.
public Disk withSizeInGb(Integer sizeInGb)
The size of the disk in GB.
sizeInGb
- The size of the disk in GB.public void setGbInUse(Integer gbInUse)
The number of GB in use by the disk.
gbInUse
- The number of GB in use by the disk.public Integer getGbInUse()
The number of GB in use by the disk.
public Disk withGbInUse(Integer gbInUse)
The number of GB in use by the disk.
gbInUse
- The number of GB in use by the disk.public void setIsSystemDisk(Boolean isSystemDisk)
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
isSystemDisk
- A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).public Boolean getIsSystemDisk()
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
public Disk withIsSystemDisk(Boolean isSystemDisk)
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
isSystemDisk
- A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).public Boolean isSystemDisk()
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
public void setIops(Integer iops)
The input/output operations per second (IOPS) of the disk.
iops
- The input/output operations per second (IOPS) of the disk.public Integer getIops()
The input/output operations per second (IOPS) of the disk.
public Disk withIops(Integer iops)
The input/output operations per second (IOPS) of the disk.
iops
- The input/output operations per second (IOPS) of the disk.public void setPath(String path)
The disk path.
path
- The disk path.public String getPath()
The disk path.
public Disk withPath(String path)
The disk path.
path
- The disk path.public void setAttachedTo(String attachedTo)
The resources to which the disk is attached.
attachedTo
- The resources to which the disk is attached.public String getAttachedTo()
The resources to which the disk is attached.
public Disk withAttachedTo(String attachedTo)
The resources to which the disk is attached.
attachedTo
- The resources to which the disk is attached.public void setIsAttached(Boolean isAttached)
A Boolean value indicating whether the disk is attached.
isAttached
- A Boolean value indicating whether the disk is attached.public Boolean getIsAttached()
A Boolean value indicating whether the disk is attached.
public Disk withIsAttached(Boolean isAttached)
A Boolean value indicating whether the disk is attached.
isAttached
- A Boolean value indicating whether the disk is attached.public Boolean isAttached()
A Boolean value indicating whether the disk is attached.
public void setAttachmentState(String attachmentState)
The attachment state of the disk.
attachmentState
- The attachment state of the disk.public String getAttachmentState()
The attachment state of the disk.
public Disk withAttachmentState(String attachmentState)
The attachment state of the disk.
attachmentState
- The attachment state of the disk.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.