AlertProcessingRuleInner Class

public final class AlertProcessingRuleInner
extends ManagedResource

Alert processing rule object containing target scopes, conditions and scheduling logic.

Constructor Summary

Constructor Description
AlertProcessingRuleInner()

Creates an instance of AlertProcessingRuleInner class.

Method Summary

Modifier and Type Method and Description
static AlertProcessingRuleInner fromJson(JsonReader jsonReader)

Reads an instance of AlertProcessingRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

AlertProcessingRuleProperties properties()

Get the properties property: Alert processing rule properties.

SystemData systemData()

Get the systemData property: Alert processing rule system data.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AlertProcessingRuleInner withLocation(String location)

Set the location property: Resource location.

AlertProcessingRuleInner withProperties(AlertProcessingRuleProperties properties)

Set the properties property: Alert processing rule properties.

AlertProcessingRuleInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ManagedResource

Methods inherited from java.lang.Object

Constructor Details

AlertProcessingRuleInner

public AlertProcessingRuleInner()

Creates an instance of AlertProcessingRuleInner class.

Method Details

fromJson

public static AlertProcessingRuleInner fromJson(JsonReader jsonReader)

Reads an instance of AlertProcessingRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AlertProcessingRuleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AlertProcessingRuleInner.name()

Returns:

the name value.

properties

public AlertProcessingRuleProperties properties()

Get the properties property: Alert processing rule properties.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: Alert processing rule system data.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AlertProcessingRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AlertProcessingRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

AlertProcessingRuleInner.validate()

withLocation

public AlertProcessingRuleInner withLocation(String location)

Set the location property: Resource location.

Overrides:

AlertProcessingRuleInner.withLocation(String location)

Parameters:

location

withProperties

public AlertProcessingRuleInner withProperties(AlertProcessingRuleProperties properties)

Set the properties property: Alert processing rule properties.

Parameters:

properties - the properties value to set.

Returns:

the AlertProcessingRuleInner object itself.

withTags

public AlertProcessingRuleInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Overrides:

AlertProcessingRuleInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to