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 SetPermissionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)BooleangetAllowSsh()The user is allowed to use SSH to communicate with the instance.BooleangetAllowSudo()The user is allowed to use sudo to elevate privileges.StringgetIamUserArn()The user's IAM ARN.StringgetLevel()The user's permission level, which must be set to one of the following strings.StringgetStackId()The stack ID.inthashCode()BooleanisAllowSsh()The user is allowed to use SSH to communicate with the instance.BooleanisAllowSudo()The user is allowed to use sudo to elevate privileges.voidsetAllowSsh(Boolean allowSsh)The user is allowed to use SSH to communicate with the instance.voidsetAllowSudo(Boolean allowSudo)The user is allowed to use sudo to elevate privileges.voidsetIamUserArn(String iamUserArn)The user's IAM ARN.voidsetLevel(String level)The user's permission level, which must be set to one of the following strings.voidsetStackId(String stackId)The stack ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.SetPermissionRequestwithAllowSsh(Boolean allowSsh)The user is allowed to use SSH to communicate with the instance.SetPermissionRequestwithAllowSudo(Boolean allowSudo)The user is allowed to use sudo to elevate privileges.SetPermissionRequestwithIamUserArn(String iamUserArn)The user's IAM ARN.SetPermissionRequestwithLevel(String level)The user's permission level, which must be set to one of the following strings.SetPermissionRequestwithStackId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetPermissionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-