Class Operation.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.mget.Operation.Builder
- All Implemented Interfaces:
ObjectBuilder<Operation>
- Enclosing class:
- Operation
public static class Operation.Builder extends java.lang.Object implements ObjectBuilder<Operation>
Builder for
Operation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Operation.Builder
addStoredFields(java.lang.String value)
Add a value tostoredFields(List)
, creating the list if needed.Operation
build()
Builds aOperation
.Operation.Builder
id(java.lang.String value)
Required - API name:_id
Operation.Builder
index(java.lang.String value)
API name:_index
Operation.Builder
routing(java.lang.String value)
API name:routing
Operation.Builder
source(jakarta.json.JsonValue value)
API name:_source
Operation.Builder
storedFields(java.lang.String... value)
API name:stored_fields
Operation.Builder
storedFields(java.util.List<java.lang.String> value)
API name:stored_fields
Operation.Builder
type(java.lang.String value)
API name:_type
Operation.Builder
version(java.lang.Long value)
API name:version
Operation.Builder
versionType(VersionType value)
API name:version_type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - API name:_id
-
index
API name:_index
-
routing
API name:routing
-
source
API name:_source
-
storedFields
API name:stored_fields
-
storedFields
API name:stored_fields
-
addStoredFields
Add a value tostoredFields(List)
, creating the list if needed. -
type
API name:_type
-
version
API name:version
-
versionType
API name:version_type
-
build
Builds aOperation
.- Specified by:
build
in interfaceObjectBuilder<Operation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-