WebhookProperties Class
- java.
lang. Object - com.
azure. resourcemanager. appcomplianceautomation. models. WebhookProperties
- com.
Implements
public final class WebhookProperties
implements JsonSerializable<WebhookProperties>
Webhook properties.
Constructor Summary
| Constructor | Description |
|---|---|
| WebhookProperties() |
Creates an instance of Webhook |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Content |
contentType()
Get the content |
|
Delivery |
deliveryStatus()
Get the delivery |
|
Enable |
enableSslVerification()
Get the enable |
|
List<Notification |
events()
Get the events property: under which event notification should be sent. |
|
static
Webhook |
fromJson(JsonReader jsonReader)
Reads an instance of Webhook |
| String |
payloadUrl()
Get the payload |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Send |
sendAllEvents()
Get the send |
|
Webhook |
status()
Get the status property: Webhook status. |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Update |
updateWebhookKey()
Get the update |
| String |
webhookId()
Get the webhook |
| String |
webhookKey()
Get the webhook |
|
Webhook |
webhookKeyEnabled()
Get the webhook |
|
Webhook |
withContentType(ContentType contentType)
Set the content |
|
Webhook |
withEnableSslVerification(EnableSslVerification enableSslVerification)
Set the enable |
|
Webhook |
withEvents(List<NotificationEvent> events)
Set the events property: under which event notification should be sent. |
|
Webhook |
withPayloadUrl(String payloadUrl)
Set the payload |
|
Webhook |
withSendAllEvents(SendAllEvents sendAllEvents)
Set the send |
|
Webhook |
withStatus(WebhookStatus status)
Set the status property: Webhook status. |
|
Webhook |
withUpdateWebhookKey(UpdateWebhookKey updateWebhookKey)
Set the update |
|
Webhook |
withWebhookKey(String webhookKey)
Set the webhook |
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:
deliveryStatus
public DeliveryStatus deliveryStatus()
Get the deliveryStatus property: webhook deliveryStatus.
Returns:
enableSslVerification
public EnableSslVerification enableSslVerification()
Get the enableSslVerification property: whether to enable ssl verification.
Returns:
events
public List<NotificationEvent> events()
Get the events property: under which event notification should be sent.
Returns:
fromJson
public static WebhookProperties fromJson(JsonReader jsonReader)
Reads an instance of WebhookProperties from the JsonReader.
Parameters:
Returns:
Throws:
payloadUrl
public String payloadUrl()
Get the payloadUrl property: webhook payload url.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Azure Resource Provisioning State.
Returns:
sendAllEvents
public SendAllEvents sendAllEvents()
Get the sendAllEvents property: whether to send notification under any event.
Returns:
status
public WebhookStatus status()
Get the status property: Webhook status.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Tenant id.
Returns:
toJson
updateWebhookKey
public UpdateWebhookKey updateWebhookKey()
Get the updateWebhookKey property: whether to update webhookKey.
Returns:
webhookId
public String webhookId()
Get the webhookId property: Webhook id in database.
Returns:
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:
webhookKeyEnabled
public WebhookKeyEnabled webhookKeyEnabled()
Get the webhookKeyEnabled property: whether webhookKey is enabled.
Returns:
withContentType
public WebhookProperties withContentType(ContentType contentType)
Set the contentType property: content type.
Parameters:
Returns:
withEnableSslVerification
public WebhookProperties withEnableSslVerification(EnableSslVerification enableSslVerification)
Set the enableSslVerification property: whether to enable ssl verification.
Parameters:
Returns:
withEvents
public WebhookProperties withEvents(List<NotificationEvent> events)
Set the events property: under which event notification should be sent.
Parameters:
Returns:
withPayloadUrl
public WebhookProperties withPayloadUrl(String payloadUrl)
Set the payloadUrl property: webhook payload url.
Parameters:
Returns:
withSendAllEvents
public WebhookProperties withSendAllEvents(SendAllEvents sendAllEvents)
Set the sendAllEvents property: whether to send notification under any event.
Parameters:
Returns:
withStatus
public WebhookProperties withStatus(WebhookStatus status)
Set the status property: Webhook status.
Parameters:
Returns:
withUpdateWebhookKey
public WebhookProperties withUpdateWebhookKey(UpdateWebhookKey updateWebhookKey)
Set the updateWebhookKey property: whether to update webhookKey.
Parameters:
Returns:
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:
Returns: