Class Permission
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Permission
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Permission extends Object implements Serializable, Cloneable
Describes stack or user permissions.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Permission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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.
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
A stack ID.
- Parameters:
stackId
- A stack ID.
-
getStackId
public String getStackId()
A stack ID.
- Returns:
- A stack ID.
-
withStackId
public Permission withStackId(String stackId)
A stack ID.
- Parameters:
stackId
- A stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamUserArn
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.
- Parameters:
iamUserArn
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
-
getIamUserArn
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.
- Returns:
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
-
withIamUserArn
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.
- Parameters:
iamUserArn
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAllowSsh
public void setAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
- Parameters:
allowSsh
- Whether the user can use SSH.
-
getAllowSsh
public Boolean getAllowSsh()
Whether the user can use SSH.
- Returns:
- Whether the user can use SSH.
-
withAllowSsh
public Permission withAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
- Parameters:
allowSsh
- Whether the user can use SSH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowSsh
public Boolean isAllowSsh()
Whether the user can use SSH.
- Returns:
- Whether the user can use SSH.
-
setAllowSudo
public void setAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
- Parameters:
allowSudo
- Whether the user can use sudo.
-
getAllowSudo
public Boolean getAllowSudo()
Whether the user can use sudo.
- Returns:
- Whether the user can use sudo.
-
withAllowSudo
public Permission withAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
- Parameters:
allowSudo
- Whether the user can use sudo.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowSudo
public Boolean isAllowSudo()
Whether the user can use sudo.
- Returns:
- Whether the user can use sudo.
-
setLevel
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
- Parameters:
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
-
-
-
getLevel
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
- Returns:
- 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
-
-
-
withLevel
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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 Permission clone()
-
-