Condition Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.Condition

Implements

public final class Condition
implements JsonSerializable<Condition>

Outstanding conditions that will need to be resolved.

Method Summary

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

Reads an instance of Condition from the JsonReader.

String message()

Get the message property: The issue requiring attention.

OffsetDateTime timestamp()

Get the timestamp property: The time when the condition was raised.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static Condition fromJson(JsonReader jsonReader)

Reads an instance of Condition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: The issue requiring attention.

Returns:

the message value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: The time when the condition was raised.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to