public class SetPermissionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
allowSsh
The user is allowed to use SSH to communicate with the instance.
|
private java.lang.Boolean |
allowSudo
The user is allowed to use sudo to elevate privileges.
|
private java.lang.String |
iamUserArn
The user's IAM ARN.
|
private java.lang.String |
level
The user's permission level, which must be set to one of the following
strings.
|
private java.lang.String |
stackId
The stack ID.
|
NOOP
Constructor and Description |
---|
SetPermissionRequest() |
Modifier and Type | Method and Description |
---|---|
SetPermissionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAllowSsh()
The user is allowed to use SSH to communicate with the instance.
|
java.lang.Boolean |
getAllowSudo()
The user is allowed to use sudo to elevate privileges.
|
java.lang.String |
getIamUserArn()
The user's IAM ARN.
|
java.lang.String |
getLevel()
The user's permission level, which must be set to one of the following
strings.
|
java.lang.String |
getStackId()
The stack ID.
|
int |
hashCode() |
java.lang.Boolean |
isAllowSsh()
The user is allowed to use SSH to communicate with the instance.
|
java.lang.Boolean |
isAllowSudo()
The user is allowed to use sudo to elevate privileges.
|
void |
setAllowSsh(java.lang.Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
|
void |
setAllowSudo(java.lang.Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
|
void |
setIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
|
void |
setLevel(java.lang.String level)
The user's permission level, which must be set to one of the following
strings.
|
void |
setStackId(java.lang.String stackId)
The stack ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetPermissionRequest |
withAllowSsh(java.lang.Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
|
SetPermissionRequest |
withAllowSudo(java.lang.Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
|
SetPermissionRequest |
withIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
|
SetPermissionRequest |
withLevel(java.lang.String level)
The user's permission level, which must be set to one of the following
strings.
|
SetPermissionRequest |
withStackId(java.lang.String stackId)
The stack ID.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String stackId
The stack ID.
private java.lang.String iamUserArn
The user's IAM ARN.
private java.lang.Boolean allowSsh
The user is allowed to use SSH to communicate with the instance.
private java.lang.Boolean allowSudo
The user is allowed to use sudo to elevate privileges.
private java.lang.String 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 void setStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public java.lang.String getStackId()
The stack ID.
public SetPermissionRequest withStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public void setIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
iamUserArn
- The user's IAM ARN.public java.lang.String getIamUserArn()
The user's IAM ARN.
public SetPermissionRequest withIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
iamUserArn
- The user's IAM ARN.public void setAllowSsh(java.lang.Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
allowSsh
- The user is allowed to use SSH to communicate with the instance.public java.lang.Boolean getAllowSsh()
The user is allowed to use SSH to communicate with the instance.
public SetPermissionRequest withAllowSsh(java.lang.Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
allowSsh
- The user is allowed to use SSH to communicate with the instance.public java.lang.Boolean isAllowSsh()
The user is allowed to use SSH to communicate with the instance.
public void setAllowSudo(java.lang.Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
allowSudo
- The user is allowed to use sudo to elevate privileges.public java.lang.Boolean getAllowSudo()
The user is allowed to use sudo to elevate privileges.
public SetPermissionRequest withAllowSudo(java.lang.Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
allowSudo
- The user is allowed to use sudo to elevate privileges.public java.lang.Boolean isAllowSudo()
The user is allowed to use sudo to elevate privileges.
public void setLevel(java.lang.String 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.
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 java.lang.String getLevel()
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.
deny
show
deploy
manage
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions.
public SetPermissionRequest withLevel(java.lang.String 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.
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 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 SetPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()