WebhookNotification Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.WebhookNotification

Implements

public final class WebhookNotification
implements JsonSerializable<WebhookNotification>

Webhook notification of an autoscale event.

Constructor Summary

Constructor Description
WebhookNotification()

Creates an instance of WebhookNotification class.

Method Summary

Modifier and Type Method and Description
static WebhookNotification fromJson(JsonReader jsonReader)

Reads an instance of WebhookNotification from the JsonReader.

Map<String,String> properties()

Get the properties property: a property bag of settings.

String serviceUri()

Get the serviceUri property: the service address to receive the notification.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebhookNotification withProperties(Map<String,String> properties)

Set the properties property: a property bag of settings.

WebhookNotification withServiceUri(String serviceUri)

Set the serviceUri property: the service address to receive the notification.

Methods inherited from java.lang.Object

Constructor Details

WebhookNotification

public WebhookNotification()

Creates an instance of WebhookNotification class.

Method Details

fromJson

public static WebhookNotification fromJson(JsonReader jsonReader)

Reads an instance of WebhookNotification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebhookNotification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the WebhookNotification.

properties

public Map properties()

Get the properties property: a property bag of settings. This value can be empty.

Returns:

the properties value.

serviceUri

public String serviceUri()

Get the serviceUri property: the service address to receive the notification.

Returns:

the serviceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProperties

public WebhookNotification withProperties(Map properties)

Set the properties property: a property bag of settings. This value can be empty.

Parameters:

properties - the properties value to set.

Returns:

the WebhookNotification object itself.

withServiceUri

public WebhookNotification withServiceUri(String serviceUri)

Set the serviceUri property: the service address to receive the notification.

Parameters:

serviceUri - the serviceUri value to set.

Returns:

the WebhookNotification object itself.

Applies to