VerificationStatusRecord Class

  • java.lang.Object
    • com.azure.resourcemanager.communication.models.VerificationStatusRecord

Implements

public final class VerificationStatusRecord
implements JsonSerializable<VerificationStatusRecord>

A class that represents a VerificationStatus record.

Constructor Summary

Constructor Description
VerificationStatusRecord()

Creates an instance of VerificationStatusRecord class.

Method Summary

Modifier and Type Method and Description
String errorCode()

Get the errorCode property: Error code.

static VerificationStatusRecord fromJson(JsonReader jsonReader)

Reads an instance of VerificationStatusRecord from the JsonReader.

VerificationStatus status()

Get the status property: Status of the verification operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VerificationStatusRecord

public VerificationStatusRecord()

Creates an instance of VerificationStatusRecord class.

Method Details

errorCode

public String errorCode()

Get the errorCode property: Error code. This property will only be present if the status is UnableToVerify.

Returns:

the errorCode value.

fromJson

public static VerificationStatusRecord fromJson(JsonReader jsonReader)

Reads an instance of VerificationStatusRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public VerificationStatus status()

Get the status property: Status of the verification operation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to