通过


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

UpdateContactProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.support.models.UpdateContactProfile

Implements

public final class UpdateContactProfile
implements JsonSerializable<UpdateContactProfile>

Contact information associated with the support ticket.

Constructor Summary

Constructor Description
UpdateContactProfile()

Creates an instance of UpdateContactProfile class.

Method Summary

Modifier and Type Method and Description
List<String> additionalEmailAddresses()

Get the additionalEmailAddresses property: Email addresses listed will be copied on any correspondence about the support ticket.

String country()

Get the country property: Country of the user.

String firstName()

Get the firstName property: First name.

static UpdateContactProfile fromJson(JsonReader jsonReader)

Reads an instance of UpdateContactProfile from the JsonReader.

String lastName()

Get the lastName property: Last name.

String phoneNumber()

Get the phoneNumber property: Phone number.

PreferredContactMethod preferredContactMethod()

Get the preferredContactMethod property: Preferred contact method.

String preferredSupportLanguage()

Get the preferredSupportLanguage property: Preferred language of support from Azure.

String preferredTimeZone()

Get the preferredTimeZone property: Time zone of the user.

String primaryEmailAddress()

Get the primaryEmailAddress property: Primary email address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UpdateContactProfile withAdditionalEmailAddresses(List<String> additionalEmailAddresses)

Set the additionalEmailAddresses property: Email addresses listed will be copied on any correspondence about the support ticket.

UpdateContactProfile withCountry(String country)

Set the country property: Country of the user.

UpdateContactProfile withFirstName(String firstName)

Set the firstName property: First name.

UpdateContactProfile withLastName(String lastName)

Set the lastName property: Last name.

UpdateContactProfile withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

UpdateContactProfile withPreferredContactMethod(PreferredContactMethod preferredContactMethod)

Set the preferredContactMethod property: Preferred contact method.

UpdateContactProfile withPreferredSupportLanguage(String preferredSupportLanguage)

Set the preferredSupportLanguage property: Preferred language of support from Azure.

UpdateContactProfile withPreferredTimeZone(String preferredTimeZone)

Set the preferredTimeZone property: Time zone of the user.

UpdateContactProfile withPrimaryEmailAddress(String primaryEmailAddress)

Set the primaryEmailAddress property: Primary email address.

Methods inherited from java.lang.Object

Constructor Details

UpdateContactProfile

public UpdateContactProfile()

Creates an instance of UpdateContactProfile class.

Method Details

additionalEmailAddresses

public List<String> additionalEmailAddresses()

Get the additionalEmailAddresses property: Email addresses listed will be copied on any correspondence about the support ticket.

Returns:

the additionalEmailAddresses value.

country

public String country()

Get the country property: Country of the user. This is the ISO 3166-1 alpha-3 code.

Returns:

the country value.

firstName

public String firstName()

Get the firstName property: First name.

Returns:

the firstName value.

fromJson

public static UpdateContactProfile fromJson(JsonReader jsonReader)

Reads an instance of UpdateContactProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastName

public String lastName()

Get the lastName property: Last name.

Returns:

the lastName value.

phoneNumber

public String phoneNumber()

Get the phoneNumber property: Phone number. This is required if preferred contact method is phone.

Returns:

the phoneNumber value.

preferredContactMethod

public PreferredContactMethod preferredContactMethod()

Get the preferredContactMethod property: Preferred contact method.

Returns:

the preferredContactMethod value.

preferredSupportLanguage

public String preferredSupportLanguage()

Get the preferredSupportLanguage property: Preferred language of support from Azure. Support languages vary based on the severity you choose for your support ticket. Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response/). Use the standard language-country code. Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German.

Returns:

the preferredSupportLanguage value.

preferredTimeZone

public String preferredTimeZone()

Get the preferredTimeZone property: Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values).

Returns:

the preferredTimeZone value.

primaryEmailAddress

public String primaryEmailAddress()

Get the primaryEmailAddress property: Primary email address.

Returns:

the primaryEmailAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalEmailAddresses

public UpdateContactProfile withAdditionalEmailAddresses(List<String> additionalEmailAddresses)

Set the additionalEmailAddresses property: Email addresses listed will be copied on any correspondence about the support ticket.

Parameters:

additionalEmailAddresses - the additionalEmailAddresses value to set.

Returns:

the UpdateContactProfile object itself.

withCountry

public UpdateContactProfile withCountry(String country)

Set the country property: Country of the user. This is the ISO 3166-1 alpha-3 code.

Parameters:

country - the country value to set.

Returns:

the UpdateContactProfile object itself.

withFirstName

public UpdateContactProfile withFirstName(String firstName)

Set the firstName property: First name.

Parameters:

firstName - the firstName value to set.

Returns:

the UpdateContactProfile object itself.

withLastName

public UpdateContactProfile withLastName(String lastName)

Set the lastName property: Last name.

Parameters:

lastName - the lastName value to set.

Returns:

the UpdateContactProfile object itself.

withPhoneNumber

public UpdateContactProfile withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number. This is required if preferred contact method is phone.

Parameters:

phoneNumber - the phoneNumber value to set.

Returns:

the UpdateContactProfile object itself.

withPreferredContactMethod

public UpdateContactProfile withPreferredContactMethod(PreferredContactMethod preferredContactMethod)

Set the preferredContactMethod property: Preferred contact method.

Parameters:

preferredContactMethod - the preferredContactMethod value to set.

Returns:

the UpdateContactProfile object itself.

withPreferredSupportLanguage

public UpdateContactProfile withPreferredSupportLanguage(String preferredSupportLanguage)

Set the preferredSupportLanguage property: Preferred language of support from Azure. Support languages vary based on the severity you choose for your support ticket. Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response/). Use the standard language-country code. Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German.

Parameters:

preferredSupportLanguage - the preferredSupportLanguage value to set.

Returns:

the UpdateContactProfile object itself.

withPreferredTimeZone

public UpdateContactProfile withPreferredTimeZone(String preferredTimeZone)

Set the preferredTimeZone property: Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values).

Parameters:

preferredTimeZone - the preferredTimeZone value to set.

Returns:

the UpdateContactProfile object itself.

withPrimaryEmailAddress

public UpdateContactProfile withPrimaryEmailAddress(String primaryEmailAddress)

Set the primaryEmailAddress property: Primary email address.

Parameters:

primaryEmailAddress - the primaryEmailAddress value to set.

Returns:

the UpdateContactProfile object itself.

Applies to