@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EntityReference extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a principal or resource that can be referenced in a Cedar policy.
This data type is used as part of the PolicyFilter structure that is used as a request parameter for the ListPolicies operation..
Constructor and Description |
---|
EntityReference() |
Modifier and Type | Method and Description |
---|---|
EntityReference |
clone() |
boolean |
equals(Object obj) |
EntityIdentifier |
getIdentifier()
The identifier of the entity.
|
Boolean |
getUnspecified()
Used to indicate that a principal or resource is not specified.
|
int |
hashCode() |
Boolean |
isUnspecified()
Used to indicate that a principal or resource is not specified.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIdentifier(EntityIdentifier identifier)
The identifier of the entity.
|
void |
setUnspecified(Boolean unspecified)
Used to indicate that a principal or resource is not specified.
|
String |
toString()
Returns a string representation of this object.
|
EntityReference |
withIdentifier(EntityIdentifier identifier)
The identifier of the entity.
|
EntityReference |
withUnspecified(Boolean unspecified)
Used to indicate that a principal or resource is not specified.
|
public void setUnspecified(Boolean unspecified)
Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
unspecified
- Used to indicate that a principal or resource is not specified. This can be used to search for policies
that are not associated with a specific principal or resource.public Boolean getUnspecified()
Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
public EntityReference withUnspecified(Boolean unspecified)
Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
unspecified
- Used to indicate that a principal or resource is not specified. This can be used to search for policies
that are not associated with a specific principal or resource.public Boolean isUnspecified()
Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
public void setIdentifier(EntityIdentifier identifier)
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
identifier
- The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a
resource.public EntityIdentifier getIdentifier()
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
public EntityReference withIdentifier(EntityIdentifier identifier)
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
identifier
- The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a
resource.public String toString()
toString
in class Object
Object.toString()
public EntityReference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.