Class UpdatedDataStreamMappings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<UpdatedDataStreamMappings.Builder>
co.elastic.clients.elasticsearch.indices.put_data_stream_mappings.UpdatedDataStreamMappings.Builder
- All Implemented Interfaces:
WithJson<UpdatedDataStreamMappings.Builder>,ObjectBuilder<UpdatedDataStreamMappings>
- Enclosing class:
- UpdatedDataStreamMappings
public static class UpdatedDataStreamMappings.Builder
extends WithJsonObjectBuilderBase<UpdatedDataStreamMappings.Builder>
implements ObjectBuilder<UpdatedDataStreamMappings>
Builder for
UpdatedDataStreamMappings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappliedToDataStream(boolean value) Required - If the mappings were successfully applied to the data stream (or would have been, if running indry_runmode), it istrue.build()Builds aUpdatedDataStreamMappings.effectiveMappings(TypeMapping value) The mappings that are effective on this data stream, taking into account the mappings from the matching index template and the mappings specific to this data stream.The mappings that are effective on this data stream, taking into account the mappings from the matching index template and the mappings specific to this data stream.A message explaining why the mappings could not be applied to the data stream.mappings(TypeMapping value) The mappings that are specfic to this data stream that will override any mappings from the matching index template.The mappings that are specfic to this data stream that will override any mappings from the matching index template.Required - The data stream name.protected UpdatedDataStreamMappings.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - The data stream name.API name:
name -
appliedToDataStream
Required - If the mappings were successfully applied to the data stream (or would have been, if running indry_runmode), it istrue. If an error occurred, it isfalse.API name:
applied_to_data_stream -
error
A message explaining why the mappings could not be applied to the data stream.API name:
error -
mappings
The mappings that are specfic to this data stream that will override any mappings from the matching index template.API name:
mappings -
mappings
public final UpdatedDataStreamMappings.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) The mappings that are specfic to this data stream that will override any mappings from the matching index template.API name:
mappings -
effectiveMappings
The mappings that are effective on this data stream, taking into account the mappings from the matching index template and the mappings specific to this data stream.API name:
effective_mappings -
effectiveMappings
public final UpdatedDataStreamMappings.Builder effectiveMappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) The mappings that are effective on this data stream, taking into account the mappings from the matching index template and the mappings specific to this data stream.API name:
effective_mappings -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<UpdatedDataStreamMappings.Builder>
-
build
Builds aUpdatedDataStreamMappings.- Specified by:
buildin interfaceObjectBuilder<UpdatedDataStreamMappings>- Throws:
NullPointerException- if some of the required fields are null.
-