AlertRuleRecommendationResourceInner Class

public final class AlertRuleRecommendationResourceInner
extends ProxyResource

A single alert rule recommendation resource.

Constructor Summary

Constructor Description
AlertRuleRecommendationResourceInner()

Creates an instance of AlertRuleRecommendationResourceInner class.

Method Summary

Modifier and Type Method and Description
String alertRuleType()

Get the alertRuleType property: The recommendation alert rule type.

Map<String,String> displayInformation()

Get the displayInformation property: A dictionary that provides the display information for an alert rule recommendation.

static AlertRuleRecommendationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of AlertRuleRecommendationResourceInner 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.

RuleArmTemplate ruleArmTemplate()

Get the ruleArmTemplate property: A complete ARM template to deploy the alert rules.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AlertRuleRecommendationResourceInner withAlertRuleType(String alertRuleType)

Set the alertRuleType property: The recommendation alert rule type.

AlertRuleRecommendationResourceInner withDisplayInformation(Map<String,String> displayInformation)

Set the displayInformation property: A dictionary that provides the display information for an alert rule recommendation.

AlertRuleRecommendationResourceInner withRuleArmTemplate(RuleArmTemplate ruleArmTemplate)

Set the ruleArmTemplate property: A complete ARM template to deploy the alert rules.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AlertRuleRecommendationResourceInner

public AlertRuleRecommendationResourceInner()

Creates an instance of AlertRuleRecommendationResourceInner class.

Method Details

alertRuleType

public String alertRuleType()

Get the alertRuleType property: The recommendation alert rule type.

Returns:

the alertRuleType value.

displayInformation

public Map<String,String> displayInformation()

Get the displayInformation property: A dictionary that provides the display information for an alert rule recommendation.

Returns:

the displayInformation value.

fromJson

public static AlertRuleRecommendationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of AlertRuleRecommendationResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AlertRuleRecommendationResourceInner 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:

AlertRuleRecommendationResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AlertRuleRecommendationResourceInner.name()

Returns:

the name value.

ruleArmTemplate

public RuleArmTemplate ruleArmTemplate()

Get the ruleArmTemplate property: A complete ARM template to deploy the alert rules.

Returns:

the ruleArmTemplate value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AlertRuleRecommendationResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AlertRuleRecommendationResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAlertRuleType

public AlertRuleRecommendationResourceInner withAlertRuleType(String alertRuleType)

Set the alertRuleType property: The recommendation alert rule type.

Parameters:

alertRuleType - the alertRuleType value to set.

Returns:

the AlertRuleRecommendationResourceInner object itself.

withDisplayInformation

public AlertRuleRecommendationResourceInner withDisplayInformation(Map<String,String> displayInformation)

Set the displayInformation property: A dictionary that provides the display information for an alert rule recommendation.

Parameters:

displayInformation - the displayInformation value to set.

Returns:

the AlertRuleRecommendationResourceInner object itself.

withRuleArmTemplate

public AlertRuleRecommendationResourceInner withRuleArmTemplate(RuleArmTemplate ruleArmTemplate)

Set the ruleArmTemplate property: A complete ARM template to deploy the alert rules.

Parameters:

ruleArmTemplate - the ruleArmTemplate value to set.

Returns:

the AlertRuleRecommendationResourceInner object itself.

Applies to