ContactProfile Class
- java.
lang. Object - com.
azure. resourcemanager. support. models. ContactProfile
- com.
Implements
public final class ContactProfile
implements JsonSerializable<ContactProfile>
Contact information associated with the support ticket.
Constructor Summary
| Constructor | Description |
|---|---|
| ContactProfile() |
Creates an instance of Contact |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
additionalEmailAddresses()
Get the additional |
| String |
country()
Get the country property: Country of the user. |
| String |
firstName()
Get the first |
|
static
Contact |
fromJson(JsonReader jsonReader)
Reads an instance of Contact |
| String |
lastName()
Get the last |
| String |
phoneNumber()
Get the phone |
|
Preferred |
preferredContactMethod()
Get the preferred |
| String |
preferredSupportLanguage()
Get the preferred |
| String |
preferredTimeZone()
Get the preferred |
| String |
primaryEmailAddress()
Get the primary |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Contact |
withAdditionalEmailAddresses(List<String> additionalEmailAddresses)
Set the additional |
|
Contact |
withCountry(String country)
Set the country property: Country of the user. |
|
Contact |
withFirstName(String firstName)
Set the first |
|
Contact |
withLastName(String lastName)
Set the last |
|
Contact |
withPhoneNumber(String phoneNumber)
Set the phone |
|
Contact |
withPreferredContactMethod(PreferredContactMethod preferredContactMethod)
Set the preferred |
|
Contact |
withPreferredSupportLanguage(String preferredSupportLanguage)
Set the preferred |
|
Contact |
withPreferredTimeZone(String preferredTimeZone)
Set the preferred |
|
Contact |
withPrimaryEmailAddress(String primaryEmailAddress)
Set the primary |
Methods inherited from java.lang.Object
Constructor Details
ContactProfile
public ContactProfile()
Creates an instance of ContactProfile class.
Method Details
additionalEmailAddresses
public List<String> additionalEmailAddresses()
Get the additionalEmailAddresses property: Additional email addresses listed will be copied on any correspondence about the support ticket.
Returns:
country
public String country()
Get the country property: Country of the user. This is the ISO 3166-1 alpha-3 code.
Returns:
firstName
public String firstName()
Get the firstName property: First name.
Returns:
fromJson
public static ContactProfile fromJson(JsonReader jsonReader)
Reads an instance of ContactProfile from the JsonReader.
Parameters:
Returns:
Throws:
lastName
public String lastName()
Get the lastName property: Last name.
Returns:
phoneNumber
public String phoneNumber()
Get the phoneNumber property: Phone number. This is required if preferred contact method is phone.
Returns:
preferredContactMethod
public PreferredContactMethod preferredContactMethod()
Get the preferredContactMethod property: Preferred contact method.
Returns:
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:
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:
primaryEmailAddress
public String primaryEmailAddress()
Get the primaryEmailAddress property: Primary email address.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdditionalEmailAddresses
public ContactProfile withAdditionalEmailAddresses(List<String> additionalEmailAddresses)
Set the additionalEmailAddresses property: Additional email addresses listed will be copied on any correspondence about the support ticket.
Parameters:
Returns:
withCountry
public ContactProfile withCountry(String country)
Set the country property: Country of the user. This is the ISO 3166-1 alpha-3 code.
Parameters:
Returns:
withFirstName
public ContactProfile withFirstName(String firstName)
Set the firstName property: First name.
Parameters:
Returns:
withLastName
public ContactProfile withLastName(String lastName)
Set the lastName property: Last name.
Parameters:
Returns:
withPhoneNumber
public ContactProfile withPhoneNumber(String phoneNumber)
Set the phoneNumber property: Phone number. This is required if preferred contact method is phone.
Parameters:
Returns:
withPreferredContactMethod
public ContactProfile withPreferredContactMethod(PreferredContactMethod preferredContactMethod)
Set the preferredContactMethod property: Preferred contact method.
Parameters:
Returns:
withPreferredSupportLanguage
public ContactProfile 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:
Returns:
withPreferredTimeZone
public ContactProfile 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:
Returns:
withPrimaryEmailAddress
public ContactProfile withPrimaryEmailAddress(String primaryEmailAddress)
Set the primaryEmailAddress property: Primary email address.
Parameters:
Returns: