Class GetIndexTemplateRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<GetIndexTemplateRequest.Builder>
org.opensearch.client.opensearch.indices.GetIndexTemplateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<GetIndexTemplateRequest.Builder,,GetIndexTemplateRequest> MutableBuilder<GetIndexTemplateRequest.Builder,,GetIndexTemplateRequest> ObjectBuilder<GetIndexTemplateRequest>
- Enclosing class:
GetIndexTemplateRequest
public static class GetIndexTemplateRequest.Builder
extends RequestBase.AbstractBuilder<GetIndexTemplateRequest.Builder>
implements CopyableBuilder<GetIndexTemplateRequest.Builder,GetIndexTemplateRequest>
Builder for
GetIndexTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetIndexTemplateRequest.Operation timeout for connection to cluster-manager node.clusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.flatSettings(Boolean value) Iftrue, returns settings in flat format.Iftrue, the request retrieves information from the local node only.Deprecated.masterTimeout(Time value) Deprecated.Name of the index template to retrieve.protected GetIndexTemplateRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<GetIndexTemplateRequest.Builder,GetIndexTemplateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetIndexTemplateRequest.Builder>
-
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final GetIndexTemplateRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
flatSettings
Iftrue, returns settings in flat format.API name:
flat_settings -
local
Iftrue, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the cluster-manager node.API name:
local -
masterTimeout
@Deprecated @Nonnull public final GetIndexTemplateRequest.Builder masterTimeout(@Nullable Time value) Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final GetIndexTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
name
Name of the index template to retrieve. Wildcard (*) expressions are supported.API name:
name -
build
Builds aGetIndexTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<GetIndexTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-