FeatureSubset Class

public final class FeatureSubset
extends MonitoringFeatureFilterBase

The FeatureSubset model.

Constructor Summary

Constructor Description
FeatureSubset()

Creates an instance of FeatureSubset class.

Method Summary

Modifier and Type Method and Description
List<String> features()

Get the features property: [Required] The list of features to include.

MonitoringFeatureFilterType filterType()

Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.

static FeatureSubset fromJson(JsonReader jsonReader)

Reads an instance of FeatureSubset from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FeatureSubset withFeatures(List<String> features)

Set the features property: [Required] The list of features to include.

Methods inherited from MonitoringFeatureFilterBase

Methods inherited from java.lang.Object

Constructor Details

FeatureSubset

public FeatureSubset()

Creates an instance of FeatureSubset class.

Method Details

features

public List<String> features()

Get the features property: [Required] The list of features to include.

Returns:

the features value.

filterType

public MonitoringFeatureFilterType filterType()

Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.

Overrides:

FeatureSubset.filterType()

Returns:

the filterType value.

fromJson

public static FeatureSubset fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FeatureSubset.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

FeatureSubset.validate()

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.

Applies to