java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.AlertProperties

public final class AlertProperties extends Object
The AlertProperties model.
  • Constructor Details

    • AlertProperties

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

    • definition

      public AlertPropertiesDefinition definition()
      Get the definition property: defines the type of alert.
      Returns:
      the definition value.
    • withDefinition

      public AlertProperties withDefinition(AlertPropertiesDefinition definition)
      Set the definition property: defines the type of alert.
      Parameters:
      definition - the definition value to set.
      Returns:
      the AlertProperties object itself.
    • description

      public String description()
      Get the description property: Alert description.
      Returns:
      the description value.
    • withDescription

      public AlertProperties withDescription(String description)
      Set the description property: Alert description.
      Parameters:
      description - the description value to set.
      Returns:
      the AlertProperties object itself.
    • source

      public AlertSource source()
      Get the source property: Source of alert.
      Returns:
      the source value.
    • withSource

      public AlertProperties withSource(AlertSource source)
      Set the source property: Source of alert.
      Parameters:
      source - the source value to set.
      Returns:
      the AlertProperties object itself.
    • details

      public AlertPropertiesDetails details()
      Get the details property: Alert details.
      Returns:
      the details value.
    • withDetails

      public AlertProperties withDetails(AlertPropertiesDetails details)
      Set the details property: Alert details.
      Parameters:
      details - the details value to set.
      Returns:
      the AlertProperties object itself.
    • costEntityId

      public String costEntityId()
      Get the costEntityId property: related budget.
      Returns:
      the costEntityId value.
    • withCostEntityId

      public AlertProperties withCostEntityId(String costEntityId)
      Set the costEntityId property: related budget.
      Parameters:
      costEntityId - the costEntityId value to set.
      Returns:
      the AlertProperties object itself.
    • status

      public AlertStatus status()
      Get the status property: alert status.
      Returns:
      the status value.
    • withStatus

      public AlertProperties withStatus(AlertStatus status)
      Set the status property: alert status.
      Parameters:
      status - the status value to set.
      Returns:
      the AlertProperties object itself.
    • creationTime

      public String creationTime()
      Get the creationTime property: dateTime in which alert was created.
      Returns:
      the creationTime value.
    • withCreationTime

      public AlertProperties withCreationTime(String creationTime)
      Set the creationTime property: dateTime in which alert was created.
      Parameters:
      creationTime - the creationTime value to set.
      Returns:
      the AlertProperties object itself.
    • closeTime

      public String closeTime()
      Get the closeTime property: dateTime in which alert was closed.
      Returns:
      the closeTime value.
    • withCloseTime

      public AlertProperties withCloseTime(String closeTime)
      Set the closeTime property: dateTime in which alert was closed.
      Parameters:
      closeTime - the closeTime value to set.
      Returns:
      the AlertProperties object itself.
    • modificationTime

      public String modificationTime()
      Get the modificationTime property: dateTime in which alert was last modified.
      Returns:
      the modificationTime value.
    • withModificationTime

      public AlertProperties withModificationTime(String modificationTime)
      Set the modificationTime property: dateTime in which alert was last modified.
      Parameters:
      modificationTime - the modificationTime value to set.
      Returns:
      the AlertProperties object itself.
    • statusModificationUsername

      public String statusModificationUsername()
      Get the statusModificationUsername property: The statusModificationUserName property.
      Returns:
      the statusModificationUsername value.
    • withStatusModificationUsername

      public AlertProperties withStatusModificationUsername(String statusModificationUsername)
      Set the statusModificationUsername property: The statusModificationUserName property.
      Parameters:
      statusModificationUsername - the statusModificationUsername value to set.
      Returns:
      the AlertProperties object itself.
    • statusModificationTime

      public String statusModificationTime()
      Get the statusModificationTime property: dateTime in which the alert status was last modified.
      Returns:
      the statusModificationTime value.
    • withStatusModificationTime

      public AlertProperties withStatusModificationTime(String statusModificationTime)
      Set the statusModificationTime property: dateTime in which the alert status was last modified.
      Parameters:
      statusModificationTime - the statusModificationTime value to set.
      Returns:
      the AlertProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.