Module org.elasticsearch.server
Record Class PutMappingClusterStateUpdateRequest
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.mapping.put.PutMappingClusterStateUpdateRequest
public record PutMappingClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, CompressedXContent source, boolean autoUpdate, Index[] indices)
extends Record
Cluster state update request that allows to put a mapping
-
Constructor Summary
ConstructorsConstructorDescriptionPutMappingClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, String source, boolean autoUpdate, Index... indices) PutMappingClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, CompressedXContent source, boolean autoUpdate, Index[] indices) Creates an instance of aPutMappingClusterStateUpdateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theackTimeoutrecord component.booleanReturns the value of theautoUpdaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Index[]indices()Returns the value of theindicesrecord component.Returns the value of themasterNodeTimeoutrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PutMappingClusterStateUpdateRequest
public PutMappingClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, CompressedXContent source, boolean autoUpdate, Index[] indices) Creates an instance of aPutMappingClusterStateUpdateRequestrecord class.- Parameters:
masterNodeTimeout- the value for themasterNodeTimeoutrecord componentackTimeout- the value for theackTimeoutrecord componentsource- the value for thesourcerecord componentautoUpdate- the value for theautoUpdaterecord componentindices- the value for theindicesrecord component
-
PutMappingClusterStateUpdateRequest
public PutMappingClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, String source, boolean autoUpdate, Index... indices) throws IOException - Throws:
IOException
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
masterNodeTimeout
Returns the value of themasterNodeTimeoutrecord component.- Returns:
- the value of the
masterNodeTimeoutrecord component
-
ackTimeout
Returns the value of theackTimeoutrecord component.- Returns:
- the value of the
ackTimeoutrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
autoUpdate
public boolean autoUpdate()Returns the value of theautoUpdaterecord component.- Returns:
- the value of the
autoUpdaterecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-