Class ShardLease.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardLease.Builder>
co.elastic.clients.elasticsearch.indices.stats.ShardLease.Builder
- All Implemented Interfaces:
WithJson<ShardLease.Builder>
,ObjectBuilder<ShardLease>
- Enclosing class:
- ShardLease
public static class ShardLease.Builder
extends WithJsonObjectBuilderBase<ShardLease.Builder>
implements ObjectBuilder<ShardLease>
Builder for
ShardLease
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aShardLease
.final ShardLease.Builder
Required - API name:id
final ShardLease.Builder
retainingSeqNo
(long value) Required - API name:retaining_seq_no
protected ShardLease.Builder
self()
final ShardLease.Builder
Required - API name:source
final ShardLease.Builder
timestamp
(long value) Required - API name:timestamp
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
-
id
Required - API name:id
-
retainingSeqNo
Required - API name:retaining_seq_no
-
timestamp
Required - API name:timestamp
-
source
Required - API name:source
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardLease.Builder>
-
build
Builds aShardLease
.- Specified by:
build
in interfaceObjectBuilder<ShardLease>
- Throws:
NullPointerException
- if some of the required fields are null.
-