PrometheusRuleGroupResourcePatchProperties Class

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

Implements

public final class PrometheusRuleGroupResourcePatchProperties
implements JsonSerializable<PrometheusRuleGroupResourcePatchProperties>

The PrometheusRuleGroupResourcePatchProperties model.

Constructor Summary

Constructor Description
PrometheusRuleGroupResourcePatchProperties()

Creates an instance of PrometheusRuleGroupResourcePatchProperties class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: the flag that indicates whether the Prometheus rule group is enabled.

static PrometheusRuleGroupResourcePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of PrometheusRuleGroupResourcePatchProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrometheusRuleGroupResourcePatchProperties withEnabled(Boolean enabled)

Set the enabled property: the flag that indicates whether the Prometheus rule group is enabled.

Methods inherited from java.lang.Object

Constructor Details

PrometheusRuleGroupResourcePatchProperties

public PrometheusRuleGroupResourcePatchProperties()

Creates an instance of PrometheusRuleGroupResourcePatchProperties class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: the flag that indicates whether the Prometheus rule group is enabled.

Returns:

the enabled value.

fromJson

public static PrometheusRuleGroupResourcePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of PrometheusRuleGroupResourcePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public PrometheusRuleGroupResourcePatchProperties withEnabled(Boolean enabled)

Set the enabled property: the flag that indicates whether the Prometheus rule group is enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the PrometheusRuleGroupResourcePatchProperties object itself.

Applies to