Class SettingLabelSelector
java.lang.Object
com.azure.data.appconfiguration.models.SettingLabelSelector
A class that contains the label selector options for a GET request to the service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a label selector that will populate responses with all of thelabels. -
Method Summary
Modifier and TypeMethodDescriptionGets the date time for the request query.Gets the fields onConfigurationSnapshotto return from the GET request.Gets the labels used to filter settings based on theirlabelin the service.setAcceptDatetime(OffsetDateTime datetime) If set, then labels will be retrieved as they existed at the provided datetime.setFields(SettingLabelFields... fields) Sets fields that will be returned in the response corresponding to properties inConfigurationSnapshot.setFields(List<SettingLabelFields> fields) Sets fields that will be returned in the response corresponding to properties inConfigurationSnapshot.setNameFilter(String nameFilter) Sets the expression to filterlabelson for the request.
-
Constructor Details
-
SettingLabelSelector
public SettingLabelSelector()Creates a label selector that will populate responses with all of thelabels.
-
-
Method Details
-
getNameFilter
Gets the labels used to filter settings based on theirlabelin 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
Sets the expression to filterlabelson 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
Gets the date time for the request query. When the query is performed, ifacceptDateTimeis set, the labels at that point in time is returned.- Returns:
- Gets the currently set datetime in
DateTimeFormatter.RFC_1123_DATE_TIMEformat.
-
setAcceptDatetime
If set, then labels will be retrieved as they existed at the provided datetime.- Parameters:
datetime- The value of the configuration setting at that givenOffsetDateTime.- Returns:
- The updated SettingLabelSelector object.
-
getFields
Gets the fields onConfigurationSnapshotto return from the GET request. If none are set, the service returns the snapshot with all of their fields populated.- Returns:
- The set of
ConfigurationSnapshotfields to return for a GET request.
-
setFields
Sets fields that will be returned in the response corresponding to properties inConfigurationSnapshot. 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
Sets fields that will be returned in the response corresponding to properties inConfigurationSnapshot. 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.
-