Class AlertProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.AlertProperties
Alert properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the closeTime property: dateTime in which alert was closed.Get the costEntityId property: related budget.Get the creationTime property: dateTime in which alert was created.Get the definition property: defines the type of alert.Get the description property: Alert description.details()Get the details property: Alert details.Get the modificationTime property: dateTime in which alert was last modified.source()Get the source property: Source of alert.status()Get the status property: alert status.Get the statusModificationTime property: dateTime in which the alert status was last modified.Get the statusModificationUsername property: User who last modified the alert.voidvalidate()Validates the instance.withCloseTime(String closeTime) Set the closeTime property: dateTime in which alert was closed.withCostEntityId(String costEntityId) Set the costEntityId property: related budget.withCreationTime(String creationTime) Set the creationTime property: dateTime in which alert was created.withDefinition(AlertPropertiesDefinition definition) Set the definition property: defines the type of alert.withDescription(String description) Set the description property: Alert description.withDetails(AlertPropertiesDetails details) Set the details property: Alert details.withModificationTime(String modificationTime) Set the modificationTime property: dateTime in which alert was last modified.withSource(AlertSource source) Set the source property: Source of alert.withStatus(AlertStatus status) Set the status property: alert status.withStatusModificationTime(String statusModificationTime) Set the statusModificationTime property: dateTime in which the alert status was last modified.withStatusModificationUsername(String statusModificationUsername) Set the statusModificationUsername property: User who last modified the alert.
-
Constructor Details
-
AlertProperties
public AlertProperties()Creates an instance of AlertProperties class.
-
-
Method Details
-
definition
Get the definition property: defines the type of alert.- Returns:
- the definition value.
-
withDefinition
Set the definition property: defines the type of alert.- Parameters:
definition- the definition value to set.- Returns:
- the AlertProperties object itself.
-
description
Get the description property: Alert description.- Returns:
- the description value.
-
withDescription
Set the description property: Alert description.- Parameters:
description- the description value to set.- Returns:
- the AlertProperties object itself.
-
source
Get the source property: Source of alert.- Returns:
- the source value.
-
withSource
Set the source property: Source of alert.- Parameters:
source- the source value to set.- Returns:
- the AlertProperties object itself.
-
details
Get the details property: Alert details.- Returns:
- the details value.
-
withDetails
Set the details property: Alert details.- Parameters:
details- the details value to set.- Returns:
- the AlertProperties object itself.
-
costEntityId
Get the costEntityId property: related budget.- Returns:
- the costEntityId value.
-
withCostEntityId
Set the costEntityId property: related budget.- Parameters:
costEntityId- the costEntityId value to set.- Returns:
- the AlertProperties object itself.
-
status
Get the status property: alert status.- Returns:
- the status value.
-
withStatus
Set the status property: alert status.- Parameters:
status- the status value to set.- Returns:
- the AlertProperties object itself.
-
creationTime
Get the creationTime property: dateTime in which alert was created.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: dateTime in which alert was created.- Parameters:
creationTime- the creationTime value to set.- Returns:
- the AlertProperties object itself.
-
closeTime
Get the closeTime property: dateTime in which alert was closed.- Returns:
- the closeTime value.
-
withCloseTime
Set the closeTime property: dateTime in which alert was closed.- Parameters:
closeTime- the closeTime value to set.- Returns:
- the AlertProperties object itself.
-
modificationTime
Get the modificationTime property: dateTime in which alert was last modified.- Returns:
- the modificationTime value.
-
withModificationTime
Set the modificationTime property: dateTime in which alert was last modified.- Parameters:
modificationTime- the modificationTime value to set.- Returns:
- the AlertProperties object itself.
-
statusModificationUsername
Get the statusModificationUsername property: User who last modified the alert.- Returns:
- the statusModificationUsername value.
-
withStatusModificationUsername
Set the statusModificationUsername property: User who last modified the alert.- Parameters:
statusModificationUsername- the statusModificationUsername value to set.- Returns:
- the AlertProperties object itself.
-
statusModificationTime
Get the statusModificationTime property: dateTime in which the alert status was last modified.- Returns:
- the statusModificationTime value.
-
withStatusModificationTime
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.
-