public class SetPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetPermission operation
.
Specifies a user's permissions. For more information, see Security and Permissions .
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
SetPermissionRequest() |
Modifier and Type | Method and Description |
---|---|
SetPermissionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Boolean |
getAllowSsh()
The user is allowed to use SSH to communicate with the instance.
|
Boolean |
getAllowSudo()
The user is allowed to use sudo to elevate privileges.
|
String |
getIamUserArn()
The user's IAM ARN.
|
String |
getLevel()
The user's permission level, which must be set to one of the following
strings.
|
String |
getStackId()
The stack ID.
|
int |
hashCode() |
Boolean |
isAllowSsh()
The user is allowed to use SSH to communicate with the instance.
|
Boolean |
isAllowSudo()
The user is allowed to use sudo to elevate privileges.
|
void |
setAllowSsh(Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
|
void |
setAllowSudo(Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
|
void |
setIamUserArn(String iamUserArn)
The user's IAM ARN.
|
void |
setLevel(String level)
The user's permission level, which must be set to one of the following
strings.
|
void |
setStackId(String stackId)
The stack ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetPermissionRequest |
withAllowSsh(Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
|
SetPermissionRequest |
withAllowSudo(Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
|
SetPermissionRequest |
withIamUserArn(String iamUserArn)
The user's IAM ARN.
|
SetPermissionRequest |
withLevel(String level)
The user's permission level, which must be set to one of the following
strings.
|
SetPermissionRequest |
withStackId(String stackId)
The stack ID.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStackId()
public void setStackId(String stackId)
stackId
- The stack ID.public SetPermissionRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The stack ID.public String getIamUserArn()
public void setIamUserArn(String iamUserArn)
iamUserArn
- The user's IAM ARN.public SetPermissionRequest withIamUserArn(String iamUserArn)
Returns a reference to this object so that method calls can be chained together.
iamUserArn
- The user's IAM ARN.public Boolean isAllowSsh()
public void setAllowSsh(Boolean allowSsh)
allowSsh
- The user is allowed to use SSH to communicate with the instance.public SetPermissionRequest withAllowSsh(Boolean allowSsh)
Returns a reference to this object so that method calls can be chained together.
allowSsh
- The user is allowed to use SSH to communicate with the instance.public Boolean getAllowSsh()
public Boolean isAllowSudo()
public void setAllowSudo(Boolean allowSudo)
allowSudo
- The user is allowed to use sudo to elevate privileges.public SetPermissionRequest withAllowSudo(Boolean allowSudo)
Returns a reference to this object so that method calls can be chained together.
allowSudo
- The user is allowed to use sudo to elevate privileges.public Boolean getAllowSudo()
public String getLevel()
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 void setLevel(String level)
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 set to one of the following
strings. You cannot set your own permissions level. deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions.
public SetPermissionRequest withLevel(String level)
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions.
Returns a reference to this object so that method calls can be chained together.
level
- The user's permission level, which must be set to one of the following
strings. You cannot set your own permissions level. 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 SetPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.