Class GetResponse.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
-
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. -
build
Builds aGetResponse.- Specified by:
buildin interfaceObjectBuilder<GetResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-