AutoscaleNotification Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. AutoscaleNotification
- com.
public final class AutoscaleNotification
Autoscale notification.
Constructor Summary
Constructor | Description |
---|---|
AutoscaleNotification() |
Creates an instance of Autoscale |
Method Summary
Modifier and Type | Method and Description |
---|---|
Email |
email()
Get the email property: the email notification. |
String |
operation()
Get the operation property: the operation associated with the notification and its value must be "scale". |
void |
validate()
Validates the instance. |
List<Webhook |
webhooks()
Get the webhooks property: the collection of webhook notifications. |
Autoscale |
withEmail(EmailNotification email)
Set the email property: the email notification. |
Autoscale |
withOperation(String operation)
Set the operation property: the operation associated with the notification and its value must be "scale". |
Autoscale |
withWebhooks(List<WebhookNotification> webhooks)
Set the webhooks property: the collection of webhook notifications. |
Methods inherited from java.lang.Object
Constructor Details
AutoscaleNotification
public AutoscaleNotification()
Creates an instance of AutoscaleNotification class.
Method Details
public EmailNotification email()
Get the email property: the email notification.
Returns:
operation
public String operation()
Get the operation property: the operation associated with the notification and its value must be "scale".
Returns:
validate
public void validate()
Validates the instance.
webhooks
public List
Get the webhooks property: the collection of webhook notifications.
Returns:
withEmail
public AutoscaleNotification withEmail(EmailNotification email)
Set the email property: the email notification.
Parameters:
Returns:
withOperation
public AutoscaleNotification withOperation(String operation)
Set the operation property: the operation associated with the notification and its value must be "scale".
Parameters:
Returns:
withWebhooks
public AutoscaleNotification withWebhooks(List
Set the webhooks property: the collection of webhook notifications.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for