Class AlertPropertiesDetails
java.lang.Object
com.azure.resourcemanager.costmanagement.models.AlertPropertiesDetails
Alert details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AlertPropertiesDetails class. -
Method Summary
Modifier and TypeMethodDescriptionamount()Get the amount property: budget threshold amount.Get the companyName property: company name.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 departmentName property: department name.Get the enrollmentEndDate property: datetime of enrollmentEndDate.Get the enrollmentNumber property: enrollment number.Get the enrollmentStartDate property: datetime of enrollmentStartDate.Get the invoicingThreshold property: invoicing threshold.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.voidvalidate()Validates the instance.withAmount(BigDecimal amount) Set the amount property: budget threshold amount.withCompanyName(String companyName) Set the companyName property: company name.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.withDepartmentName(String departmentName) Set the departmentName property: department name.withEnrollmentEndDate(String enrollmentEndDate) Set the enrollmentEndDate property: datetime of enrollmentEndDate.withEnrollmentNumber(String enrollmentNumber) Set the enrollmentNumber property: enrollment number.withEnrollmentStartDate(String enrollmentStartDate) Set the enrollmentStartDate property: datetime of enrollmentStartDate.withInvoicingThreshold(BigDecimal invoicingThreshold) Set the invoicingThreshold property: invoicing threshold.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.
-
departmentName
Get the departmentName property: department name.- Returns:
- the departmentName value.
-
withDepartmentName
Set the departmentName property: department name.- Parameters:
departmentName- the departmentName value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
companyName
Get the companyName property: company name.- Returns:
- the companyName value.
-
withCompanyName
Set the companyName property: company name.- Parameters:
companyName- the companyName value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
enrollmentNumber
Get the enrollmentNumber property: enrollment number.- Returns:
- the enrollmentNumber value.
-
withEnrollmentNumber
Set the enrollmentNumber property: enrollment number.- Parameters:
enrollmentNumber- the enrollmentNumber value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
enrollmentStartDate
Get the enrollmentStartDate property: datetime of enrollmentStartDate.- Returns:
- the enrollmentStartDate value.
-
withEnrollmentStartDate
Set the enrollmentStartDate property: datetime of enrollmentStartDate.- Parameters:
enrollmentStartDate- the enrollmentStartDate value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
enrollmentEndDate
Get the enrollmentEndDate property: datetime of enrollmentEndDate.- Returns:
- the enrollmentEndDate value.
-
withEnrollmentEndDate
Set the enrollmentEndDate property: datetime of enrollmentEndDate.- Parameters:
enrollmentEndDate- the enrollmentEndDate value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
invoicingThreshold
Get the invoicingThreshold property: invoicing threshold.- Returns:
- the invoicingThreshold value.
-
withInvoicingThreshold
Set the invoicingThreshold property: invoicing threshold.- Parameters:
invoicingThreshold- the invoicingThreshold value to set.- Returns:
- the AlertPropertiesDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-