Class SettingSelector

java.lang.Object
com.azure.data.appconfiguration.models.SettingSelector

public class SettingSelector extends Object
A set of options for selecting configuration settings from App Configuration service.
See Also:
  • Constructor Details

    • SettingSelector

      public SettingSelector()
      Creates a setting selector that will populate responses with all of the ConfigurationSetting's properties and select all keys.
  • Method Details

    • getKeyFilter

      public String getKeyFilter()
      Gets the expressions to filter keys on for the request.

      See Filtering for more information about these supported filters.

      Returns:
      The expressions to filter ConfigurationSetting keys on.
    • setKeyFilter

      public SettingSelector setKeyFilter(String keyFilter)
      Sets the expressions to filter keys on for the request.

      See Filtering for more information about these supported filters.

      Parameters:
      keyFilter - The expressions to filter ConfigurationSetting keys on.
      Returns:
      The updated SettingSelector object
    • getLabelFilter

      public String getLabelFilter()
      Gets the labels used to filter settings based on their label in the service.

      See Filtering for more information about these supported filters.

      Returns:
      labels The labels used to filter GET requests from the service.
    • setLabelFilter

      public SettingSelector setLabelFilter(String labelFilter)
      Sets the expression to filter labels on for the request.

      See Filtering for more information about these supported filters.

      Parameters:
      labelFilter - The expressions to filter ConfigurationSetting labels on.
      Returns:
      SettingSelector The updated SettingSelector object.
    • getAcceptDateTime

      public String getAcceptDateTime()
      Gets the date time for the request query. When the query is performed, if acceptDateTime is set, the configuration setting value at that point in time is returned. Otherwise, the current value is returned.
      Returns:
      Gets the currently set datetime in DateTimeFormatter.RFC_1123_DATE_TIME format.
    • setAcceptDatetime

      public SettingSelector setAcceptDatetime(OffsetDateTime datetime)
      If set, then configuration setting values will be retrieved as they existed at the provided datetime. Otherwise, the current values are returned.
      Parameters:
      datetime - The value of the configuration setting at that given OffsetDateTime.
      Returns:
      The updated SettingSelector object.
    • getFields

      public SettingFields[] getFields()
      Gets the fields on ConfigurationSetting to return from the GET request. If none are set, the service returns the ConfigurationSettings with all of their fields populated.
      Returns:
      The set of ConfigurationSetting fields to return for a GET request.
    • setFields

      public SettingSelector setFields(SettingFields... fields)
      Sets fields that will be returned in the response corresponding to properties in ConfigurationSetting. If none are set, the service returns ConfigurationSettings with all of their fields populated.
      Parameters:
      fields - The fields to select for the query response. If none are set, the service will return the ConfigurationSettings with a default set of properties.
      Returns:
      The updated SettingSelector object.
    • toString

      public String toString()
      Overrides:
      toString in class Object