Class GetComponentTemplateRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<GetComponentTemplateRequest.Builder>
org.opensearch.client.opensearch.cluster.GetComponentTemplateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<GetComponentTemplateRequest.Builder,,GetComponentTemplateRequest> MutableBuilder<GetComponentTemplateRequest.Builder,,GetComponentTemplateRequest> ObjectBuilder<GetComponentTemplateRequest>
- Enclosing class:
GetComponentTemplateRequest
public static class GetComponentTemplateRequest.Builder
extends RequestBase.AbstractBuilder<GetComponentTemplateRequest.Builder>
implements CopyableBuilder<GetComponentTemplateRequest.Builder,GetComponentTemplateRequest>
Builder for
GetComponentTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetComponentTemplateRequest.The amount of time to wait for a response from the cluster manager node.clusterManagerTimeout(Time value) The amount of time to wait for a response from the cluster manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.flatSettings(Boolean value) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.Whentrue, the request retrieves information from the local node only.Deprecated.masterTimeout(Time value) Deprecated.The name of the component template to retrieve.protected GetComponentTemplateRequest.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<GetComponentTemplateRequest.Builder,GetComponentTemplateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetComponentTemplateRequest.Builder>
-
clusterManagerTimeout
@Nonnull public final GetComponentTemplateRequest.Builder clusterManagerTimeout(@Nullable Time value) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final GetComponentTemplateRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
flatSettings
Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of"cluster": { "max_shards_per_node": 500 }is"cluster.max_shards_per_node": "500".API name:
flat_settings -
local
Whentrue, the request retrieves information from the local node only. Whenfalse, information is retrieved from the cluster manager node.API name:
local -
masterTimeout
@Deprecated @Nonnull public final GetComponentTemplateRequest.Builder masterTimeout(@Nullable Time value) Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final GetComponentTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
name
The name of the component template to retrieve. Wildcard (*) expressions are supported.API name:
name -
build
Builds aGetComponentTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<GetComponentTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-