Package io.camunda.search.clients.core
Record Class SearchIndexRequest<T>
java.lang.Object
java.lang.Record
io.camunda.search.clients.core.SearchIndexRequest<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexRequest(String id, String index, String routing, T document) Creates an instance of aSearchIndexRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.index()Returns the value of theindexrecord component.static <T> SearchIndexRequest<T> of(Function<SearchIndexRequest.Builder<T>, io.camunda.util.ObjectBuilder<SearchIndexRequest<T>>> fn) routing()Returns the value of theroutingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchIndexRequest
Creates an instance of aSearchIndexRequestrecord class.- Parameters:
id- the value for theidrecord componentindex- the value for theindexrecord componentrouting- the value for theroutingrecord componentdocument- the value for thedocumentrecord component
-
-
Method Details
-
of
public static <T> SearchIndexRequest<T> of(Function<SearchIndexRequest.Builder<T>, io.camunda.util.ObjectBuilder<SearchIndexRequest<T>>> fn) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
routing
Returns the value of theroutingrecord component.- Returns:
- the value of the
routingrecord component
-
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-