SettingSelector Class
- java.
lang. Object - com.
azure. data. appconfiguration. models. SettingSelector
- com.
public class SettingSelector
A set of options for selecting configuration settings from App Configuration service.
- Providing getLabelFilter() will filter ConfigurationSetting that match any label name in conjunction with the keys that are passed in to the service request.
- Providing getAcceptDateTime() will return the representation of matching ConfigurationSetting at that given OffsetDateTime.
- Providing getFields() will populate only those ConfigurationSetting fields in the response. By default, all of the fields are returned.
Constructor Summary
Constructor | Description |
---|---|
SettingSelector() |
Creates a setting selector that will populate responses with all of the ConfigurationSetting properties and select all getKey(). |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getAcceptDateTime()
Gets the date time for the request query. |
Setting |
getFields()
Gets the fields on ConfigurationSetting to return from the GET request. |
String |
getKeyFilter()
Gets the expressions to filter getKey() on for the request. |
String |
getLabelFilter()
Gets the labels used to filter settings based on their getLabel() in the service. |
List<Match |
getMatchConditions()
Get the match conditions |
List<String> |
getTagsFilter()
Gets the tags used to filter settings based on their getTags() in the service. |
Setting |
setAcceptDatetime(OffsetDateTime datetime)
If set, then configuration setting values will be retrieved as they existed at the provided datetime. |
Setting |
setFields(SettingFields[] fields)
Sets fields that will be returned in the response corresponding to properties in ConfigurationSetting. |
Setting |
setKeyFilter(String keyFilter)
Sets the expressions to filter getKey() on for the request. |
Setting |
setLabelFilter(String labelFilter)
Sets the expression to filter getLabel() on for the request. |
Setting |
setMatchConditions(List<MatchConditions> matchConditions)
Set the match conditions |
Setting |
setTagsFilter(List<String> tagsFilter)
Sets the expression to filter getTags() on for the request. |
String | toString() |
Methods inherited from java.lang.Object
Constructor Details
SettingSelector
public SettingSelector()
Creates a setting selector that will populate responses with all of the ConfigurationSetting properties and select all getKey().
Method Details
getAcceptDateTime
public String getAcceptDateTime()
Gets the date time for the request query. When the query is performed, if acceptDateTime
is set, the getValue() at that point in time is returned. Otherwise, the current value is returned.
Returns:
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:
getKeyFilter
getLabelFilter
public String getLabelFilter()
Gets the labels used to filter settings based on their getLabel() in the service.
See Filtering for more information about these supported filters.
Returns:
getMatchConditions
public List
Get the match conditions
Returns:
getTagsFilter
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:
Returns:
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:
Returns:
setKeyFilter
public SettingSelector setKeyFilter(String keyFilter)
Sets the expressions to filter getKey() on for the request.
See Filtering for more information about these supported filters.
Parameters:
Returns:
setLabelFilter
public SettingSelector setLabelFilter(String labelFilter)
Sets the expression to filter getLabel() on for the request.
See Filtering for more information about these supported filters.
Parameters:
Returns:
setMatchConditions
public SettingSelector setMatchConditions(List
Set the match conditions
Parameters:
Returns:
setTagsFilter
public SettingSelector setTagsFilter(List
Sets the expression to filter getTags() on for the request.
See Filtering for more information about these supported filters.
Parameters:
Returns:
toString
public String toString()
Overrides:
SettingSelector.toString()Applies to
Azure SDK for Java