Class SettingLabelSelector

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

public final class SettingLabelSelector extends Object
A class that contains the label selector options for a GET request to the service.
  • Constructor Details

    • SettingLabelSelector

      public SettingLabelSelector()
      Creates a label selector that will populate responses with all of the labels.
  • Method Details

    • getNameFilter

      public String getNameFilter()
      Gets the labels used to filter settings based on their label in the service. A filter for the name of the returned labels.

      See Filtering for more information about these supported filters.

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

      public SettingLabelSelector setNameFilter(String nameFilter)
      Sets the expression to filter labels on for the request.

      See Filtering for more information about these supported filters.

      Parameters:
      nameFilter - The expressions to filter ConfigurationSetting labels on.
      Returns:
      the updated SettingLabelSelector object.
    • getAcceptDateTime

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

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

      public List<SettingLabelFields> getFields()
      Gets the fields on ConfigurationSnapshot to return from the GET request. If none are set, the service returns the snapshot with all of their fields populated.
      Returns:
      The set of ConfigurationSnapshot fields to return for a GET request.
    • setFields

      public SettingLabelSelector setFields(SettingLabelFields... fields)
      Sets fields that will be returned in the response corresponding to properties in ConfigurationSnapshot. If none are set, the service returns snapshot 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 snapshot with a default set of properties.
      Returns:
      The updated SettingLabelSelector object.
    • setFields

      public SettingLabelSelector setFields(List<SettingLabelFields> fields)
      Sets fields that will be returned in the response corresponding to properties in ConfigurationSnapshot. If none are set, the service returns snapshot 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 snapshot with a default set of properties.
      Returns:
      The updated SettingLabelSelector object.