com.amazonaws.services.ec2.model
Class CreateVolumePermission

java.lang.Object
  extended by com.amazonaws.services.ec2.model.CreateVolumePermission
All Implemented Interfaces:
java.io.Serializable

public class CreateVolumePermission
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CreateVolumePermission()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGroup()
          The specific group that is to be added or removed from a volume's list of create volume permissions.
 java.lang.String getUserId()
          The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
 int hashCode()
           
 void setGroup(PermissionGroup group)
          The specific group that is to be added or removed from a volume's list of create volume permissions.
 void setGroup(java.lang.String group)
          The specific group that is to be added or removed from a volume's list of create volume permissions.
 void setUserId(java.lang.String userId)
          The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateVolumePermission withGroup(PermissionGroup group)
          The specific group that is to be added or removed from a volume's list of create volume permissions.
 CreateVolumePermission withGroup(java.lang.String group)
          The specific group that is to be added or removed from a volume's list of create volume permissions.
 CreateVolumePermission withUserId(java.lang.String userId)
          The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateVolumePermission

public CreateVolumePermission()
Method Detail

getUserId

public java.lang.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.

setUserId

public void setUserId(java.lang.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.

withUserId

public CreateVolumePermission withUserId(java.lang.String userId)
The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

Returns a reference to this object so that method calls can be chained together.

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

getGroup

public java.lang.String getGroup()
The specific group that is to be added or removed from a volume's list of create volume permissions.

Constraints:
Allowed Values: all

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

setGroup

public void setGroup(java.lang.String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.

Constraints:
Allowed Values: all

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

withGroup

public CreateVolumePermission withGroup(java.lang.String group)
The specific group that is to be added or removed from a volume's list of create volume permissions.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: all

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

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.

Constraints:
Allowed Values: all

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

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: all

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

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.