Class CreateVolumePermissionModifications

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

public class CreateVolumePermissionModifications extends Object implements Serializable, Cloneable

Describes modifications to the permissions for a volume.

See Also:
  • Constructor Details

    • CreateVolumePermissionModifications

      public CreateVolumePermissionModifications()
  • Method Details

    • getAdd

      public List<CreateVolumePermission> getAdd()

      Adds a specific AWS account ID or group to a volume's list of create volume permissions.

      Returns:
      Adds a specific AWS account ID or group to a volume's list of create volume permissions.
    • setAdd

      public void setAdd(Collection<CreateVolumePermission> add)

      Adds a specific AWS account ID or group to a volume's list of create volume permissions.

      Parameters:
      add - Adds a specific AWS account ID or group to a volume's list of create volume permissions.
    • withAdd

      Adds a specific AWS account ID or group to a volume's list of create volume permissions.

      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 - Adds a specific AWS account ID or group to a volume's list of create volume permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAdd

      Adds a specific AWS account ID or group to a volume's list of create volume permissions.

      Parameters:
      add - Adds a specific AWS account ID or group to a volume's list of create volume permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRemove

      public List<CreateVolumePermission> getRemove()

      Removes a specific AWS account ID or group from a volume's list of create volume permissions.

      Returns:
      Removes a specific AWS account ID or group from a volume's list of create volume permissions.
    • setRemove

      public void setRemove(Collection<CreateVolumePermission> remove)

      Removes a specific AWS account ID or group from a volume's list of create volume permissions.

      Parameters:
      remove - Removes a specific AWS account ID or group from a volume's list of create volume permissions.
    • withRemove

      Removes a specific AWS account ID or group from a volume's list of create volume permissions.

      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 - Removes a specific AWS account ID or group from a volume's list of create volume permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRemove

      Removes a specific AWS account ID or group from a volume's list of create volume permissions.

      Parameters:
      remove - Removes a specific AWS account ID or group from a volume's list of create volume permissions.
      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