@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
Provides user and group information for user context filtering.
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
String |
getAccess()
Whether to allow or deny document access to the principal.
|
String |
getDataSourceId()
The identifier of the data source the principal should access documents from.
|
String |
getName()
The name of the user or group.
|
String |
getType()
The type of principal.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccess(String access)
Whether to allow or deny document access to the principal.
|
void |
setDataSourceId(String dataSourceId)
The identifier of the data source the principal should access documents from.
|
void |
setName(String name)
The name of the user or group.
|
void |
setType(String type)
The type of principal.
|
String |
toString()
Returns a string representation of this object.
|
Principal |
withAccess(ReadAccessType access)
Whether to allow or deny document access to the principal.
|
Principal |
withAccess(String access)
Whether to allow or deny document access to the principal.
|
Principal |
withDataSourceId(String dataSourceId)
The identifier of the data source the principal should access documents from.
|
Principal |
withName(String name)
The name of the user or group.
|
Principal |
withType(PrincipalType type)
The type of principal.
|
Principal |
withType(String type)
The type of principal.
|
public void setName(String name)
The name of the user or group.
name
- The name of the user or group.public String getName()
The name of the user or group.
public Principal withName(String name)
The name of the user or group.
name
- The name of the user or group.public void setType(String type)
The type of principal.
type
- The type of principal.PrincipalType
public String getType()
The type of principal.
PrincipalType
public Principal withType(String type)
The type of principal.
type
- The type of principal.PrincipalType
public Principal withType(PrincipalType type)
The type of principal.
type
- The type of principal.PrincipalType
public void setAccess(String access)
Whether to allow or deny document access to the principal.
access
- Whether to allow or deny document access to the principal.ReadAccessType
public String getAccess()
Whether to allow or deny document access to the principal.
ReadAccessType
public Principal withAccess(String access)
Whether to allow or deny document access to the principal.
access
- Whether to allow or deny document access to the principal.ReadAccessType
public Principal withAccess(ReadAccessType access)
Whether to allow or deny document access to the principal.
access
- Whether to allow or deny document access to the principal.ReadAccessType
public void setDataSourceId(String dataSourceId)
The identifier of the data source the principal should access documents from.
dataSourceId
- The identifier of the data source the principal should access documents from.public String getDataSourceId()
The identifier of the data source the principal should access documents from.
public Principal withDataSourceId(String dataSourceId)
The identifier of the data source the principal should access documents from.
dataSourceId
- The identifier of the data source the principal should access documents from.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.