Class AcsRouterWorkerSelector

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsRouterWorkerSelector
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsRouterWorkerSelector>

public final class AcsRouterWorkerSelector extends Object implements com.azure.json.JsonSerializable<AcsRouterWorkerSelector>
Router Job Worker Selector.
  • Method Details

    • getKey

      public String getKey()
      Get the key property: Router Job Worker Selector Key.
      Returns:
      the key value.
    • getLabelOperator

      public AcsRouterLabelOperator getLabelOperator()
      Get the labelOperator property: Router Job Worker Selector Label Operator.
      Returns:
      the labelOperator value.
    • getLabelValue

      public com.azure.core.util.BinaryData getLabelValue()
      Get the labelValue property: Router Job Worker Selector Value.
      Returns:
      the labelValue value.
    • getTimeToLive

      public Duration getTimeToLive()
      Get the timeToLive property: Router Job Worker Selector Time to Live in Seconds.
      Returns:
      the timeToLive value.
    • getState

      public AcsRouterWorkerSelectorState getState()
      Get the state property: Router Job Worker Selector State.
      Returns:
      the state value.
    • getExpirationTime

      public OffsetDateTime getExpirationTime()
      Get the expirationTime property: Router Job Worker Selector Expiration Time.
      Returns:
      the expirationTime value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsRouterWorkerSelector>
      Throws:
      IOException
    • fromJson

      public static AcsRouterWorkerSelector fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcsRouterWorkerSelector from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcsRouterWorkerSelector if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AcsRouterWorkerSelector.