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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetSnapshotResponse.remaining(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.responses(SnapshotResponseItem value, SnapshotResponseItem... values) API name:responsesAPI name:responsesresponses(List<SnapshotResponseItem> list) API name:responsesprotected GetSnapshotResponse.Builderself()snapshots(SnapshotInfo value, SnapshotInfo... values) API name:snapshotsAPI name:snapshotssnapshots(List<SnapshotInfo> list) API name:snapshotstotal(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, _mapPutAll
-
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(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(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:
NullPointerException- if some of the required fields are null.
-