Class LaunchPermissionModifications

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

public class LaunchPermissionModifications extends Object implements Serializable, Cloneable

Describes a launch permission modification.

See Also:
  • Constructor Details

    • LaunchPermissionModifications

      public LaunchPermissionModifications()
  • Method Details

    • getAdd

      public List<LaunchPermission> getAdd()

      The AWS account ID to add to the list of launch permissions for the AMI.

      Returns:
      The AWS account ID to add to the list of launch permissions for the AMI.
    • setAdd

      public void setAdd(Collection<LaunchPermission> add)

      The AWS account ID to add to the list of launch permissions for the AMI.

      Parameters:
      add - The AWS account ID to add to the list of launch permissions for the AMI.
    • withAdd

      The AWS account ID to add to the list of launch permissions for the AMI.

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

      Parameters:
      add - The AWS account ID to add to the list of launch permissions for the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAdd

      The AWS account ID to add to the list of launch permissions for the AMI.

      Parameters:
      add - The AWS account ID to add to the list of launch permissions for the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRemove

      public List<LaunchPermission> getRemove()

      The AWS account ID to remove from the list of launch permissions for the AMI.

      Returns:
      The AWS account ID to remove from the list of launch permissions for the AMI.
    • setRemove

      public void setRemove(Collection<LaunchPermission> remove)

      The AWS account ID to remove from the list of launch permissions for the AMI.

      Parameters:
      remove - The AWS account ID to remove from the list of launch permissions for the AMI.
    • withRemove

      public LaunchPermissionModifications withRemove(LaunchPermission... remove)

      The AWS account ID to remove from the list of launch permissions for the AMI.

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

      Parameters:
      remove - The AWS account ID to remove from the list of launch permissions for the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRemove

      The AWS account ID to remove from the list of launch permissions for the AMI.

      Parameters:
      remove - The AWS account ID to remove from the list of launch permissions for the AMI.
      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

      Overrides:
      clone in class Object