@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 IAM 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) |
void |
setActions(Collection<String> actions)
The IAM 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 IAM action to grant or revoke permissions on, for example
"quicksight:DescribeDashboard" . |
ResourcePermission |
withActions(String... actions)
The IAM 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 IAM action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
"quicksight:DescribeDashboard"
.public void setActions(Collection<String> actions)
The IAM action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
actions
- The IAM action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.public ResourcePermission withActions(String... actions)
The IAM 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 IAM action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.public ResourcePermission withActions(Collection<String> actions)
The IAM action to grant or revoke permissions on, for example "quicksight:DescribeDashboard"
.
actions
- The IAM 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)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.