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:
  • Constructor Details

    • DiskImage

      public DiskImage()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DiskImage clone()
      Overrides:
      clone in class Object