Class GetStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetStatsResponse.Builder>
co.elastic.clients.elasticsearch.slm.GetStatsResponse.Builder
- All Implemented Interfaces:
WithJson<GetStatsResponse.Builder>,ObjectBuilder<GetStatsResponse>
- Enclosing class:
- GetStatsResponse
public static class GetStatsResponse.Builder extends WithJsonObjectBuilderBase<GetStatsResponse.Builder> implements ObjectBuilder<GetStatsResponse>
Builder for
GetStatsResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetStatsResponsebuild()Builds aGetStatsResponse.GetStatsResponse.BuilderpolicyStats(java.lang.String value, java.lang.String... values)Required - API name:policy_statsGetStatsResponse.BuilderpolicyStats(java.util.List<java.lang.String> list)Required - API name:policy_statsGetStatsResponse.BuilderretentionDeletionTime(java.lang.String value)Required - API name:retention_deletion_timeGetStatsResponse.BuilderretentionDeletionTimeMillis(DateTime value)Required - API name:retention_deletion_time_millisGetStatsResponse.BuilderretentionFailed(long value)Required - API name:retention_failedGetStatsResponse.BuilderretentionRuns(long value)Required - API name:retention_runsGetStatsResponse.BuilderretentionTimedOut(long value)Required - API name:retention_timed_outprotected GetStatsResponse.Builderself()GetStatsResponse.BuildertotalSnapshotDeletionFailures(long value)Required - API name:total_snapshot_deletion_failuresGetStatsResponse.BuildertotalSnapshotsDeleted(long value)Required - API name:total_snapshots_deletedGetStatsResponse.BuildertotalSnapshotsFailed(long value)Required - API name:total_snapshots_failedGetStatsResponse.BuildertotalSnapshotsTaken(long value)Required - API name:total_snapshots_takenMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retentionDeletionTime
Required - API name:retention_deletion_time -
retentionDeletionTimeMillis
Required - API name:retention_deletion_time_millis -
retentionFailed
Required - API name:retention_failed -
retentionRuns
Required - API name:retention_runs -
retentionTimedOut
Required - API name:retention_timed_out -
totalSnapshotsDeleted
Required - API name:total_snapshots_deleted -
totalSnapshotDeletionFailures
Required - API name:total_snapshot_deletion_failures -
totalSnapshotsFailed
Required - API name:total_snapshots_failed -
totalSnapshotsTaken
Required - API name:total_snapshots_taken -
policyStats
Required - API name:policy_statsAdds all elements of
listtopolicyStats. -
policyStats
public final GetStatsResponse.Builder policyStats(java.lang.String value, java.lang.String... values)Required - API name:policy_statsAdds one or more values to
policyStats. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetStatsResponse.Builder>
-
build
Builds aGetStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GetStatsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-