Class IndexState.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexState.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexState.Builder,,IndexState> MutableBuilder<IndexState.Builder,,IndexState> ObjectBuilder<IndexState>
- Enclosing class:
IndexState
public static class IndexState.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexState.Builder,IndexState>
Builder for
IndexState.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IndexState.Builderaliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) The aliases associated with the index.final IndexState.BuilderThe aliases associated with the index.final IndexState.BuilderThe aliases associated with the index.build()Builds aIndexState.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IndexState.BuilderdataStream(String value) API name:data_streamfinal IndexState.BuilderAPI name:defaultsfinal IndexState.Builderdefaults(IndexSettings value) API name:defaultsfinal IndexState.BuilderAPI name:mappingsfinal IndexState.Buildermappings(TypeMapping value) API name:mappingsfinal IndexState.BuilderAPI name:settingsfinal IndexState.Buildersettings(IndexSettings value) API name:settingsMethods 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<IndexState.Builder,IndexState> - Returns:
- a new builder instance.
-
aliases
The aliases associated with the index.API name:
aliasesAdds all elements of
maptoaliases. -
aliases
The aliases associated with the index.API name:
aliasesAdds an entry to
aliases. -
aliases
@Nonnull public final IndexState.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) The aliases associated with the index.API name:
aliasesAdds a value to
aliasesusing a builder lambda. -
dataStream
API name:data_stream -
defaults
API name:defaults -
defaults
@Nonnull public final IndexState.Builder defaults(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) API name:defaults -
mappings
API name:mappings -
mappings
@Nonnull public final IndexState.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:mappings -
settings
API name:settings -
settings
@Nonnull public final IndexState.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) API name:settings -
build
Builds aIndexState.- Specified by:
buildin interfaceObjectBuilder<IndexState>- Throws:
NullPointerException- if some of the required fields are null.
-