Class SnapshotInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotInfo.Builder>
co.elastic.clients.elasticsearch.snapshot.SnapshotInfo.Builder
- All Implemented Interfaces:
WithJson<SnapshotInfo.Builder>
,ObjectBuilder<SnapshotInfo>
- Enclosing class:
- SnapshotInfo
public static class SnapshotInfo.Builder extends WithJsonObjectBuilderBase<SnapshotInfo.Builder> implements ObjectBuilder<SnapshotInfo>
Builder for
SnapshotInfo
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SnapshotInfo
build()
Builds aSnapshotInfo
.SnapshotInfo.Builder
dataStreams(java.lang.String value, java.lang.String... values)
Required - API name:data_streams
SnapshotInfo.Builder
dataStreams(java.util.List<java.lang.String> list)
Required - API name:data_streams
SnapshotInfo.Builder
duration(Time value)
API name:duration
SnapshotInfo.Builder
duration(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
API name:duration
SnapshotInfo.Builder
durationInMillis(DateTime value)
API name:duration_in_millis
SnapshotInfo.Builder
endTime(Time value)
API name:end_time
SnapshotInfo.Builder
endTime(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
API name:end_time
SnapshotInfo.Builder
endTimeInMillis(DateTime value)
API name:end_time_in_millis
SnapshotInfo.Builder
failures(SnapshotShardFailure value, SnapshotShardFailure... values)
API name:failures
SnapshotInfo.Builder
failures(java.util.function.Function<SnapshotShardFailure.Builder,ObjectBuilder<SnapshotShardFailure>> fn)
API name:failures
SnapshotInfo.Builder
failures(java.util.List<SnapshotShardFailure> list)
API name:failures
SnapshotInfo.Builder
featureStates(InfoFeatureState value, InfoFeatureState... values)
API name:feature_states
SnapshotInfo.Builder
featureStates(java.util.function.Function<InfoFeatureState.Builder,ObjectBuilder<InfoFeatureState>> fn)
API name:feature_states
SnapshotInfo.Builder
featureStates(java.util.List<InfoFeatureState> list)
API name:feature_states
SnapshotInfo.Builder
includeGlobalState(java.lang.Boolean value)
API name:include_global_state
SnapshotInfo.Builder
indexDetails(java.lang.String key, IndexDetails value)
API name:index_details
SnapshotInfo.Builder
indexDetails(java.lang.String key, java.util.function.Function<IndexDetails.Builder,ObjectBuilder<IndexDetails>> fn)
API name:index_details
SnapshotInfo.Builder
indexDetails(java.util.Map<java.lang.String,IndexDetails> map)
API name:index_details
SnapshotInfo.Builder
indices(java.lang.String value, java.lang.String... values)
Required - API name:indices
SnapshotInfo.Builder
indices(java.util.List<java.lang.String> list)
Required - API name:indices
SnapshotInfo.Builder
metadata(java.lang.String key, JsonData value)
API name:metadata
SnapshotInfo.Builder
metadata(java.util.Map<java.lang.String,JsonData> map)
API name:metadata
SnapshotInfo.Builder
reason(java.lang.String value)
API name:reason
SnapshotInfo.Builder
repository(java.lang.String value)
API name:repository
protected SnapshotInfo.Builder
self()
SnapshotInfo.Builder
shards(ShardStatistics value)
API name:shards
SnapshotInfo.Builder
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
API name:shards
SnapshotInfo.Builder
snapshot(java.lang.String value)
Required - API name:snapshot
SnapshotInfo.Builder
startTime(Time value)
API name:start_time
SnapshotInfo.Builder
startTime(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
API name:start_time
SnapshotInfo.Builder
startTimeInMillis(DateTime value)
API name:start_time_in_millis
SnapshotInfo.Builder
state(java.lang.String value)
API name:state
SnapshotInfo.Builder
uuid(java.lang.String value)
Required - API name:uuid
SnapshotInfo.Builder
version(java.lang.String value)
API name:version
SnapshotInfo.Builder
versionId(java.lang.Long value)
API name:version_id
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
dataStreams
Required - API name:data_streams
Adds all elements of
list
todataStreams
. -
dataStreams
Required - API name:data_streams
Adds one or more values to
dataStreams
. -
duration
API name:duration
-
duration
public final SnapshotInfo.Builder duration(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:duration
-
durationInMillis
API name:duration_in_millis
-
endTime
API name:end_time
-
endTime
public final SnapshotInfo.Builder endTime(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:end_time
-
endTimeInMillis
API name:end_time_in_millis
-
failures
API name:failures
Adds all elements of
list
tofailures
. -
failures
public final SnapshotInfo.Builder failures(SnapshotShardFailure value, SnapshotShardFailure... values)API name:failures
Adds one or more values to
failures
. -
failures
public final SnapshotInfo.Builder failures(java.util.function.Function<SnapshotShardFailure.Builder,ObjectBuilder<SnapshotShardFailure>> fn)API name:failures
Adds a value to
failures
using a builder lambda. -
includeGlobalState
API name:include_global_state
-
indices
Required - API name:indices
Adds all elements of
list
toindices
. -
indices
Required - API name:indices
Adds one or more values to
indices
. -
indexDetails
API name:index_details
Adds all entries of
map
toindexDetails
. -
indexDetails
API name:index_details
Adds an entry to
indexDetails
. -
indexDetails
public final SnapshotInfo.Builder indexDetails(java.lang.String key, java.util.function.Function<IndexDetails.Builder,ObjectBuilder<IndexDetails>> fn)API name:index_details
Adds an entry to
indexDetails
using a builder lambda. -
metadata
API name:metadata
Adds all entries of
map
tometadata
. -
metadata
API name:metadata
Adds an entry to
metadata
. -
reason
API name:reason
-
repository
API name:repository
-
snapshot
Required - API name:snapshot
-
shards
API name:shards
-
shards
public final SnapshotInfo.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)API name:shards
-
startTime
API name:start_time
-
startTime
public final SnapshotInfo.Builder startTime(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:start_time
-
startTimeInMillis
API name:start_time_in_millis
-
state
API name:state
-
uuid
Required - API name:uuid
-
version
API name:version
-
versionId
API name:version_id
-
featureStates
API name:feature_states
Adds all elements of
list
tofeatureStates
. -
featureStates
public final SnapshotInfo.Builder featureStates(InfoFeatureState value, InfoFeatureState... values)API name:feature_states
Adds one or more values to
featureStates
. -
featureStates
public final SnapshotInfo.Builder featureStates(java.util.function.Function<InfoFeatureState.Builder,ObjectBuilder<InfoFeatureState>> fn)API name:feature_states
Adds a value to
featureStates
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SnapshotInfo.Builder>
-
build
Builds aSnapshotInfo
.- Specified by:
build
in interfaceObjectBuilder<SnapshotInfo>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-