Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class Permission

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

public class Permission
extends Object
implements Serializable

Describes stack or user permissions.

See Also:
Serialized Form

Constructor Summary
Permission()
           
 
Method Summary
 boolean equals(Object obj)
           
 Boolean getAllowSsh()
          Whether the user can use SSH.
 Boolean getAllowSudo()
          Whether the user can use sudo.
 String getIamUserArn()
          The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.
 String getStackId()
          A stack ID.
 int hashCode()
           
 Boolean isAllowSsh()
          Whether the user can use SSH.
 Boolean isAllowSudo()
          Whether the user can use sudo.
 void setAllowSsh(Boolean allowSsh)
          Whether the user can use SSH.
 void setAllowSudo(Boolean allowSudo)
          Whether the user can use sudo.
 void setIamUserArn(String iamUserArn)
          The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.
 void setStackId(String stackId)
          A stack ID.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Permission withAllowSsh(Boolean allowSsh)
          Whether the user can use SSH.
 Permission withAllowSudo(Boolean allowSudo)
          Whether the user can use sudo.
 Permission withIamUserArn(String iamUserArn)
          The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.
 Permission withStackId(String stackId)
          A stack ID.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Permission

public Permission()
Method Detail

getStackId

public String getStackId()
A stack ID.

Returns:
A stack ID.

setStackId

public void setStackId(String stackId)
A stack ID.

Parameters:
stackId - A stack ID.

withStackId

public Permission withStackId(String stackId)
A stack ID.

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

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

getIamUserArn

public String getIamUserArn()
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.

Returns:
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.

setIamUserArn

public void setIamUserArn(String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.

Parameters:
iamUserArn - The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.

withIamUserArn

public Permission withIamUserArn(String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.

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

Parameters:
iamUserArn - The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
Returns:
A reference to this updated object so that method calls can be chained together.

isAllowSsh

public Boolean isAllowSsh()
Whether the user can use SSH.

Returns:
Whether the user can use SSH.

setAllowSsh

public void setAllowSsh(Boolean allowSsh)
Whether the user can use SSH.

Parameters:
allowSsh - Whether the user can use SSH.

withAllowSsh

public Permission withAllowSsh(Boolean allowSsh)
Whether the user can use SSH.

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

Parameters:
allowSsh - Whether the user can use SSH.
Returns:
A reference to this updated object so that method calls can be chained together.

getAllowSsh

public Boolean getAllowSsh()
Whether the user can use SSH.

Returns:
Whether the user can use SSH.

isAllowSudo

public Boolean isAllowSudo()
Whether the user can use sudo.

Returns:
Whether the user can use sudo.

setAllowSudo

public void setAllowSudo(Boolean allowSudo)
Whether the user can use sudo.

Parameters:
allowSudo - Whether the user can use sudo.

withAllowSudo

public Permission withAllowSudo(Boolean allowSudo)
Whether the user can use sudo.

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

Parameters:
allowSudo - Whether the user can use sudo.
Returns:
A reference to this updated object so that method calls can be chained together.

getAllowSudo

public Boolean getAllowSudo()
Whether the user can use sudo.

Returns:
Whether the user can use sudo.

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.