Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class SetPermissionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.opsworks.model.SetPermissionRequest
All Implemented Interfaces:
Serializable

public class SetPermissionRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the SetPermission operation.

Specifies a stack's permissions. For more information, see Security and Permissions .

See Also:
AWSOpsWorks.setPermission(SetPermissionRequest), Serialized Form

Constructor 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 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 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 withStackId(String stackId)
          The stack ID.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetPermissionRequest

public SetPermissionRequest()
Method Detail

getStackId

public String getStackId()
The stack ID.

Returns:
The stack ID.

setStackId

public void setStackId(String stackId)
The stack ID.

Parameters:
stackId - The stack ID.

withStackId

public SetPermissionRequest withStackId(String stackId)
The stack ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackId - The stack ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getIamUserArn

public String getIamUserArn()
The user's IAM ARN.

Returns:
The user's IAM ARN.

setIamUserArn

public void setIamUserArn(String iamUserArn)
The user's IAM ARN.

Parameters:
iamUserArn - The user's IAM ARN.

withIamUserArn

public SetPermissionRequest withIamUserArn(String iamUserArn)
The user's IAM ARN.

Returns a reference to this object so that method calls can be chained together.

Parameters:
iamUserArn - The user's IAM ARN.
Returns:
A reference to this updated 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.

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.

withAllowSsh

public SetPermissionRequest withAllowSsh(Boolean allowSsh)
The user is allowed to use SSH to communicate with the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
allowSsh - The user is allowed to use SSH to communicate with the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

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.

withAllowSudo

public SetPermissionRequest withAllowSudo(Boolean allowSudo)
The user is allowed to use sudo to elevate privileges.

Returns a reference to this object so that method calls can be chained together.

Parameters:
allowSudo - The user is allowed to use sudo to elevate privileges.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.