Class ShardPath.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.stats.ShardPath.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardPath.Builder,,ShardPath> MutableBuilder<ShardPath.Builder,,ShardPath> ObjectBuilder<ShardPath>
- Enclosing class:
ShardPath
public static class ShardPath.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardPath.Builder,ShardPath>
Builder for
ShardPath.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardPath.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ShardPath.BuilderRequired - The path to the shard's data.final ShardPath.BuilderisCustomDataPath(boolean value) Required - Whether the shard uses a custom data path.final ShardPath.BuilderRequired - The path to the shard's state.Methods 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<ShardPath.Builder,ShardPath> - Returns:
- a new builder instance.
-
dataPath
Required - The path to the shard's data.API name:
data_path -
isCustomDataPath
Required - Whether the shard uses a custom data path.API name:
is_custom_data_path -
statePath
Required - The path to the shard's state.API name:
state_path -
build
Builds aShardPath.- Specified by:
buildin interfaceObjectBuilder<ShardPath>- Throws:
NullPointerException- if some of the required fields are null.
-