Class AlertPropertiesDetails
java.lang.Object
com.azure.resourcemanager.costmanagement.models.AlertPropertiesDetails
Alert details.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AlertPropertiesDetails class. -
Method Summary
Modifier and TypeMethodDescriptionamount()
Get the amount property: budget threshold amount.Get the contactEmails property: list of emails to contact.Get the contactGroups property: list of action groups to broadcast to.Get the contactRoles property: list of contact roles.Get the currentSpend property: current spend.Get the meterFilter property: array of meters to filter by.operator()
Get the operator property: operator used to compare currentSpend with amount.Get the overridingAlert property: overriding alert.Get the periodStartDate property: datetime of periodStartDate.Get the resourceFilter property: array of resources to filter by.Get the resourceGroupFilter property: array of resourceGroups to filter by.Get the tagFilter property: tags to filter by.Get the threshold property: notification threshold percentage as a decimal which activated this alert.Get the timeGrainType property: Type of timegrain cadence.Get the triggeredBy property: notificationId that triggered this alert.unit()
Get the unit property: unit of currency being used.void
validate()
Validates the instance.withAmount
(BigDecimal amount) Set the amount property: budget threshold amount.withContactEmails
(List<String> contactEmails) Set the contactEmails property: list of emails to contact.withContactGroups
(List<String> contactGroups) Set the contactGroups property: list of action groups to broadcast to.withContactRoles
(List<String> contactRoles) Set the contactRoles property: list of contact roles.withCurrentSpend
(BigDecimal currentSpend) Set the currentSpend property: current spend.withMeterFilter
(List<Object> meterFilter) Set the meterFilter property: array of meters to filter by.withOperator
(AlertOperator operator) Set the operator property: operator used to compare currentSpend with amount.withOverridingAlert
(String overridingAlert) Set the overridingAlert property: overriding alert.withPeriodStartDate
(String periodStartDate) Set the periodStartDate property: datetime of periodStartDate.withResourceFilter
(List<Object> resourceFilter) Set the resourceFilter property: array of resources to filter by.withResourceGroupFilter
(List<Object> resourceGroupFilter) Set the resourceGroupFilter property: array of resourceGroups to filter by.withTagFilter
(Object tagFilter) Set the tagFilter property: tags to filter by.withThreshold
(BigDecimal threshold) Set the threshold property: notification threshold percentage as a decimal which activated this alert.withTimeGrainType
(AlertTimeGrainType timeGrainType) Set the timeGrainType property: Type of timegrain cadence.withTriggeredBy
(String triggeredBy) Set the triggeredBy property: notificationId that triggered this alert.Set the unit property: unit of currency being used.
-
Constructor Details
-
AlertPropertiesDetails
public AlertPropertiesDetails()Creates an instance of AlertPropertiesDetails class.
-
-
Method Details
-
timeGrainType
Get the timeGrainType property: Type of timegrain cadence.- Returns:
- the timeGrainType value.
-
withTimeGrainType
Set the timeGrainType property: Type of timegrain cadence.- Parameters:
timeGrainType
- the timeGrainType value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
periodStartDate
Get the periodStartDate property: datetime of periodStartDate.- Returns:
- the periodStartDate value.
-
withPeriodStartDate
Set the periodStartDate property: datetime of periodStartDate.- Parameters:
periodStartDate
- the periodStartDate value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
triggeredBy
Get the triggeredBy property: notificationId that triggered this alert.- Returns:
- the triggeredBy value.
-
withTriggeredBy
Set the triggeredBy property: notificationId that triggered this alert.- Parameters:
triggeredBy
- the triggeredBy value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
resourceGroupFilter
Get the resourceGroupFilter property: array of resourceGroups to filter by.- Returns:
- the resourceGroupFilter value.
-
withResourceGroupFilter
Set the resourceGroupFilter property: array of resourceGroups to filter by.- Parameters:
resourceGroupFilter
- the resourceGroupFilter value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
resourceFilter
Get the resourceFilter property: array of resources to filter by.- Returns:
- the resourceFilter value.
-
withResourceFilter
Set the resourceFilter property: array of resources to filter by.- Parameters:
resourceFilter
- the resourceFilter value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
meterFilter
Get the meterFilter property: array of meters to filter by.- Returns:
- the meterFilter value.
-
withMeterFilter
Set the meterFilter property: array of meters to filter by.- Parameters:
meterFilter
- the meterFilter value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
tagFilter
Get the tagFilter property: tags to filter by.- Returns:
- the tagFilter value.
-
withTagFilter
Set the tagFilter property: tags to filter by.- Parameters:
tagFilter
- the tagFilter value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
threshold
Get the threshold property: notification threshold percentage as a decimal which activated this alert.- Returns:
- the threshold value.
-
withThreshold
Set the threshold property: notification threshold percentage as a decimal which activated this alert.- Parameters:
threshold
- the threshold value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
operator
Get the operator property: operator used to compare currentSpend with amount.- Returns:
- the operator value.
-
withOperator
Set the operator property: operator used to compare currentSpend with amount.- Parameters:
operator
- the operator value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
amount
Get the amount property: budget threshold amount.- Returns:
- the amount value.
-
withAmount
Set the amount property: budget threshold amount.- Parameters:
amount
- the amount value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
unit
Get the unit property: unit of currency being used.- Returns:
- the unit value.
-
withUnit
Set the unit property: unit of currency being used.- Parameters:
unit
- the unit value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
currentSpend
Get the currentSpend property: current spend.- Returns:
- the currentSpend value.
-
withCurrentSpend
Set the currentSpend property: current spend.- Parameters:
currentSpend
- the currentSpend value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
contactEmails
Get the contactEmails property: list of emails to contact.- Returns:
- the contactEmails value.
-
withContactEmails
Set the contactEmails property: list of emails to contact.- Parameters:
contactEmails
- the contactEmails value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
contactGroups
Get the contactGroups property: list of action groups to broadcast to.- Returns:
- the contactGroups value.
-
withContactGroups
Set the contactGroups property: list of action groups to broadcast to.- Parameters:
contactGroups
- the contactGroups value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
contactRoles
Get the contactRoles property: list of contact roles.- Returns:
- the contactRoles value.
-
withContactRoles
Set the contactRoles property: list of contact roles.- Parameters:
contactRoles
- the contactRoles value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
overridingAlert
Get the overridingAlert property: overriding alert.- Returns:
- the overridingAlert value.
-
withOverridingAlert
Set the overridingAlert property: overriding alert.- Parameters:
overridingAlert
- the overridingAlert value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-