Class GetResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.GetResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetResponse>
- Enclosing class:
- GetResponse
public static class GetResponse.Builder extends java.lang.Object implements ObjectBuilder<GetResponse>
Builder for
GetResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetResponse.BuilderaddResponses(SnapshotResponseItem value)Add a value toresponses(List), creating the list if needed.GetResponse.BuilderaddResponses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)Add a value toresponses(List), creating the list if needed.GetResponse.BuilderaddSnapshots(SnapshotInfo value)Add a value tosnapshots(List), creating the list if needed.GetResponse.BuilderaddSnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Add a value tosnapshots(List), creating the list if needed.GetResponsebuild()Builds aGetResponse.GetResponse.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.GetResponse.Builderresponses(SnapshotResponseItem... value)API name:responsesGetResponse.Builderresponses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)Setresponses(List)to a singleton list.GetResponse.Builderresponses(java.util.List<SnapshotResponseItem> value)API name:responsesGetResponse.Buildersnapshots(SnapshotInfo... value)API name:snapshotsGetResponse.Buildersnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Setsnapshots(List)to a singleton list.GetResponse.Buildersnapshots(java.util.List<SnapshotInfo> value)API name:snapshotsGetResponse.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
responses
API name:responses -
responses
API name:responses -
addResponses
Add a value toresponses(List), creating the list if needed. -
responses
public GetResponse.Builder responses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)Setresponses(List)to a singleton list. -
addResponses
public GetResponse.Builder addResponses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)Add a value toresponses(List), creating the list if needed. -
snapshots
API name:snapshots -
snapshots
API name:snapshots -
addSnapshots
Add a value tosnapshots(List), creating the list if needed. -
snapshots
public GetResponse.Builder snapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Setsnapshots(List)to a singleton list. -
addSnapshots
public GetResponse.Builder addSnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Add a value tosnapshots(List), creating the list if needed. -
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 -
build
Builds aGetResponse.- Specified by:
buildin interfaceObjectBuilder<GetResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-