|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.opsworks.model.SetPermissionRequest
public class SetPermissionRequest
Container for the parameters to the 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 .
AWSOpsWorks.setPermission(SetPermissionRequest)
,
Serialized FormConstructor Summary | |
---|---|
SetPermissionRequest()
|
Method Summary | |
---|---|
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 |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetPermissionRequest()
Method Detail |
---|
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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |