@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Permission extends Object implements Serializable, Cloneable, StructuredPojo
Describes stack or user permissions.
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowSsh()
Whether the user can use SSH.
|
Boolean |
getAllowSudo()
Whether the user can use sudo.
|
String |
getIamUserArn()
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.
|
String |
getLevel()
The user's permission level, which must be the following:
|
String |
getStackId()
A stack ID.
|
int |
hashCode() |
Boolean |
isAllowSsh()
Whether the user can use SSH.
|
Boolean |
isAllowSudo()
Whether the user can use sudo.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
|
void |
setAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
|
void |
setIamUserArn(String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.
|
void |
setLevel(String level)
The user's permission level, which must be the following:
|
void |
setStackId(String stackId)
A stack ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Permission |
withAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
|
Permission |
withAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
|
Permission |
withIamUserArn(String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.
|
Permission |
withLevel(String level)
The user's permission level, which must be the following:
|
Permission |
withStackId(String stackId)
A stack ID.
|
public void setStackId(String stackId)
A stack ID.
stackId
- A stack ID.public String getStackId()
A stack ID.
public Permission withStackId(String stackId)
A stack ID.
stackId
- A stack ID.public void setIamUserArn(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 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(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(Boolean allowSsh)
Whether the user can use SSH.
allowSsh
- Whether the user can use SSH.public Boolean getAllowSsh()
Whether the user can use SSH.
public Permission withAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
allowSsh
- Whether the user can use SSH.public Boolean isAllowSsh()
Whether the user can use SSH.
public void setAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
allowSudo
- Whether the user can use sudo.public Boolean getAllowSudo()
Whether the user can use sudo.
public Permission withAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
allowSudo
- Whether the user can use sudo.public Boolean isAllowSudo()
Whether the user can use sudo.
public void setLevel(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 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(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 String toString()
toString
in class Object
Object.toString()
public Permission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.