public class CustomerInformation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomerInformation.Builder
Class to build instances of
CustomerInformation. |
| Constructor and Description |
|---|
CustomerInformation()
Default constructor.
|
CustomerInformation(String id,
String emailAddress,
PhoneWithType phone)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEmailAddress()
Getter for EmailAddress.
|
String |
getId()
Getter for Id.
|
PhoneWithType |
getPhone()
Getter for Phone.
|
void |
setEmailAddress(String emailAddress)
Setter for EmailAddress.
|
void |
setId(String id)
Setter for Id.
|
void |
setPhone(PhoneWithType phone)
Setter for Phone.
|
CustomerInformation.Builder |
toBuilder()
Builds a new
CustomerInformation.Builder object. |
String |
toString()
Converts this CustomerInformation into string format.
|
public CustomerInformation()
public CustomerInformation(String id, String emailAddress, PhoneWithType phone)
id - String value for id.emailAddress - String value for emailAddress.phone - PhoneWithType value for phone.public String getId()
public void setId(String id)
id - Value for Stringpublic String getEmailAddress()
public void setEmailAddress(String emailAddress)
emailAddress - Value for Stringpublic PhoneWithType getPhone()
public void setPhone(PhoneWithType phone)
phone - Value for PhoneWithTypepublic String toString()
public CustomerInformation.Builder toBuilder()
CustomerInformation.Builder object.
Creates the instance with the state of the current model.CustomerInformation.Builder objectCopyright © 2025. All rights reserved.