public 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 notification.
|
String |
operation()
Get the operation associated with the notification and its value must be "scale".
|
List<WebhookNotification> |
webhooks()
Get the collection of webhook notifications.
|
AutoscaleNotification |
withEmail(EmailNotification email)
Set the email notification.
|
AutoscaleNotification |
withOperation(String operation)
Set the operation associated with the notification and its value must be "scale".
|
AutoscaleNotification |
withWebhooks(List<WebhookNotification> webhooks)
Set the collection of webhook notifications.
|
public AutoscaleNotification()
public String operation()
public AutoscaleNotification withOperation(String operation)
operation
- the operation value to setpublic EmailNotification email()
public AutoscaleNotification withEmail(EmailNotification email)
email
- the email value to setpublic List<WebhookNotification> webhooks()
public AutoscaleNotification withWebhooks(List<WebhookNotification> webhooks)
webhooks
- the webhooks value to setCopyright © 2019. All rights reserved.