@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchPermissionsRequestEntry extends Object implements Serializable, Cloneable, StructuredPojo
A permission to a resource granted by batch operation to the principal.
Constructor and Description |
---|
BatchPermissionsRequestEntry() |
Modifier and Type | Method and Description |
---|---|
BatchPermissionsRequestEntry |
clone() |
boolean |
equals(Object obj) |
String |
getId()
A unique identifier for the batch permissions request entry.
|
List<String> |
getPermissions()
The permissions to be granted.
|
List<String> |
getPermissionsWithGrantOption()
Indicates if the option to pass permissions is granted.
|
DataLakePrincipal |
getPrincipal()
The principal to be granted a permission.
|
Resource |
getResource()
The resource to which the principal is to be granted a permission.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
A unique identifier for the batch permissions request entry.
|
void |
setPermissions(Collection<String> permissions)
The permissions to be granted.
|
void |
setPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
|
void |
setPrincipal(DataLakePrincipal principal)
The principal to be granted a permission.
|
void |
setResource(Resource resource)
The resource to which the principal is to be granted a permission.
|
String |
toString()
Returns a string representation of this object.
|
BatchPermissionsRequestEntry |
withId(String id)
A unique identifier for the batch permissions request entry.
|
BatchPermissionsRequestEntry |
withPermissions(Collection<String> permissions)
The permissions to be granted.
|
BatchPermissionsRequestEntry |
withPermissions(Permission... permissions)
The permissions to be granted.
|
BatchPermissionsRequestEntry |
withPermissions(String... permissions)
The permissions to be granted.
|
BatchPermissionsRequestEntry |
withPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
|
BatchPermissionsRequestEntry |
withPermissionsWithGrantOption(Permission... permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
|
BatchPermissionsRequestEntry |
withPermissionsWithGrantOption(String... permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
|
BatchPermissionsRequestEntry |
withPrincipal(DataLakePrincipal principal)
The principal to be granted a permission.
|
BatchPermissionsRequestEntry |
withResource(Resource resource)
The resource to which the principal is to be granted a permission.
|
public void setId(String id)
A unique identifier for the batch permissions request entry.
id
- A unique identifier for the batch permissions request entry.public String getId()
A unique identifier for the batch permissions request entry.
public BatchPermissionsRequestEntry withId(String id)
A unique identifier for the batch permissions request entry.
id
- A unique identifier for the batch permissions request entry.public void setPrincipal(DataLakePrincipal principal)
The principal to be granted a permission.
principal
- The principal to be granted a permission.public DataLakePrincipal getPrincipal()
The principal to be granted a permission.
public BatchPermissionsRequestEntry withPrincipal(DataLakePrincipal principal)
The principal to be granted a permission.
principal
- The principal to be granted a permission.public void setResource(Resource resource)
The resource to which the principal is to be granted a permission.
resource
- The resource to which the principal is to be granted a permission.public Resource getResource()
The resource to which the principal is to be granted a permission.
public BatchPermissionsRequestEntry withResource(Resource resource)
The resource to which the principal is to be granted a permission.
resource
- The resource to which the principal is to be granted a permission.public List<String> getPermissions()
The permissions to be granted.
Permission
public void setPermissions(Collection<String> permissions)
The permissions to be granted.
permissions
- The permissions to be granted.Permission
public BatchPermissionsRequestEntry withPermissions(String... permissions)
The permissions to be granted.
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.Permission
public BatchPermissionsRequestEntry withPermissions(Collection<String> permissions)
The permissions to be granted.
permissions
- The permissions to be granted.Permission
public BatchPermissionsRequestEntry withPermissions(Permission... permissions)
The permissions to be granted.
permissions
- The permissions to be granted.Permission
public List<String> getPermissionsWithGrantOption()
Indicates if the option to pass permissions is granted.
Permission
public void setPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
permissionsWithGrantOption
- Indicates if the option to pass permissions is granted.Permission
public BatchPermissionsRequestEntry withPermissionsWithGrantOption(String... permissionsWithGrantOption)
Indicates if the option to pass permissions is 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 if the option to pass permissions is granted.Permission
public BatchPermissionsRequestEntry withPermissionsWithGrantOption(Collection<String> permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
permissionsWithGrantOption
- Indicates if the option to pass permissions is granted.Permission
public BatchPermissionsRequestEntry withPermissionsWithGrantOption(Permission... permissionsWithGrantOption)
Indicates if the option to pass permissions is granted.
permissionsWithGrantOption
- Indicates if the option to pass permissions is granted.Permission
public String toString()
toString
in class Object
Object.toString()
public BatchPermissionsRequestEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.