Class AlertInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.costmanagement.models.CostManagementProxyResource
com.azure.resourcemanager.costmanagement.fluent.models.AlertInner
An individual alert.
-
Constructor Summary
-
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.void
validate()
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.Set the etag property: eTag of the resource.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.Methods inherited from class com.azure.resourcemanager.costmanagement.models.CostManagementProxyResource
etag
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
AlertInner
public AlertInner()Creates an instance of AlertInner class.
-
-
Method Details
-
withEtag
Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.- Overrides:
withEtag
in classCostManagementProxyResource
- Parameters:
etag
- the etag value to set.- Returns:
- the CostManagementProxyResource object itself.
-
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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner 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 AlertInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCostManagementProxyResource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-