com.amazonaws.services.ec2.model
Class LaunchPermission

java.lang.Object
  extended by com.amazonaws.services.ec2.model.LaunchPermission

public class LaunchPermission
extends Object

Describes a permission to launch an Amazon Machine Image (AMI).


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

Constructor Detail

LaunchPermission

public LaunchPermission()
Method Detail

getUserId

public String getUserId()
The AWS user ID of the user involved in this launch permission.

Returns:
The AWS user ID of the user involved in this launch permission.

setUserId

public void setUserId(String userId)
The AWS user ID of the user involved in this launch permission.

Parameters:
userId - The AWS user ID of the user involved in this launch permission.

withUserId

public LaunchPermission withUserId(String userId)
The AWS user ID of the user involved in this launch permission.

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

Parameters:
userId - The AWS user ID of the user involved in this launch permission.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroup

public String getGroup()
The AWS group of the user involved in this launch permission.

Available groups: all

Returns:
The AWS group of the user involved in this launch permission.

Available groups: all


setGroup

public void setGroup(String group)
The AWS group of the user involved in this launch permission.

Available groups: all

Parameters:
group - The AWS group of the user involved in this launch permission.

Available groups: all


withGroup

public LaunchPermission withGroup(String group)
The AWS group of the user involved in this launch permission.

Available groups: all

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

Parameters:
group - The AWS group of the user involved in this launch permission.

Available groups: all

Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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