java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.CallbackConfigInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<CallbackConfigInner>

public final class CallbackConfigInner extends Object implements com.azure.json.JsonSerializable<CallbackConfigInner>
The configuration of service URI and custom headers for the webhook.
  • Constructor Details

    • CallbackConfigInner

      public CallbackConfigInner()
      Creates an instance of CallbackConfigInner class.
  • Method Details

    • serviceUri

      public String serviceUri()
      Get the serviceUri property: The service URI for the webhook to post notifications.
      Returns:
      the serviceUri value.
    • withServiceUri

      public CallbackConfigInner withServiceUri(String serviceUri)
      Set the serviceUri property: The service URI for the webhook to post notifications.
      Parameters:
      serviceUri - the serviceUri value to set.
      Returns:
      the CallbackConfigInner object itself.
    • customHeaders

      public Map<String,String> customHeaders()
      Get the customHeaders property: Custom headers that will be added to the webhook notifications.
      Returns:
      the customHeaders value.
    • withCustomHeaders

      public CallbackConfigInner withCustomHeaders(Map<String,String> customHeaders)
      Set the customHeaders property: Custom headers that will be added to the webhook notifications.
      Parameters:
      customHeaders - the customHeaders value to set.
      Returns:
      the CallbackConfigInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static CallbackConfigInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CallbackConfigInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CallbackConfigInner 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 CallbackConfigInner.