@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.
|
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 IAM action to grant or revoke permissions on.
|
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.
|
ResourcePermission |
withActions(String... actions)
The IAM action to grant or revoke permissions on.
|
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 or group associated with a data source or dataset. (This is common.)
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services 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 or group associated with a data source or dataset. (This is common.)
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services 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 or group associated with a data source or dataset. (This is common.)
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. (This is less common.)
The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services 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 or group associated with a data source or dataset. (This is common.)
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services 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 or group associated with a data source or dataset. (This is common.)
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. (This is less common.)
public List<String> getActions()
The IAM action to grant or revoke permissions on.
public void setActions(Collection<String> actions)
The IAM action to grant or revoke permissions on.
actions
- The IAM action to grant or revoke permissions on.public ResourcePermission withActions(String... actions)
The IAM action to grant or revoke permissions on.
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.public ResourcePermission withActions(Collection<String> actions)
The IAM action to grant or revoke permissions on.
actions
- The IAM action to grant or revoke permissions on.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.