@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrincipalPermissions extends Object implements Serializable, Cloneable, StructuredPojo
Permissions granted to a principal.
Constructor and Description |
---|
PrincipalPermissions() |
Modifier and Type | Method and Description |
---|---|
PrincipalPermissions |
clone() |
boolean |
equals(Object obj) |
List<String> |
getPermissions()
The permissions that are granted to the principal.
|
DataLakePrincipal |
getPrincipal()
The principal who is granted permissions.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPermissions(Collection<String> permissions)
The permissions that are granted to the principal.
|
void |
setPrincipal(DataLakePrincipal principal)
The principal who is granted permissions.
|
String |
toString()
Returns a string representation of this object.
|
PrincipalPermissions |
withPermissions(Collection<String> permissions)
The permissions that are granted to the principal.
|
PrincipalPermissions |
withPermissions(Permission... permissions)
The permissions that are granted to the principal.
|
PrincipalPermissions |
withPermissions(String... permissions)
The permissions that are granted to the principal.
|
PrincipalPermissions |
withPrincipal(DataLakePrincipal principal)
The principal who is granted permissions.
|
public void setPrincipal(DataLakePrincipal principal)
The principal who is granted permissions.
principal
- The principal who is granted permissions.public DataLakePrincipal getPrincipal()
The principal who is granted permissions.
public PrincipalPermissions withPrincipal(DataLakePrincipal principal)
The principal who is granted permissions.
principal
- The principal who is granted permissions.public List<String> getPermissions()
The permissions that are granted to the principal.
Permission
public void setPermissions(Collection<String> permissions)
The permissions that are granted to the principal.
permissions
- The permissions that are granted to the principal.Permission
public PrincipalPermissions withPermissions(String... permissions)
The permissions that are granted to the principal.
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 that are granted to the principal.Permission
public PrincipalPermissions withPermissions(Collection<String> permissions)
The permissions that are granted to the principal.
permissions
- The permissions that are granted to the principal.Permission
public PrincipalPermissions withPermissions(Permission... permissions)
The permissions that are granted to the principal.
permissions
- The permissions that are granted to the principal.Permission
public String toString()
toString
in class Object
Object.toString()
public PrincipalPermissions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.