Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class DescribePermissionsResult

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

public class DescribePermissionsResult
extends Object
implements Serializable

Contains the response to a DescribePermissions request.

See Also:
Serialized Form

Constructor Summary
DescribePermissionsResult()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Permission> getPermissions()
          An array of Permission objects that describe the stack permissions.
 int hashCode()
           
 void setPermissions(Collection<Permission> permissions)
          An array of Permission objects that describe the stack permissions.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribePermissionsResult withPermissions(Collection<Permission> permissions)
          An array of Permission objects that describe the stack permissions.
 DescribePermissionsResult withPermissions(Permission... permissions)
          An array of Permission objects that describe the stack permissions.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribePermissionsResult

public DescribePermissionsResult()
Method Detail

getPermissions

public List<Permission> getPermissions()
An array of Permission objects that describe the stack permissions.

Returns:
An array of Permission objects that describe the stack permissions.
  • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.
  • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.
  • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

setPermissions

public void setPermissions(Collection<Permission> permissions)
An array of Permission objects that describe the stack permissions.

Parameters:
permissions - An array of Permission objects that describe the stack permissions.
  • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.
  • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.
  • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

withPermissions

public DescribePermissionsResult withPermissions(Permission... permissions)
An array of Permission objects that describe the stack permissions.

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

Parameters:
permissions - An array of Permission objects that describe the stack permissions.
  • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.
  • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.
  • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

withPermissions

public DescribePermissionsResult withPermissions(Collection<Permission> permissions)
An array of Permission objects that describe the stack permissions.

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

Parameters:
permissions - An array of Permission objects that describe the stack permissions.
  • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.
  • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.
  • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.
Returns:
A reference to this updated 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:
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.