Class CreateVolumePermission

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

public class CreateVolumePermission extends Object implements Serializable, Cloneable

Describes the user or group to be added or removed from the permissions for a volume.

See Also:
  • Constructor Details

    • CreateVolumePermission

      public CreateVolumePermission()
  • Method Details

    • setUserId

      public void setUserId(String userId)

      The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

      Parameters:
      userId - The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
    • getUserId

      public String getUserId()

      The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

      Returns:
      The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
    • withUserId

      public CreateVolumePermission withUserId(String userId)

      The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

      Parameters:
      userId - The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setGroup

      public void setGroup(String group)

      The specific group that is to be added or removed from a volume's list of create volume permissions.

      Parameters:
      group - The specific group that is to be added or removed from a volume's list of create volume permissions.
      See Also:
    • getGroup

      public String getGroup()

      The specific group that is to be added or removed from a volume's list of create volume permissions.

      Returns:
      The specific group that is to be added or removed from a volume's list of create volume permissions.
      See Also:
    • withGroup

      public CreateVolumePermission withGroup(String group)

      The specific group that is to be added or removed from a volume's list of create volume permissions.

      Parameters:
      group - The specific group that is to be added or removed from a volume's list of create volume permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setGroup

      public void setGroup(PermissionGroup group)

      The specific group that is to be added or removed from a volume's list of create volume permissions.

      Parameters:
      group - The specific group that is to be added or removed from a volume's list of create volume permissions.
      See Also:
    • withGroup

      public CreateVolumePermission withGroup(PermissionGroup group)

      The specific group that is to be added or removed from a volume's list of create volume permissions.

      Parameters:
      group - The specific group that is to be added or removed from a volume's list of create volume permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 CreateVolumePermission clone()
      Overrides:
      clone in class Object