Class ImageAttribute

java.lang.Object
com.amazonaws.services.ec2.model.ImageAttribute
All Implemented Interfaces:
Serializable, Cloneable

public class ImageAttribute extends Object implements Serializable, Cloneable

Describes an image attribute.

See Also:
  • Constructor Details

    • ImageAttribute

      public ImageAttribute()
  • Method Details

    • setImageId

      public void setImageId(String imageId)

      The ID of the AMI.

      Parameters:
      imageId - The ID of the AMI.
    • getImageId

      public String getImageId()

      The ID of the AMI.

      Returns:
      The ID of the AMI.
    • withImageId

      public ImageAttribute withImageId(String imageId)

      The ID of the AMI.

      Parameters:
      imageId - The ID of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getLaunchPermissions

      public List<LaunchPermission> getLaunchPermissions()

      One or more launch permissions.

      Returns:
      One or more launch permissions.
    • setLaunchPermissions

      public void setLaunchPermissions(Collection<LaunchPermission> launchPermissions)

      One or more launch permissions.

      Parameters:
      launchPermissions - One or more launch permissions.
    • withLaunchPermissions

      public ImageAttribute withLaunchPermissions(LaunchPermission... launchPermissions)

      One or more launch permissions.

      NOTE: This method appends the values to the existing list (if any). Use setLaunchPermissions(java.util.Collection) or withLaunchPermissions(java.util.Collection) if you want to override the existing values.

      Parameters:
      launchPermissions - One or more launch permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withLaunchPermissions

      public ImageAttribute withLaunchPermissions(Collection<LaunchPermission> launchPermissions)

      One or more launch permissions.

      Parameters:
      launchPermissions - One or more launch permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getProductCodes

      public List<ProductCode> getProductCodes()

      One or more product codes.

      Returns:
      One or more product codes.
    • setProductCodes

      public void setProductCodes(Collection<ProductCode> productCodes)

      One or more product codes.

      Parameters:
      productCodes - One or more product codes.
    • withProductCodes

      public ImageAttribute withProductCodes(ProductCode... productCodes)

      One or more product codes.

      NOTE: This method appends the values to the existing list (if any). Use setProductCodes(java.util.Collection) or withProductCodes(java.util.Collection) if you want to override the existing values.

      Parameters:
      productCodes - One or more product codes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withProductCodes

      public ImageAttribute withProductCodes(Collection<ProductCode> productCodes)

      One or more product codes.

      Parameters:
      productCodes - One or more product codes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setKernelId

      public void setKernelId(String kernelId)

      The kernel ID.

      Parameters:
      kernelId - The kernel ID.
    • getKernelId

      public String getKernelId()

      The kernel ID.

      Returns:
      The kernel ID.
    • withKernelId

      public ImageAttribute withKernelId(String kernelId)

      The kernel ID.

      Parameters:
      kernelId - The kernel ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRamdiskId

      public void setRamdiskId(String ramdiskId)

      The RAM disk ID.

      Parameters:
      ramdiskId - The RAM disk ID.
    • getRamdiskId

      public String getRamdiskId()

      The RAM disk ID.

      Returns:
      The RAM disk ID.
    • withRamdiskId

      public ImageAttribute withRamdiskId(String ramdiskId)

      The RAM disk ID.

      Parameters:
      ramdiskId - The RAM disk ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      public void setDescription(String description)

      A description for the AMI.

      Parameters:
      description - A description for the AMI.
    • getDescription

      public String getDescription()

      A description for the AMI.

      Returns:
      A description for the AMI.
    • withDescription

      public ImageAttribute withDescription(String description)

      A description for the AMI.

      Parameters:
      description - A description for the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSriovNetSupport

      public void setSriovNetSupport(String sriovNetSupport)
      Parameters:
      sriovNetSupport -
    • getSriovNetSupport

      public String getSriovNetSupport()
      Returns:
    • withSriovNetSupport

      public ImageAttribute withSriovNetSupport(String sriovNetSupport)
      Parameters:
      sriovNetSupport -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getBlockDeviceMappings

      public List<BlockDeviceMapping> getBlockDeviceMappings()

      One or more block device mapping entries.

      Returns:
      One or more block device mapping entries.
    • setBlockDeviceMappings

      public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)

      One or more block device mapping entries.

      Parameters:
      blockDeviceMappings - One or more block device mapping entries.
    • withBlockDeviceMappings

      public ImageAttribute withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)

      One or more block device mapping entries.

      NOTE: This method appends the values to the existing list (if any). Use setBlockDeviceMappings(java.util.Collection) or withBlockDeviceMappings(java.util.Collection) if you want to override the existing values.

      Parameters:
      blockDeviceMappings - One or more block device mapping entries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withBlockDeviceMappings

      public ImageAttribute withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)

      One or more block device mapping entries.

      Parameters:
      blockDeviceMappings - One or more block device mapping entries.
      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 ImageAttribute clone()
      Overrides:
      clone in class Object