SuppressionAlertsScope Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.SuppressionAlertsScope

Implements

public final class SuppressionAlertsScope
implements JsonSerializable<SuppressionAlertsScope>

The SuppressionAlertsScope model.

Constructor Summary

Constructor Description
SuppressionAlertsScope()

Creates an instance of SuppressionAlertsScope class.

Method Summary

Modifier and Type Method and Description
List<ScopeElement> allOf()

Get the allOf property: All the conditions inside need to be true in order to suppress the alert.

static SuppressionAlertsScope fromJson(JsonReader jsonReader)

Reads an instance of SuppressionAlertsScope from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SuppressionAlertsScope withAllOf(List<ScopeElement> allOf)

Set the allOf property: All the conditions inside need to be true in order to suppress the alert.

Methods inherited from java.lang.Object

Constructor Details

SuppressionAlertsScope

public SuppressionAlertsScope()

Creates an instance of SuppressionAlertsScope class.

Method Details

allOf

public List<ScopeElement> allOf()

Get the allOf property: All the conditions inside need to be true in order to suppress the alert.

Returns:

the allOf value.

fromJson

public static SuppressionAlertsScope fromJson(JsonReader jsonReader)

Reads an instance of SuppressionAlertsScope from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllOf

public SuppressionAlertsScope withAllOf(List<ScopeElement> allOf)

Set the allOf property: All the conditions inside need to be true in order to suppress the alert.

Parameters:

allOf - the allOf value to set.

Returns:

the SuppressionAlertsScope object itself.

Applies to