PhoneNumberIdentifierModel Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.PhoneNumberIdentifierModel

Implements

public final class PhoneNumberIdentifierModel
implements JsonSerializable<PhoneNumberIdentifierModel>

A phone number.

Constructor Summary

Constructor Description
PhoneNumberIdentifierModel()

Creates an instance of PhoneNumberIdentifierModel class.

Method Summary

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

Reads an instance of PhoneNumberIdentifierModel from the JsonReader.

String getValue()

Get the value property: The phone number in E.164 format.

PhoneNumberIdentifierModel setValue(String value)

Set the value property: The phone number in E.164 format.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

PhoneNumberIdentifierModel

public PhoneNumberIdentifierModel()

Creates an instance of PhoneNumberIdentifierModel class.

Method Details

fromJson

public static PhoneNumberIdentifierModel fromJson(JsonReader jsonReader)

Reads an instance of PhoneNumberIdentifierModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PhoneNumberIdentifierModel if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getValue

public String getValue()

Get the value property: The phone number in E.164 format.

Returns:

the value value.

setValue

public PhoneNumberIdentifierModel setValue(String value)

Set the value property: The phone number in E.164 format.

Parameters:

value - the value value to set.

Returns:

the PhoneNumberIdentifierModel object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest