Class FeatureSubset
java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitoringFeatureFilterBase
com.azure.resourcemanager.machinelearning.models.FeatureSubset
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitoringFeatureFilterBase>
The FeatureSubset model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfeatures()Get the features property: [Required] The list of features to include.Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.static FeatureSubsetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FeatureSubset from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFeatures(List<String> features) Set the features property: [Required] The list of features to include.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FeatureSubset
public FeatureSubset()Creates an instance of FeatureSubset class.
-
-
Method Details
-
filterType
Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.- Overrides:
filterTypein classMonitoringFeatureFilterBase- Returns:
- the filterType value.
-
features
Get the features property: [Required] The list of features to include.- Returns:
- the features value.
-
withFeatures
Set the features property: [Required] The list of features to include.- Parameters:
features- the features value to set.- Returns:
- the FeatureSubset object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMonitoringFeatureFilterBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MonitoringFeatureFilterBase>- Overrides:
toJsonin classMonitoringFeatureFilterBase- Throws:
IOException
-
fromJson
Reads an instance of FeatureSubset from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FeatureSubset if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the FeatureSubset.
-