Partager via


ConfigurationSettingsFilter Class

  • java.lang.Object
    • com.azure.data.appconfiguration.models.ConfigurationSettingsFilter

Implements

public final class ConfigurationSettingsFilter
implements JsonSerializable<ConfigurationSettingsFilter>

Enables filtering of key-values. Syntax reference: https://aka.ms/azconfig/docs/restapisnapshots.

Constructor Summary

Constructor Description
ConfigurationSettingsFilter(String key)

Creates an instance of ConfigurationSettingsFilter class.

Method Summary

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

Reads an instance of ConfigurationSettingsFilter from the JsonReader.

String getKey()

Get the key property: Filters ConfigurationSetting by their key field.

String getLabel()

Get the label property: Filters ConfigurationSetting by their label field.

List<String> getTags()

Get the tags property: Filters key-values by their tags field.

ConfigurationSettingsFilter setLabel(String label)

Set the label property: Filters ConfigurationSetting by their label field.

ConfigurationSettingsFilter setTags(List<String> tags)

Set the tags property: Filters key-values by their tags field.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ConfigurationSettingsFilter

public ConfigurationSettingsFilter(String key)

Creates an instance of ConfigurationSettingsFilter class.

Parameters:

key - the key value to set.

Method Details

fromJson

public static ConfigurationSettingsFilter fromJson(JsonReader jsonReader)

Reads an instance of ConfigurationSettingsFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConfigurationSettingsFilter 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.

getKey

public String getKey()

Get the key property: Filters ConfigurationSetting by their key field.

Returns:

the key value.

getLabel

public String getLabel()

Get the label property: Filters ConfigurationSetting by their label field.

Returns:

the label value.

getTags

public List getTags()

Get the tags property: Filters key-values by their tags field.

Returns:

the tags value.

setLabel

public ConfigurationSettingsFilter setLabel(String label)

Set the label property: Filters ConfigurationSetting by their label field.

Parameters:

label - the label value to set.

Returns:

the ConfigurationSettingsFilter object itself.

setTags

public ConfigurationSettingsFilter setTags(List tags)

Set the tags property: Filters key-values by their tags field.

Parameters:

tags - the tags value to set.

Returns:

the ConfigurationSettingsFilter object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to