@Generated(value="software.amazon.awssdk:codegen") public final class EntityReference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EntityReference.Builder,EntityReference>
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..
| Modifier and Type | Class and Description |
|---|---|
static interface |
EntityReference.Builder |
static class |
EntityReference.Type |
| Modifier and Type | Method and Description |
|---|---|
static EntityReference.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static EntityReference |
fromIdentifier(Consumer<EntityIdentifier.Builder> identifier)
Create an instance of this class with
identifier() initialized to the given value. |
static EntityReference |
fromIdentifier(EntityIdentifier identifier)
Create an instance of this class with
identifier() initialized to the given value. |
static EntityReference |
fromUnspecified(Boolean unspecified)
Create an instance of this class with
unspecified() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
EntityIdentifier |
identifier()
The identifier of the entity.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EntityReference.Builder> |
serializableBuilderClass() |
EntityReference.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
EntityReference.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
Boolean |
unspecified()
Used to indicate that a principal or resource is not specified.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
public final EntityIdentifier identifier()
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
public EntityReference.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EntityReference.Builder,EntityReference>public static EntityReference.Builder builder()
public static Class<? extends EntityReference.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static EntityReference fromUnspecified(Boolean unspecified)
unspecified() initialized to the given value.
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 static EntityReference fromIdentifier(EntityIdentifier identifier)
identifier() initialized to the given value.
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 static EntityReference fromIdentifier(Consumer<EntityIdentifier.Builder> identifier)
identifier() initialized to the given value.
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 EntityReference.Type type()
EntityReference.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be EntityReference.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.