CallbackConfigInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.CallbackConfigInner

Implements

public final class CallbackConfigInner
implements JsonSerializable<CallbackConfigInner>

The configuration of service URI and custom headers for the webhook.

Constructor Summary

Constructor Description
CallbackConfigInner()

Creates an instance of CallbackConfigInner class.

Method Summary

Modifier and Type Method and Description
Map<String,String> customHeaders()

Get the customHeaders property: Custom headers that will be added to the webhook notifications.

static CallbackConfigInner fromJson(JsonReader jsonReader)

Reads an instance of CallbackConfigInner from the JsonReader.

String serviceUri()

Get the serviceUri property: The service URI for the webhook to post notifications.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CallbackConfigInner withCustomHeaders(Map<String,String> customHeaders)

Set the customHeaders property: Custom headers that will be added to the webhook notifications.

CallbackConfigInner withServiceUri(String serviceUri)

Set the serviceUri property: The service URI for the webhook to post notifications.

Methods inherited from java.lang.Object

Constructor Details

CallbackConfigInner

public CallbackConfigInner()

Creates an instance of CallbackConfigInner class.

Method Details

customHeaders

public Map customHeaders()

Get the customHeaders property: Custom headers that will be added to the webhook notifications.

Returns:

the customHeaders value.

fromJson

public static CallbackConfigInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

serviceUri

public String serviceUri()

Get the serviceUri property: The service URI for the webhook to post notifications.

Returns:

the serviceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomHeaders

public CallbackConfigInner withCustomHeaders(Map 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.

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.

Applies to