@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrincipalResourcePermissions extends Object implements Serializable, Cloneable, StructuredPojo
The permissions granted or revoked on a resource.
Constructor and Description |
---|
PrincipalResourcePermissions() |
Modifier and Type | Method and Description |
---|---|
PrincipalResourcePermissions |
clone() |
boolean |
equals(Object obj) |
DetailsMap |
getAdditionalDetails()
This attribute can be used to return any additional details of
PrincipalResourcePermissions . |
List<String> |
getPermissions()
The permissions to be granted or revoked on the resource.
|
List<String> |
getPermissionsWithGrantOption()
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
|
DataLakePrincipal |
getPrincipal()
The Data Lake principal to be granted or revoked permissions.
|
Resource |
getResource()
The resource where permissions are to be granted or revoked.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAdditionalDetails(DetailsMap additionalDetails)
This attribute can be used to return any additional details of
PrincipalResourcePermissions . |
void |
setPermissions(Collection<String> permissions)
The permissions to be granted or revoked on the resource.
|
void |
setPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
|
void |
setPrincipal(DataLakePrincipal principal)
The Data Lake principal to be granted or revoked permissions.
|
void |
setResource(Resource resource)
The resource where permissions are to be granted or revoked.
|
String |
toString()
Returns a string representation of this object.
|
PrincipalResourcePermissions |
withAdditionalDetails(DetailsMap additionalDetails)
This attribute can be used to return any additional details of
PrincipalResourcePermissions . |
PrincipalResourcePermissions |
withPermissions(Collection<String> permissions)
The permissions to be granted or revoked on the resource.
|
PrincipalResourcePermissions |
withPermissions(Permission... permissions)
The permissions to be granted or revoked on the resource.
|
PrincipalResourcePermissions |
withPermissions(String... permissions)
The permissions to be granted or revoked on the resource.
|
PrincipalResourcePermissions |
withPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
|
PrincipalResourcePermissions |
withPermissionsWithGrantOption(Permission... permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
|
PrincipalResourcePermissions |
withPermissionsWithGrantOption(String... permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
|
PrincipalResourcePermissions |
withPrincipal(DataLakePrincipal principal)
The Data Lake principal to be granted or revoked permissions.
|
PrincipalResourcePermissions |
withResource(Resource resource)
The resource where permissions are to be granted or revoked.
|
public void setPrincipal(DataLakePrincipal principal)
The Data Lake principal to be granted or revoked permissions.
principal
- The Data Lake principal to be granted or revoked permissions.public DataLakePrincipal getPrincipal()
The Data Lake principal to be granted or revoked permissions.
public PrincipalResourcePermissions withPrincipal(DataLakePrincipal principal)
The Data Lake principal to be granted or revoked permissions.
principal
- The Data Lake principal to be granted or revoked permissions.public void setResource(Resource resource)
The resource where permissions are to be granted or revoked.
resource
- The resource where permissions are to be granted or revoked.public Resource getResource()
The resource where permissions are to be granted or revoked.
public PrincipalResourcePermissions withResource(Resource resource)
The resource where permissions are to be granted or revoked.
resource
- The resource where permissions are to be granted or revoked.public List<String> getPermissions()
The permissions to be granted or revoked on the resource.
Permission
public void setPermissions(Collection<String> permissions)
The permissions to be granted or revoked on the resource.
permissions
- The permissions to be granted or revoked on the resource.Permission
public PrincipalResourcePermissions withPermissions(String... permissions)
The permissions to be granted or revoked on the resource.
NOTE: This method appends the values to the existing list (if any). Use
setPermissions(java.util.Collection)
or withPermissions(java.util.Collection)
if you want to
override the existing values.
permissions
- The permissions to be granted or revoked on the resource.Permission
public PrincipalResourcePermissions withPermissions(Collection<String> permissions)
The permissions to be granted or revoked on the resource.
permissions
- The permissions to be granted or revoked on the resource.Permission
public PrincipalResourcePermissions withPermissions(Permission... permissions)
The permissions to be granted or revoked on the resource.
permissions
- The permissions to be granted or revoked on the resource.Permission
public List<String> getPermissionsWithGrantOption()
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
Permission
public void setPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
permissionsWithGrantOption
- Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).Permission
public PrincipalResourcePermissions withPermissionsWithGrantOption(String... permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
NOTE: This method appends the values to the existing list (if any). Use
setPermissionsWithGrantOption(java.util.Collection)
or
withPermissionsWithGrantOption(java.util.Collection)
if you want to override the existing values.
permissionsWithGrantOption
- Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).Permission
public PrincipalResourcePermissions withPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
permissionsWithGrantOption
- Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).Permission
public PrincipalResourcePermissions withPermissionsWithGrantOption(Permission... permissionsWithGrantOption)
Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
permissionsWithGrantOption
- Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).Permission
public void setAdditionalDetails(DetailsMap additionalDetails)
This attribute can be used to return any additional details of PrincipalResourcePermissions
.
Currently returns only as a RAM share resource ARN.
additionalDetails
- This attribute can be used to return any additional details of PrincipalResourcePermissions
.
Currently returns only as a RAM share resource ARN.public DetailsMap getAdditionalDetails()
This attribute can be used to return any additional details of PrincipalResourcePermissions
.
Currently returns only as a RAM share resource ARN.
PrincipalResourcePermissions
.
Currently returns only as a RAM share resource ARN.public PrincipalResourcePermissions withAdditionalDetails(DetailsMap additionalDetails)
This attribute can be used to return any additional details of PrincipalResourcePermissions
.
Currently returns only as a RAM share resource ARN.
additionalDetails
- This attribute can be used to return any additional details of PrincipalResourcePermissions
.
Currently returns only as a RAM share resource ARN.public String toString()
toString
in class Object
Object.toString()
public PrincipalResourcePermissions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.