Class Webhook
java.lang.Object
com.azure.resourcemanager.securityinsights.models.Webhook
Detail about the webhook object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.void
validate()
Validates the instance.Get the webhookId property: Unique identifier for the webhook.Get the webhookSecretUpdateTime property: Time when the webhook secret was updated.Get the webhookUrl property: URL that gets invoked by the webhook.withRotateWebhookSecret
(Boolean rotateWebhookSecret) Set the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.withWebhookId
(String webhookId) Set the webhookId property: Unique identifier for the webhook.withWebhookSecretUpdateTime
(String webhookSecretUpdateTime) Set the webhookSecretUpdateTime property: Time when the webhook secret was updated.withWebhookUrl
(String webhookUrl) Set the webhookUrl property: URL that gets invoked by the webhook.
-
Constructor Details
-
Webhook
public Webhook()
-
-
Method Details
-
webhookId
Get the webhookId property: Unique identifier for the webhook.- Returns:
- the webhookId value.
-
withWebhookId
Set the webhookId property: Unique identifier for the webhook.- Parameters:
webhookId
- the webhookId value to set.- Returns:
- the Webhook object itself.
-
webhookUrl
Get the webhookUrl property: URL that gets invoked by the webhook.- Returns:
- the webhookUrl value.
-
withWebhookUrl
Set the webhookUrl property: URL that gets invoked by the webhook.- Parameters:
webhookUrl
- the webhookUrl value to set.- Returns:
- the Webhook object itself.
-
webhookSecretUpdateTime
Get the webhookSecretUpdateTime property: Time when the webhook secret was updated.- Returns:
- the webhookSecretUpdateTime value.
-
withWebhookSecretUpdateTime
Set the webhookSecretUpdateTime property: Time when the webhook secret was updated.- Parameters:
webhookSecretUpdateTime
- the webhookSecretUpdateTime value to set.- Returns:
- the Webhook object itself.
-
rotateWebhookSecret
Get the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.- Returns:
- the rotateWebhookSecret value.
-
withRotateWebhookSecret
Set the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.- Parameters:
rotateWebhookSecret
- the rotateWebhookSecret value to set.- Returns:
- the Webhook object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-