Class DescribePermissionsResult
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.DescribePermissionsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribePermissionsResult extends Object implements Serializable, Cloneable
Contains the response to a
DescribePermissions
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribePermissionsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribePermissionsResult
clone()
boolean
equals(Object obj)
List<Permission>
getPermissions()
An array ofPermission
objects that describe the stack permissions.int
hashCode()
void
setPermissions(Collection<Permission> permissions)
An array ofPermission
objects that describe the stack permissions.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribePermissionsResult
withPermissions(Permission... permissions)
An array ofPermission
objects that describe the stack permissions.DescribePermissionsResult
withPermissions(Collection<Permission> permissions)
An array ofPermission
objects that describe the stack permissions.
-
-
-
Method Detail
-
getPermissions
public List<Permission> getPermissions()
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:
- 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.
- If the request object contains only a stack ID, the array
contains a
- If the request object contains only a stack ID, the array contains a
-
setPermissions
public void setPermissions(Collection<Permission> 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.
- Parameters:
permissions
- An array ofPermission
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.
- If the request object contains only a stack ID, the array
contains a
- If the request object contains only a stack ID, the array contains a
-
withPermissions
public DescribePermissionsResult withPermissions(Permission... 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.
NOTE: This method appends the values to the existing list (if any). Use
setPermissions(java.util.Collection)
orwithPermissions(java.util.Collection)
if you want to override the existing values.- Parameters:
permissions
- An array ofPermission
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.
- If the request object contains only a stack ID, the array
contains a
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- If the request object contains only a stack ID, the array contains a
-
withPermissions
public DescribePermissionsResult withPermissions(Collection<Permission> 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.
- Parameters:
permissions
- An array ofPermission
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.
- If the request object contains only a stack ID, the array
contains a
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- If the request object contains only a stack ID, the array contains a
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribePermissionsResult clone()
-
-