public class SettingSelector extends Object
labelFilter
will filter ConfigurationSettings
that
match any label name in conjunction with the keys that are passed in to the service request.
acceptDateTime
will return the representation of matching ConfigurationSetting
at that given OffsetDateTime
.
fields
will populate only those ConfigurationSetting
fields in the response.
By default, all of the fields are returned.
ConfigurationAsyncClient
Constructor and Description |
---|
SettingSelector()
Creates a setting selector that will populate responses with all of the
ConfigurationSetting's properties and select all keys . |
Modifier and Type | Method and Description |
---|---|
String |
getAcceptDateTime()
Gets the date time for the request query.
|
SettingFields[] |
getFields()
Gets the fields on
ConfigurationSetting to return from the GET request. |
String |
getKeyFilter()
Gets the expressions to filter
keys on for the request. |
String |
getLabelFilter()
Gets the labels used to filter settings based on their
label in the
service. |
SettingSelector |
setAcceptDatetime(OffsetDateTime datetime)
If set, then configuration setting values will be retrieved as they existed at the provided datetime.
|
SettingSelector |
setFields(SettingFields... fields)
Sets fields that will be returned in the response corresponding to properties in
ConfigurationSetting . |
SettingSelector |
setKeyFilter(String keyFilter)
Sets the expressions to filter
keys on for the request. |
SettingSelector |
setLabelFilter(String labelFilter)
Sets the expression to filter
labels on for the request. |
String |
toString() |
public SettingSelector()
ConfigurationSetting's
properties and select all keys
.public String getKeyFilter()
keys
on for the request.
See Filtering for more information about these supported filters.
public SettingSelector setKeyFilter(String keyFilter)
keys
on for the request.
See Filtering for more information about these supported filters.
keyFilter
- The expressions to filter ConfigurationSetting keys on.public String getLabelFilter()
label
in the
service.
See Filtering for more information about these supported filters.
public SettingSelector setLabelFilter(String labelFilter)
labels
on for the request.
See Filtering for more information about these supported filters.
labelFilter
- The expressions to filter ConfigurationSetting labels on.public String getAcceptDateTime()
acceptDateTime
is set, the
configuration setting value
at that point in time is returned. Otherwise,
the current value is returned.DateTimeFormatter.RFC_1123_DATE_TIME
format.public SettingSelector setAcceptDatetime(OffsetDateTime datetime)
datetime
- The value of the configuration setting at that given OffsetDateTime
.public SettingFields[] getFields()
ConfigurationSetting
to return from the GET request. If none are set, the service
returns the ConfigurationSettings with all of their fields populated.ConfigurationSetting
fields to return for a GET request.public SettingSelector setFields(SettingFields... fields)
ConfigurationSetting
. If
none are set, the service returns ConfigurationSettings with all of their fields populated.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.Copyright © 2021 Microsoft Corporation. All rights reserved.