Comments Class

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

Implements

public final class Comments
implements JsonSerializable<Comments>

Change alert state reason.

Constructor Summary

Constructor Description
Comments()

Creates an instance of Comments class.

Method Summary

Modifier and Type Method and Description
String comments()

Get the comments property: The comments property.

static Comments fromJson(JsonReader jsonReader)

Reads an instance of Comments from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Comments withComments(String comments)

Set the comments property: The comments property.

Methods inherited from java.lang.Object

Constructor Details

Comments

public Comments()

Creates an instance of Comments class.

Method Details

comments

public String comments()

Get the comments property: The comments property.

Returns:

the comments value.

fromJson

public static Comments fromJson(JsonReader jsonReader)

Reads an instance of Comments from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withComments

public Comments withComments(String comments)

Set the comments property: The comments property.

Parameters:

comments - the comments value to set.

Returns:

the Comments object itself.

Applies to