public class LaunchPermission
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a launch permission.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
group
The name of the group.
|
private java.lang.String |
userId
The AWS account ID.
|
Constructor and Description |
---|
LaunchPermission() |
Modifier and Type | Method and Description |
---|---|
LaunchPermission |
clone() |
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.
|
private java.lang.String userId
The AWS account ID.
private java.lang.String group
The name of the group.
public void setUserId(java.lang.String userId)
The AWS account ID.
userId
- The AWS account ID.public java.lang.String getUserId()
The AWS account ID.
public LaunchPermission withUserId(java.lang.String userId)
The AWS account ID.
userId
- The AWS account ID.public void setGroup(java.lang.String group)
The name of the group.
group
- The name of the group.PermissionGroup
public java.lang.String getGroup()
The name of the group.
PermissionGroup
public LaunchPermission withGroup(java.lang.String group)
The name of the group.
group
- The name of the group.PermissionGroup
public void setGroup(PermissionGroup group)
The name of the group.
group
- The name of the group.PermissionGroup
public LaunchPermission withGroup(PermissionGroup group)
The name of the group.
group
- The name of the group.PermissionGroup
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LaunchPermission clone()
clone
in class java.lang.Object