Class SetPermissionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.opsworks.model.SetPermissionRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetPermissionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
The stack ID.
- Parameters:
stackId
- The stack ID.
-
getStackId
public String getStackId()
The stack ID.
- Returns:
- The stack ID.
-
withStackId
public SetPermissionRequest withStackId(String stackId)
The stack ID.
- Parameters:
stackId
- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamUserArn
public void setIamUserArn(String iamUserArn)
The user's IAM ARN.
- Parameters:
iamUserArn
- The user's IAM ARN.
-
getIamUserArn
public String getIamUserArn()
The user's IAM ARN.
- Returns:
- The user's IAM ARN.
-
withIamUserArn
public SetPermissionRequest withIamUserArn(String iamUserArn)
The user's IAM ARN.
- Parameters:
iamUserArn
- The user's IAM ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAllowSsh
public void setAllowSsh(Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
- Parameters:
allowSsh
- The user is allowed to use SSH to communicate with the instance.
-
getAllowSsh
public Boolean getAllowSsh()
The user is allowed to use SSH to communicate with the instance.
- Returns:
- The user is allowed to use SSH to communicate with the instance.
-
withAllowSsh
public SetPermissionRequest withAllowSsh(Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.
- Parameters:
allowSsh
- The user is allowed to use SSH to communicate with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowSsh
public Boolean isAllowSsh()
The user is allowed to use SSH to communicate with the instance.
- Returns:
- The user is allowed to use SSH to communicate with the instance.
-
setAllowSudo
public void setAllowSudo(Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
- Parameters:
allowSudo
- The user is allowed to use sudo to elevate privileges.
-
getAllowSudo
public Boolean getAllowSudo()
The user is allowed to use sudo to elevate privileges.
- Returns:
- The user is allowed to use sudo to elevate privileges.
-
withAllowSudo
public SetPermissionRequest withAllowSudo(Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.
- Parameters:
allowSudo
- The user is allowed to use sudo to elevate privileges.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowSudo
public Boolean isAllowSudo()
The user is allowed to use sudo to elevate privileges.
- Returns:
- The user is allowed to use sudo to elevate privileges.
-
setLevel
public void setLevel(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.
- Parameters:
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.
-
-
-
getLevel
public 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.
- Returns:
- 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.
-
-
-
withLevel
public SetPermissionRequest withLevel(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.
- Parameters:
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.
-
- 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 SetPermissionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-