AutoscaleNotification Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. AutoscaleNotification
- com.
Implements
public final class AutoscaleNotification
implements JsonSerializable<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. |
static
Autoscale |
fromJson(JsonReader jsonReader)
Reads an instance of Autoscale |
String |
operation()
Get the operation property: the operation associated with the notification and its value must be "scale". |
Json |
toJson(JsonWriter jsonWriter) |
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:
fromJson
public static AutoscaleNotification fromJson(JsonReader jsonReader)
Reads an instance of AutoscaleNotification from the JsonReader.
Parameters:
Returns:
Throws:
operation
public String operation()
Get the operation property: the operation associated with the notification and its value must be "scale".
Returns:
toJson
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