@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 an Amazon QuickSight user or group, or an IAM ARN.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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 an Amazon QuickSight user or group, or an IAM ARN.
|
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 an Amazon QuickSight user or group, or an IAM ARN.
|
public void setPrincipal(String principal)
The Amazon Resource Name (ARN) of an Amazon QuickSight user or group, or an IAM ARN. If you are using cross-account resource sharing, this is the IAM ARN of an account root. Otherwise, it is the ARN of a QuickSight user or group. .
principal - The Amazon Resource Name (ARN) of an Amazon QuickSight user or group, or an IAM ARN. If you are using
cross-account resource sharing, this is the IAM ARN of an account root. Otherwise, it is the ARN of a
QuickSight user or group. .public String getPrincipal()
The Amazon Resource Name (ARN) of an Amazon QuickSight user or group, or an IAM ARN. If you are using cross-account resource sharing, this is the IAM ARN of an account root. Otherwise, it is the ARN of a QuickSight user or group. .
public ResourcePermission withPrincipal(String principal)
The Amazon Resource Name (ARN) of an Amazon QuickSight user or group, or an IAM ARN. If you are using cross-account resource sharing, this is the IAM ARN of an account root. Otherwise, it is the ARN of a QuickSight user or group. .
principal - The Amazon Resource Name (ARN) of an Amazon QuickSight user or group, or an IAM ARN. If you are using
cross-account resource sharing, this is the IAM ARN of an account root. Otherwise, it is the ARN of a
QuickSight user or group. .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 ObjectObject.toString()public ResourcePermission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.