Class ObjectReference
- java.lang.Object
-
- software.amazon.awssdk.services.clouddirectory.model.ObjectReference
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ObjectReference.Builder,ObjectReference>
@Generated("software.amazon.awssdk:codegen") public final class ObjectReference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ObjectReference.Builder,ObjectReference>
The reference that identifies an object.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceObjectReference.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectReference.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()Stringselector()A path selector supports easy selection of an object by the parent/child links leading to it from the directory root.static Class<? extends ObjectReference.Builder>serializableBuilderClass()ObjectReference.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
selector
public final String selector()
A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Access Objects. You can identify an object in one of the following ways:
-
$ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object’s identifier is immutable and no two objects will ever share the same object identifier. To identify an object with ObjectIdentifier, the ObjectIdentifier must be wrapped in double quotes.
-
/some/path - Identifies the object based on path
-
#SomeBatchReference - Identifies the object in a batch call
- Returns:
- A path selector supports easy selection of an object by the parent/child links leading to it from the
directory root. Use the link names from each parent/child link to construct the path. Path selectors
start with a slash (/) and link names are separated by slashes. For more information about paths, see Access Objects. You can identify an object in one of the following ways:
-
$ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object’s identifier is immutable and no two objects will ever share the same object identifier. To identify an object with ObjectIdentifier, the ObjectIdentifier must be wrapped in double quotes.
-
/some/path - Identifies the object based on path
-
#SomeBatchReference - Identifies the object in a batch call
-
-
-
toBuilder
public ObjectReference.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ObjectReference.Builder,ObjectReference>
-
builder
public static ObjectReference.Builder builder()
-
serializableBuilderClass
public static Class<? extends ObjectReference.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-