PrometheusRuleGroupResourceCollection Class

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

Implements

public final class PrometheusRuleGroupResourceCollection
implements JsonSerializable<PrometheusRuleGroupResourceCollection>

Represents a collection of alert rule resources.

Constructor Summary

Constructor Description
PrometheusRuleGroupResourceCollection()

Creates an instance of PrometheusRuleGroupResourceCollection class.

Method Summary

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

Reads an instance of PrometheusRuleGroupResourceCollection from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<PrometheusRuleGroupResourceInner> value()

Get the value property: the values for the alert rule resources.

PrometheusRuleGroupResourceCollection withValue(List<PrometheusRuleGroupResourceInner> value)

Set the value property: the values for the alert rule resources.

Methods inherited from java.lang.Object

Constructor Details

PrometheusRuleGroupResourceCollection

public PrometheusRuleGroupResourceCollection()

Creates an instance of PrometheusRuleGroupResourceCollection class.

Method Details

fromJson

public static PrometheusRuleGroupResourceCollection fromJson(JsonReader jsonReader)

Reads an instance of PrometheusRuleGroupResourceCollection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<PrometheusRuleGroupResourceInner> value()

Get the value property: the values for the alert rule resources.

Returns:

the value value.

withValue

public PrometheusRuleGroupResourceCollection withValue(List<PrometheusRuleGroupResourceInner> value)

Set the value property: the values for the alert rule resources.

Parameters:

value - the value value to set.

Returns:

the PrometheusRuleGroupResourceCollection object itself.

Applies to