public final class Contact extends Object
| Constructor and Description |
|---|
Contact() |
| Modifier and Type | Method and Description |
|---|---|
Address |
addressMailing()
Get the addressMailing property: Mailing address.
|
String |
email()
Get the email property: Email address.
|
String |
fax()
Get the fax property: Fax number.
|
String |
jobTitle()
Get the jobTitle property: Job title.
|
String |
nameFirst()
Get the nameFirst property: First name.
|
String |
nameLast()
Get the nameLast property: Last name.
|
String |
nameMiddle()
Get the nameMiddle property: Middle name.
|
String |
organization()
Get the organization property: Organization contact belongs to.
|
String |
phone()
Get the phone property: Phone number.
|
void |
validate()
Validates the instance.
|
Contact |
withAddressMailing(Address addressMailing)
Set the addressMailing property: Mailing address.
|
Contact |
withEmail(String email)
Set the email property: Email address.
|
Contact |
withFax(String fax)
Set the fax property: Fax number.
|
Contact |
withJobTitle(String jobTitle)
Set the jobTitle property: Job title.
|
Contact |
withNameFirst(String nameFirst)
Set the nameFirst property: First name.
|
Contact |
withNameLast(String nameLast)
Set the nameLast property: Last name.
|
Contact |
withNameMiddle(String nameMiddle)
Set the nameMiddle property: Middle name.
|
Contact |
withOrganization(String organization)
Set the organization property: Organization contact belongs to.
|
Contact |
withPhone(String phone)
Set the phone property: Phone number.
|
public Address addressMailing()
public Contact withAddressMailing(Address addressMailing)
addressMailing - the addressMailing value to set.public String email()
public Contact withEmail(String email)
email - the email value to set.public String fax()
public Contact withFax(String fax)
fax - the fax value to set.public String jobTitle()
public Contact withJobTitle(String jobTitle)
jobTitle - the jobTitle value to set.public String nameFirst()
public Contact withNameFirst(String nameFirst)
nameFirst - the nameFirst value to set.public String nameLast()
public Contact withNameLast(String nameLast)
nameLast - the nameLast value to set.public String nameMiddle()
public Contact withNameMiddle(String nameMiddle)
nameMiddle - the nameMiddle value to set.public String organization()
public Contact withOrganization(String organization)
organization - the organization value to set.public String phone()
public Contact withPhone(String phone)
phone - the phone value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.