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