AlertPropertiesInner Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.AlertPropertiesInner

Implements

public final class AlertPropertiesInner
implements JsonSerializable<AlertPropertiesInner>

Alert properties.

Constructor Summary

Constructor Description
AlertPropertiesInner()

Creates an instance of AlertPropertiesInner class.

Method Summary

Modifier and Type Method and Description
AlertConfigurationInner alertConfiguration()

Get the alertConfiguration property: The alert configuration.

AlertDefinitionInner alertDefinition()

Get the alertDefinition property: The alert definition.

List<AlertIncidentInner> alertIncidents()

Get the alertIncidents property: The alert incidents.

static AlertPropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of AlertPropertiesInner from the JsonReader.

Integer incidentCount()

Get the incidentCount property: The number of generated incidents of the alert.

Boolean isActive()

Get the isActive property: False by default; true if the alert is active.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date time when the alert configuration was updated or new incidents were generated.

OffsetDateTime lastScannedDateTime()

Get the lastScannedDateTime property: The date time when the alert was last scanned.

String scope()

Get the scope property: The alert scope.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlertPropertiesInner withIsActive(Boolean isActive)

Set the isActive property: False by default; true if the alert is active.

Methods inherited from java.lang.Object

Constructor Details

AlertPropertiesInner

public AlertPropertiesInner()

Creates an instance of AlertPropertiesInner class.

Method Details

alertConfiguration

public AlertConfigurationInner alertConfiguration()

Get the alertConfiguration property: The alert configuration.

Returns:

the alertConfiguration value.

alertDefinition

public AlertDefinitionInner alertDefinition()

Get the alertDefinition property: The alert definition.

Returns:

the alertDefinition value.

alertIncidents

public List<AlertIncidentInner> alertIncidents()

Get the alertIncidents property: The alert incidents.

Returns:

the alertIncidents value.

fromJson

public static AlertPropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of AlertPropertiesInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AlertPropertiesInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AlertPropertiesInner.

incidentCount

public Integer incidentCount()

Get the incidentCount property: The number of generated incidents of the alert.

Returns:

the incidentCount value.

isActive

public Boolean isActive()

Get the isActive property: False by default; true if the alert is active.

Returns:

the isActive value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date time when the alert configuration was updated or new incidents were generated.

Returns:

the lastModifiedDateTime value.

lastScannedDateTime

public OffsetDateTime lastScannedDateTime()

Get the lastScannedDateTime property: The date time when the alert was last scanned.

Returns:

the lastScannedDateTime value.

scope

public String scope()

Get the scope property: The alert scope.

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIsActive

public AlertPropertiesInner withIsActive(Boolean isActive)

Set the isActive property: False by default; true if the alert is active.

Parameters:

isActive - the isActive value to set.

Returns:

the AlertPropertiesInner object itself.

Applies to