java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitoringFeatureFilterBase
com.azure.resourcemanager.machinelearning.models.FeatureSubset
All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitoringFeatureFilterBase>

public final class FeatureSubset extends MonitoringFeatureFilterBase
The FeatureSubset model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of FeatureSubset class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of FeatureSubset from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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, wait

    Methods 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

      public MonitoringFeatureFilterType filterType()
      Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.
      Overrides:
      filterType in class MonitoringFeatureFilterBase
      Returns:
      the filterType value.
    • features

      public List<String> features()
      Get the features property: [Required] The list of features to include.
      Returns:
      the features value.
    • withFeatures

      public FeatureSubset withFeatures(List<String> features)
      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:
      validate in class MonitoringFeatureFilterBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MonitoringFeatureFilterBase>
      Overrides:
      toJson in class MonitoringFeatureFilterBase
      Throws:
      IOException
    • fromJson

      public static FeatureSubset fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.