WebhookProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appcomplianceautomation.models.WebhookProperties

Implements

public final class WebhookProperties
implements JsonSerializable<WebhookProperties>

Webhook properties.

Constructor Summary

Constructor Description
WebhookProperties()

Creates an instance of WebhookProperties class.

Method Summary

Modifier and Type Method and Description
ContentType contentType()

Get the contentType property: content type.

DeliveryStatus deliveryStatus()

Get the deliveryStatus property: webhook deliveryStatus.

EnableSslVerification enableSslVerification()

Get the enableSslVerification property: whether to enable ssl verification.

List<NotificationEvent> events()

Get the events property: under which event notification should be sent.

static WebhookProperties fromJson(JsonReader jsonReader)

Reads an instance of WebhookProperties from the JsonReader.

String payloadUrl()

Get the payloadUrl property: webhook payload url.

ProvisioningState provisioningState()

Get the provisioningState property: Azure Resource Provisioning State.

SendAllEvents sendAllEvents()

Get the sendAllEvents property: whether to send notification under any event.

WebhookStatus status()

Get the status property: Webhook status.

String tenantId()

Get the tenantId property: Tenant id.

JsonWriter toJson(JsonWriter jsonWriter)
UpdateWebhookKey updateWebhookKey()

Get the updateWebhookKey property: whether to update webhookKey.

String webhookId()

Get the webhookId property: Webhook id in database.

String webhookKey()

Get the webhookKey property: webhook secret token.

WebhookKeyEnabled webhookKeyEnabled()

Get the webhookKeyEnabled property: whether webhookKey is enabled.

WebhookProperties withContentType(ContentType contentType)

Set the contentType property: content type.

WebhookProperties withEnableSslVerification(EnableSslVerification enableSslVerification)

Set the enableSslVerification property: whether to enable ssl verification.

WebhookProperties withEvents(List<NotificationEvent> events)

Set the events property: under which event notification should be sent.

WebhookProperties withPayloadUrl(String payloadUrl)

Set the payloadUrl property: webhook payload url.

WebhookProperties withSendAllEvents(SendAllEvents sendAllEvents)

Set the sendAllEvents property: whether to send notification under any event.

WebhookProperties withStatus(WebhookStatus status)

Set the status property: Webhook status.

WebhookProperties withUpdateWebhookKey(UpdateWebhookKey updateWebhookKey)

Set the updateWebhookKey property: whether to update webhookKey.

WebhookProperties withWebhookKey(String webhookKey)

Set the webhookKey property: webhook secret token.

Methods inherited from java.lang.Object

Constructor Details

WebhookProperties

public WebhookProperties()

Creates an instance of WebhookProperties class.

Method Details

contentType

public ContentType contentType()

Get the contentType property: content type.

Returns:

the contentType value.

deliveryStatus

public DeliveryStatus deliveryStatus()

Get the deliveryStatus property: webhook deliveryStatus.

Returns:

the deliveryStatus value.

enableSslVerification

public EnableSslVerification enableSslVerification()

Get the enableSslVerification property: whether to enable ssl verification.

Returns:

the enableSslVerification value.

events

public List<NotificationEvent> events()

Get the events property: under which event notification should be sent.

Returns:

the events value.

fromJson

public static WebhookProperties fromJson(JsonReader jsonReader)

Reads an instance of WebhookProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebhookProperties 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 WebhookProperties.

payloadUrl

public String payloadUrl()

Get the payloadUrl property: webhook payload url.

Returns:

the payloadUrl value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Azure Resource Provisioning State.

Returns:

the provisioningState value.

sendAllEvents

public SendAllEvents sendAllEvents()

Get the sendAllEvents property: whether to send notification under any event.

Returns:

the sendAllEvents value.

status

public WebhookStatus status()

Get the status property: Webhook status.

Returns:

the status value.

tenantId

public String tenantId()

Get the tenantId property: Tenant id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updateWebhookKey

public UpdateWebhookKey updateWebhookKey()

Get the updateWebhookKey property: whether to update webhookKey.

Returns:

the updateWebhookKey value.

webhookId

public String webhookId()

Get the webhookId property: Webhook id in database.

Returns:

the webhookId value.

webhookKey

public String webhookKey()

Get the webhookKey property: webhook secret token. If not set, this field value is null; otherwise, please set a string value.

Returns:

the webhookKey value.

webhookKeyEnabled

public WebhookKeyEnabled webhookKeyEnabled()

Get the webhookKeyEnabled property: whether webhookKey is enabled.

Returns:

the webhookKeyEnabled value.

withContentType

public WebhookProperties withContentType(ContentType contentType)

Set the contentType property: content type.

Parameters:

contentType - the contentType value to set.

Returns:

the WebhookProperties object itself.

withEnableSslVerification

public WebhookProperties withEnableSslVerification(EnableSslVerification enableSslVerification)

Set the enableSslVerification property: whether to enable ssl verification.

Parameters:

enableSslVerification - the enableSslVerification value to set.

Returns:

the WebhookProperties object itself.

withEvents

public WebhookProperties withEvents(List<NotificationEvent> events)

Set the events property: under which event notification should be sent.

Parameters:

events - the events value to set.

Returns:

the WebhookProperties object itself.

withPayloadUrl

public WebhookProperties withPayloadUrl(String payloadUrl)

Set the payloadUrl property: webhook payload url.

Parameters:

payloadUrl - the payloadUrl value to set.

Returns:

the WebhookProperties object itself.

withSendAllEvents

public WebhookProperties withSendAllEvents(SendAllEvents sendAllEvents)

Set the sendAllEvents property: whether to send notification under any event.

Parameters:

sendAllEvents - the sendAllEvents value to set.

Returns:

the WebhookProperties object itself.

withStatus

public WebhookProperties withStatus(WebhookStatus status)

Set the status property: Webhook status.

Parameters:

status - the status value to set.

Returns:

the WebhookProperties object itself.

withUpdateWebhookKey

public WebhookProperties withUpdateWebhookKey(UpdateWebhookKey updateWebhookKey)

Set the updateWebhookKey property: whether to update webhookKey.

Parameters:

updateWebhookKey - the updateWebhookKey value to set.

Returns:

the WebhookProperties object itself.

withWebhookKey

public WebhookProperties withWebhookKey(String webhookKey)

Set the webhookKey property: webhook secret token. If not set, this field value is null; otherwise, please set a string value.

Parameters:

webhookKey - the webhookKey value to set.

Returns:

the WebhookProperties object itself.

Applies to