public class Permission
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes stack or user permissions.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
allowSsh
Whether the user can use SSH.
|
private java.lang.Boolean |
allowSudo
Whether the user can use sudo.
|
private java.lang.String |
iamUserArn
The Amazon Resource Name (ARN) for an AWS Identity and Access Management
(IAM) role.
|
private java.lang.String |
level
The user's permission level, which must be the following:
|
private java.lang.String |
stackId
A stack ID.
|
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAllowSsh()
Whether the user can use SSH.
|
java.lang.Boolean |
getAllowSudo()
Whether the user can use sudo.
|
java.lang.String |
getIamUserArn()
The Amazon Resource Name (ARN) for an AWS Identity and Access Management
(IAM) role.
|
java.lang.String |
getLevel()
The user's permission level, which must be the following:
|
java.lang.String |
getStackId()
A stack ID.
|
int |
hashCode() |
java.lang.Boolean |
isAllowSsh()
Whether the user can use SSH.
|
java.lang.Boolean |
isAllowSudo()
Whether the user can use sudo.
|
void |
setAllowSsh(java.lang.Boolean allowSsh)
Whether the user can use SSH.
|
void |
setAllowSudo(java.lang.Boolean allowSudo)
Whether the user can use sudo.
|
void |
setIamUserArn(java.lang.String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management
(IAM) role.
|
void |
setLevel(java.lang.String level)
The user's permission level, which must be the following:
|
void |
setStackId(java.lang.String stackId)
A stack ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Permission |
withAllowSsh(java.lang.Boolean allowSsh)
Whether the user can use SSH.
|
Permission |
withAllowSudo(java.lang.Boolean allowSudo)
Whether the user can use sudo.
|
Permission |
withIamUserArn(java.lang.String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management
(IAM) role.
|
Permission |
withLevel(java.lang.String level)
The user's permission level, which must be the following:
|
Permission |
withStackId(java.lang.String stackId)
A stack ID.
|
private java.lang.String stackId
A stack ID.
private java.lang.String iamUserArn
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
private java.lang.Boolean allowSsh
Whether the user can use SSH.
private java.lang.Boolean allowSudo
Whether the user can use sudo.
private java.lang.String level
The user's permission level, which must be the following:
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
public void setStackId(java.lang.String stackId)
A stack ID.
stackId
- A stack ID.public java.lang.String getStackId()
A stack ID.
public Permission withStackId(java.lang.String stackId)
A stack ID.
stackId
- A stack ID.public void setIamUserArn(java.lang.String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
iamUserArn
- The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.public java.lang.String getIamUserArn()
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
public Permission withIamUserArn(java.lang.String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
iamUserArn
- The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.public void setAllowSsh(java.lang.Boolean allowSsh)
Whether the user can use SSH.
allowSsh
- Whether the user can use SSH.public java.lang.Boolean getAllowSsh()
Whether the user can use SSH.
public Permission withAllowSsh(java.lang.Boolean allowSsh)
Whether the user can use SSH.
allowSsh
- Whether the user can use SSH.public java.lang.Boolean isAllowSsh()
Whether the user can use SSH.
public void setAllowSudo(java.lang.Boolean allowSudo)
Whether the user can use sudo.
allowSudo
- Whether the user can use sudo.public java.lang.Boolean getAllowSudo()
Whether the user can use sudo.
public Permission withAllowSudo(java.lang.Boolean allowSudo)
Whether the user can use sudo.
allowSudo
- Whether the user can use sudo.public java.lang.Boolean isAllowSudo()
Whether the user can use sudo.
public void setLevel(java.lang.String level)
The user's permission level, which must be the following:
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
level
- The user's permission level, which must be the following:
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
public java.lang.String getLevel()
The user's permission level, which must be the following:
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
public Permission withLevel(java.lang.String level)
The user's permission level, which must be the following:
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
level
- The user's permission level, which must be the following:
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
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 Permission clone()
clone
in class java.lang.Object