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
DescribePermissionsrequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribePermissionsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribePermissionsResultclone()booleanequals(Object obj)List<Permission>getPermissions()An array ofPermissionobjects that describe the stack permissions.inthashCode()voidsetPermissions(Collection<Permission> permissions)An array ofPermissionobjects that describe the stack permissions.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribePermissionsResultwithPermissions(Permission... permissions)An array ofPermissionobjects that describe the stack permissions.DescribePermissionsResultwithPermissions(Collection<Permission> permissions)An array ofPermissionobjects that describe the stack permissions.
-
-
-
Method Detail
-
getPermissions
public List<Permission> getPermissions()
An array of
Permissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array contains a
Permissionobject 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
Permissionobject with permissions for the specified stack and IAM ARN.
- Returns:
- An array of
Permissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array
contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array
contains a
Permissionobject 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
Permissionobject 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
Permissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array contains a
Permissionobject 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
Permissionobject with permissions for the specified stack and IAM ARN.
- Parameters:
permissions- An array ofPermissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array
contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array
contains a
Permissionobject 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
Permissionobject 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
Permissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array contains a
Permissionobject 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
Permissionobject 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 ofPermissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array
contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array
contains a
Permissionobject 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
Permissionobject 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
Permissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array contains a
Permissionobject 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
Permissionobject with permissions for the specified stack and IAM ARN.
- Parameters:
permissions- An array ofPermissionobjects that describe the stack permissions.- If the request object contains only a stack ID, the array
contains a
Permissionobject with permissions for each of the stack IAM ARNs. - If the request object contains only an IAM ARN, the array
contains a
Permissionobject 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
Permissionobject 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribePermissionsResult clone()
-
-