Class ListDanglingIndicesResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.NodesResponseBase.AbstractBuilder<ListDanglingIndicesResponse.Builder>
org.opensearch.client.opensearch.dangling_indices.ListDanglingIndicesResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<ListDanglingIndicesResponse.Builder,,ListDanglingIndicesResponse> MutableBuilder<ListDanglingIndicesResponse.Builder,,ListDanglingIndicesResponse> ObjectBuilder<ListDanglingIndicesResponse>
- Enclosing class:
ListDanglingIndicesResponse
public static class ListDanglingIndicesResponse.Builder
extends NodesResponseBase.AbstractBuilder<ListDanglingIndicesResponse.Builder>
implements CopyableBuilder<ListDanglingIndicesResponse.Builder,ListDanglingIndicesResponse>
Builder for
ListDanglingIndicesResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aListDanglingIndicesResponse.clusterName(String value) API name:cluster_namecopy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:dangling_indicesdanglingIndices(List<DanglingIndex> list) Required - API name:dangling_indicesdanglingIndices(DanglingIndex value, DanglingIndex... values) Required - API name:dangling_indicesprotected ListDanglingIndicesResponse.Builderself()Methods inherited from class org.opensearch.client.opensearch.nodes.NodesResponseBase.AbstractBuilder
nodeStats, nodeStatsMethods 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<ListDanglingIndicesResponse.Builder,ListDanglingIndicesResponse> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classNodesResponseBase.AbstractBuilder<ListDanglingIndicesResponse.Builder>
-
clusterName
API name:cluster_name -
danglingIndices
Required - API name:dangling_indicesAdds all elements of
listtodanglingIndices. -
danglingIndices
@Nonnull public final ListDanglingIndicesResponse.Builder danglingIndices(DanglingIndex value, DanglingIndex... values) Required - API name:dangling_indicesAdds one or more values to
danglingIndices. -
danglingIndices
@Nonnull public final ListDanglingIndicesResponse.Builder danglingIndices(Function<DanglingIndex.Builder, ObjectBuilder<DanglingIndex>> fn) Required - API name:dangling_indicesAdds a value to
danglingIndicesusing a builder lambda. -
build
Builds aListDanglingIndicesResponse.- Specified by:
buildin interfaceObjectBuilder<ListDanglingIndicesResponse>- Throws:
NullPointerException- if some of the required fields are null.
-