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:
java.io.Serializable

public class DescribePermissionsResult
extends java.lang.Object
implements java.io.Serializable

Contains the response to a DescribePermissions request.

See Also:
Serialized Form

Constructor Summary
DescribePermissionsResult()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<Permission> getPermissions()
          An array of Permission objects that describe the stack permissions.
 int hashCode()
           
 void setPermissions(java.util.Collection<Permission> permissions)
          An array of Permission objects that describe the stack permissions.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribePermissionsResult withPermissions(java.util.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 java.util.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(java.util.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.

withPermissions

public DescribePermissionsResult withPermissions(java.util.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.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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