Class GetSnapshotResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetSnapshotResponse.Builder>
co.elastic.clients.elasticsearch.snapshot.GetSnapshotResponse.Builder
- All Implemented Interfaces:
WithJson<GetSnapshotResponse.Builder>,ObjectBuilder<GetSnapshotResponse>
- Enclosing class:
- GetSnapshotResponse
public static class GetSnapshotResponse.Builder extends WithJsonObjectBuilderBase<GetSnapshotResponse.Builder> implements ObjectBuilder<GetSnapshotResponse>
Builder for
GetSnapshotResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetSnapshotResponsebuild()Builds aGetSnapshotResponse.GetSnapshotResponse.Builderremaining(int value)Required - The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the next field value.GetSnapshotResponse.Builderresponses(SnapshotResponseItem value, SnapshotResponseItem... values)API name:responsesGetSnapshotResponse.Builderresponses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)API name:responsesGetSnapshotResponse.Builderresponses(java.util.List<SnapshotResponseItem> list)API name:responsesprotected GetSnapshotResponse.Builderself()GetSnapshotResponse.Buildersnapshots(SnapshotInfo value, SnapshotInfo... values)API name:snapshotsGetSnapshotResponse.Buildersnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshotsGetSnapshotResponse.Buildersnapshots(java.util.List<SnapshotInfo> list)API name:snapshotsGetSnapshotResponse.Buildertotal(int value)Required - The total number of snapshots that match the request when ignoring size limit or after query parameter.Methods 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
-
responses
API name:responsesAdds all elements of
listtoresponses. -
responses
public final GetSnapshotResponse.Builder responses(SnapshotResponseItem value, SnapshotResponseItem... values)API name:responsesAdds one or more values to
responses. -
responses
public final GetSnapshotResponse.Builder responses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)API name:responsesAdds a value to
responsesusing a builder lambda. -
snapshots
API name:snapshotsAdds all elements of
listtosnapshots. -
snapshots
API name:snapshotsAdds one or more values to
snapshots. -
snapshots
public final GetSnapshotResponse.Builder snapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshotsAdds a value to
snapshotsusing a builder lambda. -
total
Required - The total number of snapshots that match the request when ignoring size limit or after query parameter.API name:
total -
remaining
Required - The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the next field value.API name:
remaining -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetSnapshotResponse.Builder>
-
build
Builds aGetSnapshotResponse.- Specified by:
buildin interfaceObjectBuilder<GetSnapshotResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-