Notification Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. Notification
- com.
public final class Notification
The notification associated with a budget.
Constructor Summary
Constructor | Description | |
---|---|---|
Notification() |
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. |
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 |
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()
Method Details
contactEmails
public List
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
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
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:
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:
validate
public void validate()
Validates the instance.
withContactEmails
public Notification withContactEmails(List
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
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
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for