com.amazonaws.services.ec2.model
Class LaunchPermission

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

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

Describes a launch permission.

See Also:
Serialized Form

Constructor Summary
LaunchPermission()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGroup()
          The name of the group.
 java.lang.String getUserId()
          The AWS account ID.
 int hashCode()
           
 void setGroup(PermissionGroup group)
          The name of the group.
 void setGroup(java.lang.String group)
          The name of the group.
 void setUserId(java.lang.String userId)
          The AWS account ID.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 LaunchPermission withGroup(PermissionGroup group)
          The name of the group.
 LaunchPermission withGroup(java.lang.String group)
          The name of the group.
 LaunchPermission withUserId(java.lang.String userId)
          The AWS account ID.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaunchPermission

public LaunchPermission()
Method Detail

getUserId

public java.lang.String getUserId()
The AWS account ID.

Returns:
The AWS account ID.

setUserId

public void setUserId(java.lang.String userId)
The AWS account ID.

Parameters:
userId - The AWS account ID.

withUserId

public LaunchPermission withUserId(java.lang.String userId)
The AWS account ID.

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

Parameters:
userId - The AWS account ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroup

public java.lang.String getGroup()
The name of the group.

Constraints:
Allowed Values: all

Returns:
The name of the group.
See Also:
PermissionGroup

setGroup

public void setGroup(java.lang.String group)
The name of the group.

Constraints:
Allowed Values: all

Parameters:
group - The name of the group.
See Also:
PermissionGroup

withGroup

public LaunchPermission withGroup(java.lang.String group)
The name of the group.

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

Constraints:
Allowed Values: all

Parameters:
group - The name of the group.
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 name of the group.

Constraints:
Allowed Values: all

Parameters:
group - The name of the group.
See Also:
PermissionGroup

withGroup

public LaunchPermission withGroup(PermissionGroup group)
The name of the group.

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

Constraints:
Allowed Values: all

Parameters:
group - The name of the group.
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.