DimensionFilter Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.DimensionFilter

Implements

public final class DimensionFilter
implements JsonSerializable<DimensionFilter>

Dimension name and values to filter.

Constructor Summary

Constructor Description
DimensionFilter()

Creates an instance of DimensionFilter class.

Method Summary

Modifier and Type Method and Description
static DimensionFilter fromJson(JsonReader jsonReader)

Reads an instance of DimensionFilter from the JsonReader.

String getName()

Get the name property: The dimension name.

List<String> getValues()

Get the values property: The dimension values.

DimensionFilter setName(String name)

Set the name property: The dimension name.

DimensionFilter setValues(List<String> values)

Set the values property: The dimension values.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

DimensionFilter

public DimensionFilter()

Creates an instance of DimensionFilter class.

Method Details

fromJson

public static DimensionFilter fromJson(JsonReader jsonReader)

Reads an instance of DimensionFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DimensionFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DimensionFilter.

getName

public String getName()

Get the name property: The dimension name.

Returns:

the name value.

getValues

public List<String> getValues()

Get the values property: The dimension values. Maximum values can be 20.

Returns:

the values value.

setName

public DimensionFilter setName(String name)

Set the name property: The dimension name.

Parameters:

name - the name value to set.

Returns:

the DimensionFilter object itself.

setValues

public DimensionFilter setValues(List<String> values)

Set the values property: The dimension values. Maximum values can be 20.

Parameters:

values - the values value to set.

Returns:

the DimensionFilter object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to