PatchObject Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. PatchObject
- com.
Implements
public final class PatchObject
implements JsonSerializable<PatchObject>
Data contract for patch.
Constructor Summary
| Constructor | Description |
|---|---|
| PatchObject() |
Creates an instance of Patch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
enabled()
Get the enabled property: Indicates if the given alert processing rule is enabled or disabled. |
|
static
Patch |
fromJson(JsonReader jsonReader)
Reads an instance of Patch |
| Map<String,String> |
tags()
Get the tags property: Tags to be updated. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Patch |
withEnabled(Boolean enabled)
Set the enabled property: Indicates if the given alert processing rule is enabled or disabled. |
|
Patch |
withTags(Map<String,String> tags)
Set the tags property: Tags to be updated. |
Methods inherited from java.lang.Object
Constructor Details
PatchObject
public PatchObject()
Creates an instance of PatchObject class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.
Returns:
fromJson
public static PatchObject fromJson(JsonReader jsonReader)
Reads an instance of PatchObject from the JsonReader.
Parameters:
Returns:
Throws:
tags
public Map<String,String> tags()
Get the tags property: Tags to be updated.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public PatchObject withEnabled(Boolean enabled)
Set the enabled property: Indicates if the given alert processing rule is enabled or disabled.
Parameters:
Returns:
withTags
public PatchObject withTags(Map<String,String> tags)
Set the tags property: Tags to be updated.
Parameters:
Returns: