RuleArmTemplate Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. RuleArmTemplate
- com.
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 Rule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
contentVersion()
Get the content |
|
static
Rule |
fromJson(JsonReader jsonReader)
Reads an instance of Rule |
| 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Object |
variables()
Get the variables property: Variable definitions. |
|
Rule |
withContentVersion(String contentVersion)
Set the content |
|
Rule |
withParameters(Object parameters)
Set the parameters property: Input parameter definitions. |
|
Rule |
withResources(List<Object> resources)
Set the resources property: Alert rule resource definitions. |
|
Rule |
withSchema(String schema)
Set the schema property: JSON schema reference. |
|
Rule |
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:
fromJson
public static RuleArmTemplate fromJson(JsonReader jsonReader)
Reads an instance of RuleArmTemplate from the JsonReader.
Parameters:
Returns:
Throws:
parameters
public Object parameters()
Get the parameters property: Input parameter definitions.
Returns:
resources
public List<Object> resources()
Get the resources property: Alert rule resource definitions.
Returns:
schema
public String schema()
Get the schema property: JSON schema reference.
Returns:
toJson
validate
public void validate()
Validates the instance.
variables
public Object variables()
Get the variables property: Variable definitions.
Returns:
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:
Returns:
withParameters
public RuleArmTemplate withParameters(Object parameters)
Set the parameters property: Input parameter definitions.
Parameters:
Returns:
withResources
public RuleArmTemplate withResources(List<Object> resources)
Set the resources property: Alert rule resource definitions.
Parameters:
Returns:
withSchema
public RuleArmTemplate withSchema(String schema)
Set the schema property: JSON schema reference.
Parameters:
Returns:
withVariables
public RuleArmTemplate withVariables(Object variables)
Set the variables property: Variable definitions.
Parameters:
Returns: