public final class UserInfo extends Object
Constructor and Description |
---|
UserInfo() |
Modifier and Type | Method and Description |
---|---|
String |
emailAddress()
Get the emailAddress property: Email of the user used by Logz for contacting them if needed.
|
String |
firstName()
Get the firstName property: First Name of the user.
|
String |
lastName()
Get the lastName property: Last Name of the user.
|
String |
phoneNumber()
Get the phoneNumber property: Phone number of the user used by Logz for contacting them if needed.
|
void |
validate()
Validates the instance.
|
UserInfo |
withEmailAddress(String emailAddress)
Set the emailAddress property: Email of the user used by Logz for contacting them if needed.
|
UserInfo |
withFirstName(String firstName)
Set the firstName property: First Name of the user.
|
UserInfo |
withLastName(String lastName)
Set the lastName property: Last Name of the user.
|
UserInfo |
withPhoneNumber(String phoneNumber)
Set the phoneNumber property: Phone number of the user used by Logz for contacting them if needed.
|
public String firstName()
public UserInfo withFirstName(String firstName)
firstName
- the firstName value to set.public String lastName()
public UserInfo withLastName(String lastName)
lastName
- the lastName value to set.public String emailAddress()
public UserInfo withEmailAddress(String emailAddress)
emailAddress
- the emailAddress value to set.public String phoneNumber()
public UserInfo withPhoneNumber(String phoneNumber)
phoneNumber
- the phoneNumber value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.