Class CallbackConfigInner
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.
-
Method Summary
Modifier and TypeMethodDescriptionGet the customHeaders property: Custom headers that will be added to the webhook notifications.static CallbackConfigInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CallbackConfigInner from the JsonReader.Get the serviceUri property: The service URI for the webhook to post notifications.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
serviceUri
Get the serviceUri property: The service URI for the webhook to post notifications.- Returns:
- the serviceUri value.
-
customHeaders
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CallbackConfigInner>- Throws:
IOException
-
fromJson
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.
-