@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePermission extends Object implements Serializable, Cloneable, StructuredPojo
Permission for the resource.
Constructor and Description |
---|
ResourcePermission() |
Modifier and Type | Method and Description |
---|---|
ResourcePermission |
clone() |
boolean |
equals(Object obj) |
List<String> |
getActions()
The action to grant or revoke permissions on, for example
"quicksight:DescribeDashboard" . |
String |
getPrincipal()
The Amazon Resource Name (ARN) of the principal.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<String> actions)
The action to grant or revoke permissions on, for example
"quicksight:DescribeDashboard" . |
void |
setPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
|
String |
toString()
Returns a string representation of this object.
|
ResourcePermission |
withActions(Collection<String> actions)
The action to grant or revoke permissions on, for example
"quicksight:DescribeDashboard" . |
ResourcePermission |
withActions(String... actions)
The action to grant or revoke permissions on, for example
"quicksight:DescribeDashboard" . |
ResourcePermission |
withPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
|
public void setPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal. This can be one of the following:
The ARN of an Amazon QuickSight user, group, or namespace. (This is most common.)
The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across AWS accounts. (This is less common.)
principal
- The Amazon Resource Name (ARN) of the principal. This can be one of the following:
The ARN of an Amazon QuickSight user, group, or namespace. (This is most common.)
The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across AWS accounts. (This is less common.)
public String getPrincipal()
The Amazon Resource Name (ARN) of the principal. This can be one of the following:
The ARN of an Amazon QuickSight user, group, or namespace. (This is most common.)
The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across AWS accounts. (This is less common.)
The ARN of an Amazon QuickSight user, group, or namespace. (This is most common.)
The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across AWS accounts. (This is less common.)
public ResourcePermission withPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal. This can be one of the following:
The ARN of an Amazon QuickSight user, group, or namespace. (This is most common.)
The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across AWS accounts. (This is less common.)
principal
- The Amazon Resource Name (ARN) of the principal. This can be one of the following:
The ARN of an Amazon QuickSight user, group, or namespace. (This is most common.)
The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across AWS accounts. (This is less common.)
public List<String> getActions()
The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
"quicksight:DescribeDashboard"
.public void setActions(Collection<String> actions)
The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
actions
- The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.public ResourcePermission withActions(String... actions)
The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.public ResourcePermission withActions(Collection<String> actions)
The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
actions
- The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.public String toString()
toString
in class Object
Object.toString()
public ResourcePermission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.