Class GetSnapshotResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.GetSnapshotResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetSnapshotResponse.Builder,,GetSnapshotResponse> MutableBuilder<GetSnapshotResponse.Builder,,GetSnapshotResponse> ObjectBuilder<GetSnapshotResponse>
- Enclosing class:
GetSnapshotResponse
public static class GetSnapshotResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetSnapshotResponse.Builder,GetSnapshotResponse>
Builder for
GetSnapshotResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetSnapshotResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:snapshotssnapshots(List<SnapshotInfo> list) Required - API name:snapshotssnapshots(SnapshotInfo value, SnapshotInfo... values) Required - API name:snapshotsMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetSnapshotResponse.Builder,GetSnapshotResponse> - Returns:
- a new builder instance.
-
snapshots
Required - API name:snapshotsAdds all elements of
listtosnapshots. -
snapshots
@Nonnull public final GetSnapshotResponse.Builder snapshots(SnapshotInfo value, SnapshotInfo... values) Required - API name:snapshotsAdds one or more values to
snapshots. -
snapshots
@Nonnull public final GetSnapshotResponse.Builder snapshots(Function<SnapshotInfo.Builder, ObjectBuilder<SnapshotInfo>> fn) Required - API name:snapshotsAdds a value to
snapshotsusing a builder lambda. -
build
Builds aGetSnapshotResponse.- Specified by:
buildin interfaceObjectBuilder<GetSnapshotResponse>- Throws:
NullPointerException- if some of the required fields are null.
-