Class AlertPropertiesDetails

java.lang.Object
com.azure.resourcemanager.costmanagement.models.AlertPropertiesDetails

public final class AlertPropertiesDetails extends Object
Alert details.
  • Constructor Details

    • AlertPropertiesDetails

      public AlertPropertiesDetails()
      Creates an instance of AlertPropertiesDetails class.
  • Method Details

    • timeGrainType

      public AlertTimeGrainType timeGrainType()
      Get the timeGrainType property: Type of timegrain cadence.
      Returns:
      the timeGrainType value.
    • withTimeGrainType

      public AlertPropertiesDetails withTimeGrainType(AlertTimeGrainType timeGrainType)
      Set the timeGrainType property: Type of timegrain cadence.
      Parameters:
      timeGrainType - the timeGrainType value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • periodStartDate

      public String periodStartDate()
      Get the periodStartDate property: datetime of periodStartDate.
      Returns:
      the periodStartDate value.
    • withPeriodStartDate

      public AlertPropertiesDetails withPeriodStartDate(String periodStartDate)
      Set the periodStartDate property: datetime of periodStartDate.
      Parameters:
      periodStartDate - the periodStartDate value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • triggeredBy

      public String triggeredBy()
      Get the triggeredBy property: notificationId that triggered this alert.
      Returns:
      the triggeredBy value.
    • withTriggeredBy

      public AlertPropertiesDetails withTriggeredBy(String triggeredBy)
      Set the triggeredBy property: notificationId that triggered this alert.
      Parameters:
      triggeredBy - the triggeredBy value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • resourceGroupFilter

      public List<Object> resourceGroupFilter()
      Get the resourceGroupFilter property: array of resourceGroups to filter by.
      Returns:
      the resourceGroupFilter value.
    • withResourceGroupFilter

      public AlertPropertiesDetails withResourceGroupFilter(List<Object> resourceGroupFilter)
      Set the resourceGroupFilter property: array of resourceGroups to filter by.
      Parameters:
      resourceGroupFilter - the resourceGroupFilter value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • resourceFilter

      public List<Object> resourceFilter()
      Get the resourceFilter property: array of resources to filter by.
      Returns:
      the resourceFilter value.
    • withResourceFilter

      public AlertPropertiesDetails withResourceFilter(List<Object> resourceFilter)
      Set the resourceFilter property: array of resources to filter by.
      Parameters:
      resourceFilter - the resourceFilter value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • meterFilter

      public List<Object> meterFilter()
      Get the meterFilter property: array of meters to filter by.
      Returns:
      the meterFilter value.
    • withMeterFilter

      public AlertPropertiesDetails withMeterFilter(List<Object> meterFilter)
      Set the meterFilter property: array of meters to filter by.
      Parameters:
      meterFilter - the meterFilter value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • tagFilter

      public Object tagFilter()
      Get the tagFilter property: tags to filter by.
      Returns:
      the tagFilter value.
    • withTagFilter

      public AlertPropertiesDetails withTagFilter(Object tagFilter)
      Set the tagFilter property: tags to filter by.
      Parameters:
      tagFilter - the tagFilter value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • threshold

      public BigDecimal threshold()
      Get the threshold property: notification threshold percentage as a decimal which activated this alert.
      Returns:
      the threshold value.
    • withThreshold

      public AlertPropertiesDetails withThreshold(BigDecimal threshold)
      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

      public AlertOperator operator()
      Get the operator property: operator used to compare currentSpend with amount.
      Returns:
      the operator value.
    • withOperator

      public AlertPropertiesDetails withOperator(AlertOperator operator)
      Set the operator property: operator used to compare currentSpend with amount.
      Parameters:
      operator - the operator value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • amount

      public BigDecimal amount()
      Get the amount property: budget threshold amount.
      Returns:
      the amount value.
    • withAmount

      public AlertPropertiesDetails withAmount(BigDecimal amount)
      Set the amount property: budget threshold amount.
      Parameters:
      amount - the amount value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • unit

      public String unit()
      Get the unit property: unit of currency being used.
      Returns:
      the unit value.
    • withUnit

      public AlertPropertiesDetails withUnit(String unit)
      Set the unit property: unit of currency being used.
      Parameters:
      unit - the unit value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • currentSpend

      public BigDecimal currentSpend()
      Get the currentSpend property: current spend.
      Returns:
      the currentSpend value.
    • withCurrentSpend

      public AlertPropertiesDetails withCurrentSpend(BigDecimal currentSpend)
      Set the currentSpend property: current spend.
      Parameters:
      currentSpend - the currentSpend value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • contactEmails

      public List<String> contactEmails()
      Get the contactEmails property: list of emails to contact.
      Returns:
      the contactEmails value.
    • withContactEmails

      public AlertPropertiesDetails withContactEmails(List<String> contactEmails)
      Set the contactEmails property: list of emails to contact.
      Parameters:
      contactEmails - the contactEmails value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • contactGroups

      public List<String> contactGroups()
      Get the contactGroups property: list of action groups to broadcast to.
      Returns:
      the contactGroups value.
    • withContactGroups

      public AlertPropertiesDetails withContactGroups(List<String> contactGroups)
      Set the contactGroups property: list of action groups to broadcast to.
      Parameters:
      contactGroups - the contactGroups value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • contactRoles

      public List<String> contactRoles()
      Get the contactRoles property: list of contact roles.
      Returns:
      the contactRoles value.
    • withContactRoles

      public AlertPropertiesDetails withContactRoles(List<String> contactRoles)
      Set the contactRoles property: list of contact roles.
      Parameters:
      contactRoles - the contactRoles value to set.
      Returns:
      the AlertPropertiesDetails object itself.
    • overridingAlert

      public String overridingAlert()
      Get the overridingAlert property: overriding alert.
      Returns:
      the overridingAlert value.
    • withOverridingAlert

      public AlertPropertiesDetails withOverridingAlert(String overridingAlert)
      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.