Package com.amazonaws.services.ec2.model
Class DiskImage
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DiskImage
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DiskImage extends Object implements Serializable, Cloneable
Describes a disk image.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiskImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskImage
clone()
boolean
equals(Object obj)
String
getDescription()
A description of the disk image.DiskImageDetail
getImage()
Information about the disk image.VolumeDetail
getVolume()
Information about the volume.int
hashCode()
void
setDescription(String description)
A description of the disk image.void
setImage(DiskImageDetail image)
Information about the disk image.void
setVolume(VolumeDetail volume)
Information about the volume.String
toString()
Returns a string representation of this object; useful for testing and debugging.DiskImage
withDescription(String description)
A description of the disk image.DiskImage
withImage(DiskImageDetail image)
Information about the disk image.DiskImage
withVolume(VolumeDetail volume)
Information about the volume.
-
-
-
Method Detail
-
setImage
public void setImage(DiskImageDetail image)
Information about the disk image.
- Parameters:
image
- Information about the disk image.
-
getImage
public DiskImageDetail getImage()
Information about the disk image.
- Returns:
- Information about the disk image.
-
withImage
public DiskImage withImage(DiskImageDetail image)
Information about the disk image.
- Parameters:
image
- Information about the disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description of the disk image.
- Parameters:
description
- A description of the disk image.
-
getDescription
public String getDescription()
A description of the disk image.
- Returns:
- A description of the disk image.
-
withDescription
public DiskImage withDescription(String description)
A description of the disk image.
- Parameters:
description
- A description of the disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolume
public void setVolume(VolumeDetail volume)
Information about the volume.
- Parameters:
volume
- Information about the volume.
-
getVolume
public VolumeDetail getVolume()
Information about the volume.
- Returns:
- Information about the volume.
-
withVolume
public DiskImage withVolume(VolumeDetail volume)
Information about the volume.
- Parameters:
volume
- Information about the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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()
-
-