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 LaunchPermissionclone()booleanequals(Object obj)StringgetGroup()The name of the group.StringgetUserId()The AWS account ID.inthashCode()voidsetGroup(PermissionGroup group)The name of the group.voidsetGroup(String group)The name of the group.voidsetUserId(String userId)The AWS account ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.LaunchPermissionwithGroup(PermissionGroup group)The name of the group.LaunchPermissionwithGroup(String group)The name of the group.LaunchPermissionwithUserId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LaunchPermission clone()
-
-