Class SnapshotSelector

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

public final class SnapshotSelector extends Object
Snapshot selector, the optional bag
  • Constructor Details

    • SnapshotSelector

      public SnapshotSelector()
      Creates an instance of SnapshotSelector.
  • Method Details

    • getNameFilter

      public String getNameFilter()
      Gets the snapshot name filter
      Returns:
      The snapshot name filter.
    • setNameFilter

      public SnapshotSelector setNameFilter(String nameFilter)
      Sets the snapshot name filter.
      Parameters:
      nameFilter - the snapshot name filter.
      Returns:
      The updated SnapshotSelector object
    • getStatus

      public List<ConfigurationSnapshotStatus> getStatus()
      Gets the snapshot status
      Returns:
      The snapshot status.
    • setStatus

      public SnapshotSelector setStatus(ConfigurationSnapshotStatus... status)
      Sets the snapshot status. Used to filter returned snapshots by their status properties.
      Parameters:
      status - the snapshot status.
      Returns:
      The updated SnapshotSelector object
    • setStatus

      Sets the snapshot status. Used to filter returned snapshots by their status properties.
      Parameters:
      status - the snapshot status.
      Returns:
      The updated SnapshotSelector object
    • getFields

      public List<SnapshotFields> 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 SnapshotSelector setFields(SnapshotFields... 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 SnapshotSelector object.
    • setFields

      public SnapshotSelector setFields(List<SnapshotFields> 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 SnapshotSelector object.
    • toString

      public String toString()
      Overrides:
      toString in class Object