Class Webhook
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.Webhook
-
public final class Webhook extends Object
Detail about the webhook object.
-
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
rotateWebhookSecret()
Get the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.void
validate()
Validates the instance.String
webhookId()
Get the webhookId property: Unique identifier for the webhook.String
webhookSecretUpdateTime()
Get the webhookSecretUpdateTime property: Time when the webhook secret was updated.String
webhookUrl()
Get the webhookUrl property: URL that gets invoked by the webhook.Webhook
withRotateWebhookSecret(Boolean rotateWebhookSecret)
Set the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.Webhook
withWebhookId(String webhookId)
Set the webhookId property: Unique identifier for the webhook.Webhook
withWebhookSecretUpdateTime(String webhookSecretUpdateTime)
Set the webhookSecretUpdateTime property: Time when the webhook secret was updated.Webhook
withWebhookUrl(String webhookUrl)
Set the webhookUrl property: URL that gets invoked by the webhook.
-
-
-
Method Detail
-
webhookId
public String webhookId()
Get the webhookId property: Unique identifier for the webhook.- Returns:
- the webhookId value.
-
withWebhookId
public Webhook withWebhookId(String webhookId)
Set the webhookId property: Unique identifier for the webhook.- Parameters:
webhookId
- the webhookId value to set.- Returns:
- the Webhook object itself.
-
webhookUrl
public String webhookUrl()
Get the webhookUrl property: URL that gets invoked by the webhook.- Returns:
- the webhookUrl value.
-
withWebhookUrl
public Webhook withWebhookUrl(String webhookUrl)
Set the webhookUrl property: URL that gets invoked by the webhook.- Parameters:
webhookUrl
- the webhookUrl value to set.- Returns:
- the Webhook object itself.
-
webhookSecretUpdateTime
public String webhookSecretUpdateTime()
Get the webhookSecretUpdateTime property: Time when the webhook secret was updated.- Returns:
- the webhookSecretUpdateTime value.
-
withWebhookSecretUpdateTime
public Webhook withWebhookSecretUpdateTime(String webhookSecretUpdateTime)
Set the webhookSecretUpdateTime property: Time when the webhook secret was updated.- Parameters:
webhookSecretUpdateTime
- the webhookSecretUpdateTime value to set.- Returns:
- the Webhook object itself.
-
rotateWebhookSecret
public Boolean rotateWebhookSecret()
Get the rotateWebhookSecret property: A flag to instruct the backend service to rotate webhook secret.- Returns:
- the rotateWebhookSecret value.
-
withRotateWebhookSecret
public Webhook withRotateWebhookSecret(Boolean rotateWebhookSecret)
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.
-
-