Class SyncJobUpdateStatsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<SyncJobUpdateStatsRequest.Builder>
co.elastic.clients.elasticsearch.connector.SyncJobUpdateStatsRequest.Builder
- All Implemented Interfaces:
WithJson<SyncJobUpdateStatsRequest.Builder>
,ObjectBuilder<SyncJobUpdateStatsRequest>
- Enclosing class:
- SyncJobUpdateStatsRequest
public static class SyncJobUpdateStatsRequest.Builder
extends RequestBase.AbstractBuilder<SyncJobUpdateStatsRequest.Builder>
implements ObjectBuilder<SyncJobUpdateStatsRequest>
Builder for
SyncJobUpdateStatsRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSyncJobUpdateStatsRequest
.connectorSyncJobId
(String value) Required - The unique identifier of the connector sync job.deletedDocumentCount
(long value) Required - The number of documents the sync job deleted.indexedDocumentCount
(long value) Required - The number of documents the sync job indexed.indexedDocumentVolume
(long value) Required - The total size of the data (in MiB) the sync job indexed.The timestamp to use in thelast_seen
property for the connector sync job.The timestamp to use in thelast_seen
property for the connector sync job.The connector-specific metadata.The connector-specific metadata.protected SyncJobUpdateStatsRequest.Builder
self()
totalDocumentCount
(Integer value) The total number of documents in the target index after the sync job finished.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectorSyncJobId
Required - The unique identifier of the connector sync job.API name:
connector_sync_job_id
-
deletedDocumentCount
Required - The number of documents the sync job deleted.API name:
deleted_document_count
-
indexedDocumentCount
Required - The number of documents the sync job indexed.API name:
indexed_document_count
-
indexedDocumentVolume
Required - The total size of the data (in MiB) the sync job indexed.API name:
indexed_document_volume
-
lastSeen
The timestamp to use in thelast_seen
property for the connector sync job.API name:
last_seen
-
lastSeen
public final SyncJobUpdateStatsRequest.Builder lastSeen(Function<Time.Builder, ObjectBuilder<Time>> fn) The timestamp to use in thelast_seen
property for the connector sync job.API name:
last_seen
-
metadata
The connector-specific metadata.API name:
metadata
Adds all entries of
map
tometadata
. -
metadata
The connector-specific metadata.API name:
metadata
Adds an entry to
metadata
. -
totalDocumentCount
The total number of documents in the target index after the sync job finished.API name:
total_document_count
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<SyncJobUpdateStatsRequest.Builder>
-
build
Builds aSyncJobUpdateStatsRequest
.- Specified by:
build
in interfaceObjectBuilder<SyncJobUpdateStatsRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-