Package com.amazonaws.services.ec2.model
Class LaunchPermission
- java.lang.Object
-
- com.amazonaws.services.ec2.model.LaunchPermission
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class LaunchPermission extends Object implements Serializable, Cloneable
Describes a launch permission.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LaunchPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LaunchPermission
clone()
boolean
equals(Object obj)
String
getGroup()
The name of the group.String
getUserId()
The AWS account ID.int
hashCode()
void
setGroup(PermissionGroup group)
The name of the group.void
setGroup(String group)
The name of the group.void
setUserId(String userId)
The AWS account ID.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(String group)
The name of the group.LaunchPermission
withUserId(String userId)
The AWS account ID.
-
-
-
Method Detail
-
setUserId
public void setUserId(String userId)
The AWS account ID.
- Parameters:
userId
- The AWS account ID.
-
getUserId
public String getUserId()
The AWS account ID.
- Returns:
- The AWS account ID.
-
withUserId
public LaunchPermission withUserId(String userId)
The AWS account ID.
- Parameters:
userId
- The AWS account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroup
public void setGroup(String group)
The name of the group.
- Parameters:
group
- The name of the group.- See Also:
PermissionGroup
-
getGroup
public String getGroup()
The name of the group.
- Returns:
- The name of the group.
- See Also:
PermissionGroup
-
withGroup
public LaunchPermission withGroup(String group)
The name of the group.
- Parameters:
group
- The name of the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PermissionGroup
-
setGroup
public void setGroup(PermissionGroup group)
The name of the group.
- Parameters:
group
- The name of the group.- See Also:
PermissionGroup
-
withGroup
public LaunchPermission withGroup(PermissionGroup group)
The name of the group.
- Parameters:
group
- The name of the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PermissionGroup
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LaunchPermission clone()
-
-