PrometheusRuleGroupResourcePatch Class

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

Implements

public final class PrometheusRuleGroupResourcePatch
implements JsonSerializable<PrometheusRuleGroupResourcePatch>

The Prometheus rule group resource for patch operations.

Constructor Summary

Constructor Description
PrometheusRuleGroupResourcePatch()

Creates an instance of PrometheusRuleGroupResourcePatch class.

Method Summary

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

Reads an instance of PrometheusRuleGroupResourcePatch from the JsonReader.

PrometheusRuleGroupResourcePatchProperties properties()

Get the properties property: The properties property.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrometheusRuleGroupResourcePatch withProperties(PrometheusRuleGroupResourcePatchProperties properties)

Set the properties property: The properties property.

PrometheusRuleGroupResourcePatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

PrometheusRuleGroupResourcePatch

public PrometheusRuleGroupResourcePatch()

Creates an instance of PrometheusRuleGroupResourcePatch class.

Method Details

fromJson

public static PrometheusRuleGroupResourcePatch fromJson(JsonReader jsonReader)

Reads an instance of PrometheusRuleGroupResourcePatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public PrometheusRuleGroupResourcePatchProperties properties()

Get the properties property: The properties property.

Returns:

the properties value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProperties

public PrometheusRuleGroupResourcePatch withProperties(PrometheusRuleGroupResourcePatchProperties properties)

Set the properties property: The properties property.

Parameters:

properties - the properties value to set.

Returns:

the PrometheusRuleGroupResourcePatch object itself.

withTags

public PrometheusRuleGroupResourcePatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the PrometheusRuleGroupResourcePatch object itself.

Applies to