Class DataframeAnalyticsFieldSelection.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeAnalyticsFieldSelection.Builder>
co.elastic.clients.elasticsearch.ml.DataframeAnalyticsFieldSelection.Builder
- All Implemented Interfaces:
WithJson<DataframeAnalyticsFieldSelection.Builder>,ObjectBuilder<DataframeAnalyticsFieldSelection>
- Enclosing class:
- DataframeAnalyticsFieldSelection
public static class DataframeAnalyticsFieldSelection.Builder
extends WithJsonObjectBuilderBase<DataframeAnalyticsFieldSelection.Builder>
implements ObjectBuilder<DataframeAnalyticsFieldSelection>
Builder for
DataframeAnalyticsFieldSelection.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataframeAnalyticsFieldSelection.featureType(String value) The feature type of this field for the analysis.isIncluded(boolean value) Required - Whether the field is selected to be included in the analysis.isRequired(boolean value) Required - Whether the field is required.mappingTypes(String value, String... values) Required - The mapping types of the field.mappingTypes(List<String> list) Required - The mapping types of the field.Required - The field name.The reason a field is not selected to be included in the analysis.protected DataframeAnalyticsFieldSelection.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
-
isIncluded
Required - Whether the field is selected to be included in the analysis.API name:
is_included -
isRequired
Required - Whether the field is required.API name:
is_required -
featureType
The feature type of this field for the analysis. May be categorical or numerical.API name:
feature_type -
mappingTypes
Required - The mapping types of the field.API name:
mapping_typesAdds all elements of
listtomappingTypes. -
mappingTypes
Required - The mapping types of the field.API name:
mapping_typesAdds one or more values to
mappingTypes. -
name
Required - The field name.API name:
name -
reason
The reason a field is not selected to be included in the analysis.API name:
reason -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataframeAnalyticsFieldSelection.Builder>
-
build
Builds aDataframeAnalyticsFieldSelection.- Specified by:
buildin interfaceObjectBuilder<DataframeAnalyticsFieldSelection>- Throws:
NullPointerException- if some of the required fields are null.
-