Class PutAliasRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.PutAliasRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PutAliasRequest.Builder,PutAliasRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class PutAliasRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<PutAliasRequest.Builder,PutAliasRequest>
Creates or updates an alias.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutAliasRequest> Json deserializer forPutAliasRequeststatic final Endpoint<PutAliasRequest, PutAliasResponse, ErrorResponse> Endpoint "indices.put_alias". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringalias()API name:aliasprotected voidapplyQueryParameters(Map<String, String> params) static PutAliasRequest.Builderbuilder()final TimeOperation timeout for connection to cluster-manager node.booleanfinal Queryfilter()API name:filterinthashCode()index()Comma-separated list of data streams or indexes to add.final StringAPI name:index_routingfinal BooleanisHidden()Iftrue, the alias will be hidden`.final BooleanIftrue, sets the write index or data stream for the alias.final TimeDeprecated.final Stringname()Alias to update.static PutAliasRequestfinal Stringrouting()API name:routingfinal StringAPI name:search_routingvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()Period to wait for a response.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forPutAliasRequest -
_ENDPOINT
Endpoint "indices.put_alias".
-
-
Method Details
-
of
public static PutAliasRequest of(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) -
alias
API name:alias -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
filter
API name:filter -
index
Comma-separated list of data streams or indexes to add. Supports wildcards (*). Wildcard patterns that match both data streams and indexes return an error.API name:
index -
indexRouting
API name:index_routing -
isHidden
Iftrue, the alias will be hidden`.API name:
is_hidden -
isWriteIndex
Iftrue, sets the write index or data stream for the alias. If an alias points to multiple indexes or data streams andis_write_indexisn't set, the alias rejects write requests. If an index alias points to one index andis_write_indexisn't set, the index automatically acts as the write index. Data stream aliases don't automatically set a write data stream, even if the alias points to one data stream.API name:
is_write_index -
masterTimeout
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
Alias to update. If the alias doesn't exist, the request creates it. Index alias names support date math.API name:
name -
routing
API name:routing -
searchRouting
API name:search_routing -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PutAliasRequest.Builder,PutAliasRequest> - Returns:
- a new builder instance.
-
builder
-
setupPutAliasRequestDeserializer
protected static void setupPutAliasRequestDeserializer(ObjectDeserializer<PutAliasRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-