Class Permission

java.lang.Object
com.amazonaws.services.opsworks.model.Permission
All Implemented Interfaces:
Serializable, Cloneable

public class Permission extends Object implements Serializable, Cloneable

Describes stack or user permissions.

See Also:
  • Constructor Details

    • Permission

      public Permission()
  • Method Details

    • setStackId

      public void setStackId(String stackId)

      A stack ID.

      Parameters:
      stackId - A stack ID.
    • getStackId

      public String getStackId()

      A stack ID.

      Returns:
      A stack ID.
    • withStackId

      public Permission withStackId(String stackId)

      A stack ID.

      Parameters:
      stackId - A stack ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.
    • 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.
    • 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.

      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:
      Returns a reference to this object so that method calls can be chained together.
    • setAllowSsh

      public void setAllowSsh(Boolean allowSsh)

      Whether the user can use SSH.

      Parameters:
      allowSsh - Whether the user can use SSH.
    • getAllowSsh

      public Boolean getAllowSsh()

      Whether the user can use SSH.

      Returns:
      Whether the user can use SSH.
    • withAllowSsh

      public Permission withAllowSsh(Boolean allowSsh)

      Whether the user can use SSH.

      Parameters:
      allowSsh - Whether the user can use SSH.
      Returns:
      Returns a reference to this 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.
    • setAllowSudo

      public void setAllowSudo(Boolean allowSudo)

      Whether the user can use sudo.

      Parameters:
      allowSudo - Whether the user can use sudo.
    • getAllowSudo

      public Boolean getAllowSudo()

      Whether the user can use sudo.

      Returns:
      Whether the user can use sudo.
    • withAllowSudo

      public Permission withAllowSudo(Boolean allowSudo)

      Whether the user can use sudo.

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

      public Boolean isAllowSudo()

      Whether the user can use sudo.

      Returns:
      Whether the user can use sudo.
    • setLevel

      public void setLevel(String level)

      The user's permission level, which must be the following:

      • 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 the following:

      • 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 the following:

      • 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 the following:

      • deny
      • show
      • deploy
      • manage
      • iam_only

      For more information on the permissions associated with these levels, see Managing User Permissions

    • withLevel

      public Permission withLevel(String level)

      The user's permission level, which must be the following:

      • 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 the following:

      • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Permission clone()
      Overrides:
      clone in class Object