Class AutoscaleNotification
- java.lang.Object
-
- com.microsoft.azure.management.monitor.AutoscaleNotification
-
public class AutoscaleNotification extends Object
Autoscale notification.
-
-
Constructor Summary
Constructors Constructor Description AutoscaleNotification()Creates an instance of AutoscaleNotification class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmailNotificationemail()Get the email notification.Stringoperation()Get the operation associated with the notification and its value must be "scale".List<WebhookNotification>webhooks()Get the collection of webhook notifications.AutoscaleNotificationwithEmail(EmailNotification email)Set the email notification.AutoscaleNotificationwithOperation(String operation)Set the operation associated with the notification and its value must be "scale".AutoscaleNotificationwithWebhooks(List<WebhookNotification> webhooks)Set the collection of webhook notifications.
-
-
-
Method Detail
-
operation
public String operation()
Get the operation associated with the notification and its value must be "scale".- Returns:
- the operation value
-
withOperation
public AutoscaleNotification withOperation(String operation)
Set the operation associated with the notification and its value must be "scale".- Parameters:
operation- the operation value to set- Returns:
- the AutoscaleNotification object itself.
-
email
public EmailNotification email()
Get the email notification.- Returns:
- the email value
-
withEmail
public AutoscaleNotification withEmail(EmailNotification email)
Set the email notification.- Parameters:
email- the email value to set- Returns:
- the AutoscaleNotification object itself.
-
webhooks
public List<WebhookNotification> webhooks()
Get the collection of webhook notifications.- Returns:
- the webhooks value
-
withWebhooks
public AutoscaleNotification withWebhooks(List<WebhookNotification> webhooks)
Set the collection of webhook notifications.- Parameters:
webhooks- the webhooks value to set- Returns:
- the AutoscaleNotification object itself.
-
-