你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphPhone Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPhone

Implements

public final class MicrosoftGraphPhone
implements JsonSerializable<MicrosoftGraphPhone>

phone.

Constructor Summary

Constructor Description
MicrosoftGraphPhone()

Creates an instance of MicrosoftGraphPhone class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: phone.

static MicrosoftGraphPhone fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPhone from the JsonReader.

String language()

Get the language property: The language property.

String number()

Get the number property: The phone number.

String region()

Get the region property: The region property.

JsonWriter toJson(JsonWriter jsonWriter)
MicrosoftGraphPhoneType type()

Get the type property: The type property.

void validate()

Validates the instance.

MicrosoftGraphPhone withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: phone.

MicrosoftGraphPhone withLanguage(String language)

Set the language property: The language property.

MicrosoftGraphPhone withNumber(String number)

Set the number property: The phone number.

MicrosoftGraphPhone withRegion(String region)

Set the region property: The region property.

MicrosoftGraphPhone withType(MicrosoftGraphPhoneType type)

Set the type property: The type property.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPhone

public MicrosoftGraphPhone()

Creates an instance of MicrosoftGraphPhone class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: phone.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphPhone fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPhone from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

language

public String language()

Get the language property: The language property.

Returns:

the language value.

number

public String number()

Get the number property: The phone number.

Returns:

the number value.

region

public String region()

Get the region property: The region property.

Returns:

the region value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public MicrosoftGraphPhoneType type()

Get the type property: The type property.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphPhone withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: phone.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPhone object itself.

withLanguage

public MicrosoftGraphPhone withLanguage(String language)

Set the language property: The language property.

Parameters:

language - the language value to set.

Returns:

the MicrosoftGraphPhone object itself.

withNumber

public MicrosoftGraphPhone withNumber(String number)

Set the number property: The phone number.

Parameters:

number - the number value to set.

Returns:

the MicrosoftGraphPhone object itself.

withRegion

public MicrosoftGraphPhone withRegion(String region)

Set the region property: The region property.

Parameters:

region - the region value to set.

Returns:

the MicrosoftGraphPhone object itself.

withType

public MicrosoftGraphPhone withType(MicrosoftGraphPhoneType type)

Set the type property: The type property.

Parameters:

type - the type value to set.

Returns:

the MicrosoftGraphPhone object itself.

Applies to