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.If the request contained a size limit and there might be more results, anextfield will be added to the response.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 thenextfield 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 the size limit orafterquery 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
-
remaining
Required - The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using thenextfield value.API name:
remaining -
total
Required - The total number of snapshots that match the request when ignoring the size limit orafterquery parameter.API name:
total -
next
If the request contained a size limit and there might be more results, anextfield will be added to the response. It can be used as theafterquery parameter to fetch additional results.API name:
next -
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. -
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.
-