Class IsmTemplate.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.IsmTemplate.Builder
- All Implemented Interfaces:
CopyableBuilder<IsmTemplate.Builder,,IsmTemplate> MutableBuilder<IsmTemplate.Builder,,IsmTemplate> ObjectBuilder<IsmTemplate>
- Enclosing class:
IsmTemplate
public static class IsmTemplate.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IsmTemplate.Builder,IsmTemplate>
Builder for
IsmTemplate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIsmTemplate.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IsmTemplate.BuilderindexPatterns(String value, String... values) The index patterns for the ISM template.final IsmTemplate.BuilderindexPatterns(List<String> list) The index patterns for the ISM template.final IsmTemplate.BuilderlastUpdatedTime(Integer value) When the ISM template was last updated.final IsmTemplate.BuilderThe priority of the ISM template.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<IsmTemplate.Builder,IsmTemplate> - Returns:
- a new builder instance.
-
indexPatterns
The index patterns for the ISM template.API name:
index_patternsAdds all elements of
listtoindexPatterns. -
indexPatterns
The index patterns for the ISM template.API name:
index_patternsAdds one or more values to
indexPatterns. -
lastUpdatedTime
When the ISM template was last updated.API name:
last_updated_time -
priority
The priority of the ISM template.API name:
priority -
build
Builds aIsmTemplate.- Specified by:
buildin interfaceObjectBuilder<IsmTemplate>- Throws:
NullPointerException- if some of the required fields are null.
-