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.Builder
addResponses(SnapshotResponseItem value)
Add a value toresponses(List)
, creating the list if needed.GetResponse.Builder
addResponses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)
Add a value toresponses(List)
, creating the list if needed.GetResponse.Builder
addSnapshots(SnapshotInfo value)
Add a value tosnapshots(List)
, creating the list if needed.GetResponse.Builder
addSnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)
Add a value tosnapshots(List)
, creating the list if needed.GetResponse
build()
Builds aGetResponse
.GetResponse.Builder
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.GetResponse.Builder
responses(SnapshotResponseItem... value)
API name:responses
GetResponse.Builder
responses(java.util.function.Function<SnapshotResponseItem.Builder,ObjectBuilder<SnapshotResponseItem>> fn)
Setresponses(List)
to a singleton list.GetResponse.Builder
responses(java.util.List<SnapshotResponseItem> value)
API name:responses
GetResponse.Builder
snapshots(SnapshotInfo... value)
API name:snapshots
GetResponse.Builder
snapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)
Setsnapshots(List)
to a singleton list.GetResponse.Builder
snapshots(java.util.List<SnapshotInfo> value)
API name:snapshots
GetResponse.Builder
total(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:
build
in interfaceObjectBuilder<GetResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-