RuleArmTemplate Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.RuleArmTemplate

Implements

public final class RuleArmTemplate
implements JsonSerializable<RuleArmTemplate>

A complete ARM template to deploy the alert rules.

Constructor Summary

Constructor Description
RuleArmTemplate()

Creates an instance of RuleArmTemplate class.

Method Summary

Modifier and Type Method and Description
String contentVersion()

Get the contentVersion property: A 4 number format for the version number of this template file.

static RuleArmTemplate fromJson(JsonReader jsonReader)

Reads an instance of RuleArmTemplate from the JsonReader.

Object parameters()

Get the parameters property: Input parameter definitions.

List<Object> resources()

Get the resources property: Alert rule resource definitions.

String schema()

Get the schema property: JSON schema reference.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Object variables()

Get the variables property: Variable definitions.

RuleArmTemplate withContentVersion(String contentVersion)

Set the contentVersion property: A 4 number format for the version number of this template file.

RuleArmTemplate withParameters(Object parameters)

Set the parameters property: Input parameter definitions.

RuleArmTemplate withResources(List<Object> resources)

Set the resources property: Alert rule resource definitions.

RuleArmTemplate withSchema(String schema)

Set the schema property: JSON schema reference.

RuleArmTemplate withVariables(Object variables)

Set the variables property: Variable definitions.

Methods inherited from java.lang.Object

Constructor Details

RuleArmTemplate

public RuleArmTemplate()

Creates an instance of RuleArmTemplate class.

Method Details

contentVersion

public String contentVersion()

Get the contentVersion property: A 4 number format for the version number of this template file. For example, 1.0.0.0.

Returns:

the contentVersion value.

fromJson

public static RuleArmTemplate fromJson(JsonReader jsonReader)

Reads an instance of RuleArmTemplate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

parameters

public Object parameters()

Get the parameters property: Input parameter definitions.

Returns:

the parameters value.

resources

public List<Object> resources()

Get the resources property: Alert rule resource definitions.

Returns:

the resources value.

schema

public String schema()

Get the schema property: JSON schema reference.

Returns:

the schema value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

variables

public Object variables()

Get the variables property: Variable definitions.

Returns:

the variables value.

withContentVersion

public RuleArmTemplate withContentVersion(String contentVersion)

Set the contentVersion property: A 4 number format for the version number of this template file. For example, 1.0.0.0.

Parameters:

contentVersion - the contentVersion value to set.

Returns:

the RuleArmTemplate object itself.

withParameters

public RuleArmTemplate withParameters(Object parameters)

Set the parameters property: Input parameter definitions.

Parameters:

parameters - the parameters value to set.

Returns:

the RuleArmTemplate object itself.

withResources

public RuleArmTemplate withResources(List<Object> resources)

Set the resources property: Alert rule resource definitions.

Parameters:

resources - the resources value to set.

Returns:

the RuleArmTemplate object itself.

withSchema

public RuleArmTemplate withSchema(String schema)

Set the schema property: JSON schema reference.

Parameters:

schema - the schema value to set.

Returns:

the RuleArmTemplate object itself.

withVariables

public RuleArmTemplate withVariables(Object variables)

Set the variables property: Variable definitions.

Parameters:

variables - the variables value to set.

Returns:

the RuleArmTemplate object itself.

Applies to