Class GetAllPitsResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.GetAllPitsResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetAllPitsResponse.Builder,,GetAllPitsResponse> MutableBuilder<GetAllPitsResponse.Builder,,GetAllPitsResponse> ObjectBuilder<GetAllPitsResponse>
- Enclosing class:
GetAllPitsResponse
public static class GetAllPitsResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetAllPitsResponse.Builder,GetAllPitsResponse>
Builder for
GetAllPitsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetAllPitsResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:pitsAPI name:pitsAPI name:pitsMethods 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<GetAllPitsResponse.Builder,GetAllPitsResponse> - Returns:
- a new builder instance.
-
pits
API name:pitsAdds all elements of
listtopits. -
pits
API name:pitsAdds one or more values to
pits. -
pits
@Nonnull public final GetAllPitsResponse.Builder pits(Function<PitDetail.Builder, ObjectBuilder<PitDetail>> fn) API name:pitsAdds a value to
pitsusing a builder lambda. -
build
Builds aGetAllPitsResponse.- Specified by:
buildin interfaceObjectBuilder<GetAllPitsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-