public final class AutoscaleNotification extends Object
| Constructor and Description |
|---|
AutoscaleNotification()
Creates an instance of AutoscaleNotification class.
|
| Modifier and Type | Method and Description |
|---|---|
EmailNotification |
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<WebhookNotification> |
webhooks()
Get the webhooks property: the collection of webhook notifications.
|
AutoscaleNotification |
withEmail(EmailNotification email)
Set the email property: the email notification.
|
AutoscaleNotification |
withOperation(String operation)
Set the operation property: the operation associated with the notification and its value must be "scale".
|
AutoscaleNotification |
withWebhooks(List<WebhookNotification> webhooks)
Set the webhooks property: the collection of webhook notifications.
|
public AutoscaleNotification()
public String operation()
public AutoscaleNotification withOperation(String operation)
operation - the operation value to set.public EmailNotification email()
public AutoscaleNotification withEmail(EmailNotification email)
email - the email value to set.public List<WebhookNotification> webhooks()
public AutoscaleNotification withWebhooks(List<WebhookNotification> webhooks)
webhooks - the webhooks value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.