Notification Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. Notification
- com.
Implements
public final class Notification
implements JsonSerializable<Notification>
The notification associated with a budget.
Constructor Summary
| Constructor | Description |
|---|---|
| Notification() |
Creates an instance of Notification class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
contactEmails()
Get the contact |
| List<String> |
contactGroups()
Get the contact |
| List<String> |
contactRoles()
Get the contact |
| boolean |
enabled()
Get the enabled property: The notification is enabled or not. |
| static Notification |
fromJson(JsonReader jsonReader)
Reads an instance of Notification from the Json |
|
Culture |
locale()
Get the locale property: Language in which the recipient will receive the notification. |
|
Operator |
operator()
Get the operator property: The comparison operator. |
|
Big |
threshold()
Get the threshold property: Threshold value associated with a notification. |
|
Threshold |
thresholdType()
Get the threshold |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Notification |
withContactEmails(List<String> contactEmails)
Set the contact |
| Notification |
withContactGroups(List<String> contactGroups)
Set the contact |
| Notification |
withContactRoles(List<String> contactRoles)
Set the contact |
| Notification |
withEnabled(boolean enabled)
Set the enabled property: The notification is enabled or not. |
| Notification |
withLocale(CultureCode locale)
Set the locale property: Language in which the recipient will receive the notification. |
| Notification |
withOperator(OperatorType operator)
Set the operator property: The comparison operator. |
| Notification |
withThreshold(BigDecimal threshold)
Set the threshold property: Threshold value associated with a notification. |
| Notification |
withThresholdType(ThresholdType thresholdType)
Set the threshold |
Methods inherited from java.lang.Object
Constructor Details
Notification
public Notification()
Creates an instance of Notification class.
Method Details
contactEmails
public List<String> contactEmails()
Get the contactEmails property: Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
Returns:
contactGroups
public List<String> contactGroups()
Get the contactGroups property: Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
Returns:
contactRoles
public List<String> contactRoles()
Get the contactRoles property: Contact roles to send the budget notification to when the threshold is exceeded.
Returns:
enabled
public boolean enabled()
Get the enabled property: The notification is enabled or not.
Returns:
fromJson
public static Notification fromJson(JsonReader jsonReader)
Reads an instance of Notification from the JsonReader.
Parameters:
Returns:
Throws:
locale
public CultureCode locale()
Get the locale property: Language in which the recipient will receive the notification.
Returns:
operator
public OperatorType operator()
Get the operator property: The comparison operator.
Returns:
threshold
public BigDecimal threshold()
Get the threshold property: Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
Returns:
thresholdType
public ThresholdType thresholdType()
Get the thresholdType property: The type of threshold.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContactEmails
public Notification withContactEmails(List<String> contactEmails)
Set the contactEmails property: Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
Parameters:
Returns:
withContactGroups
public Notification withContactGroups(List<String> contactGroups)
Set the contactGroups property: Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
Parameters:
Returns:
withContactRoles
public Notification withContactRoles(List<String> contactRoles)
Set the contactRoles property: Contact roles to send the budget notification to when the threshold is exceeded.
Parameters:
Returns:
withEnabled
public Notification withEnabled(boolean enabled)
Set the enabled property: The notification is enabled or not.
Parameters:
Returns:
withLocale
public Notification withLocale(CultureCode locale)
Set the locale property: Language in which the recipient will receive the notification.
Parameters:
Returns:
withOperator
public Notification withOperator(OperatorType operator)
Set the operator property: The comparison operator.
Parameters:
Returns:
withThreshold
public Notification withThreshold(BigDecimal threshold)
Set the threshold property: Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
Parameters:
Returns:
withThresholdType
public Notification withThresholdType(ThresholdType thresholdType)
Set the thresholdType property: The type of threshold.
Parameters:
Returns: