ScopeElement Class

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

Implements

public final class ScopeElement
implements JsonSerializable<ScopeElement>

A more specific scope used to identify the alerts to suppress.

Constructor Summary

Constructor Description
ScopeElement()

Creates an instance of ScopeElement class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: A more specific scope used to identify the alerts to suppress.

String field()

Get the field property: The alert entity type to suppress by.

static ScopeElement fromJson(JsonReader jsonReader)

Reads an instance of ScopeElement from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScopeElement withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: A more specific scope used to identify the alerts to suppress.

ScopeElement withField(String field)

Set the field property: The alert entity type to suppress by.

Methods inherited from java.lang.Object

Constructor Details

ScopeElement

public ScopeElement()

Creates an instance of ScopeElement class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: A more specific scope used to identify the alerts to suppress.

Returns:

the additionalProperties value.

field

public String field()

Get the field property: The alert entity type to suppress by.

Returns:

the field value.

fromJson

public static ScopeElement fromJson(JsonReader jsonReader)

Reads an instance of ScopeElement from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScopeElement 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 ScopeElement.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public ScopeElement withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: A more specific scope used to identify the alerts to suppress.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ScopeElement object itself.

withField

public ScopeElement withField(String field)

Set the field property: The alert entity type to suppress by.

Parameters:

field - the field value to set.

Returns:

the ScopeElement object itself.

Applies to