Delen via


SettingLabelSelector Class

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

public final class SettingLabelSelector

A class that contains the label selector options for a GET request to the service.

Constructor Summary

Constructor Description
SettingLabelSelector()

Creates a label selector that will populate responses with all of the getLabel().

Method Summary

Modifier and Type Method and Description
OffsetDateTime getAcceptDateTime()

Gets the date time for the request query.

List<SettingLabelFields> getFields()

Gets the fields on ConfigurationSnapshot to return from the GET request.

String getNameFilter()

Gets the labels used to filter settings based on their getLabel() in the service.

SettingLabelSelector setAcceptDatetime(OffsetDateTime datetime)

If set, then labels will be retrieved as they existed at the provided datetime.

SettingLabelSelector setFields(SettingLabelFields[] fields)

Sets fields that will be returned in the response corresponding to properties in ConfigurationSnapshot.

SettingLabelSelector setFields(List<SettingLabelFields> fields)

Sets fields that will be returned in the response corresponding to properties in ConfigurationSnapshot.

SettingLabelSelector setNameFilter(String nameFilter)

Sets the expression to filter getLabel() on for the request.

Methods inherited from java.lang.Object

Constructor Details

SettingLabelSelector

public SettingLabelSelector()

Creates a label selector that will populate responses with all of the getLabel().

Method Details

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.

getFields

public List 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.

getNameFilter

public String getNameFilter()

Gets the labels used to filter settings based on their getLabel() 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.

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.

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 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.

setNameFilter

public SettingLabelSelector setNameFilter(String nameFilter)

Sets the expression to filter getLabel() 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.

Applies to