Package io.moov.sdk.models.components
Class GuestProfile
- java.lang.Object
-
- io.moov.sdk.models.components.GuestProfile
-
public class GuestProfile extends java.lang.ObjectGuestProfileDescribes a guest account profile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGuestProfile.Builder
-
Constructor Summary
Constructors Constructor Description GuestProfile(java.lang.String name)GuestProfile(java.lang.String name, java.util.Optional<? extends PhoneNumber> phone, java.util.Optional<java.lang.String> email)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GuestProfile.Builderbuilder()java.util.Optional<java.lang.String>email()booleanequals(java.lang.Object o)inthashCode()java.lang.Stringname()The name associated with the guest account.java.util.Optional<PhoneNumber>phone()java.lang.StringtoString()GuestProfilewithEmail(java.lang.String email)GuestProfilewithEmail(java.util.Optional<java.lang.String> email)GuestProfilewithName(java.lang.String name)The name associated with the guest account.GuestProfilewithPhone(PhoneNumber phone)GuestProfilewithPhone(java.util.Optional<? extends PhoneNumber> phone)
-
-
-
Constructor Detail
-
GuestProfile
public GuestProfile(java.lang.String name, java.util.Optional<? extends PhoneNumber> phone, java.util.Optional<java.lang.String> email)
-
GuestProfile
public GuestProfile(java.lang.String name)
-
-
Method Detail
-
name
public java.lang.String name()
The name associated with the guest account. This will default to "Guest {accountIDfirst8}" if no other name is provided.
-
phone
public java.util.Optional<PhoneNumber> phone()
-
email
public java.util.Optional<java.lang.String> email()
-
builder
public static final GuestProfile.Builder builder()
-
withName
public GuestProfile withName(java.lang.String name)
The name associated with the guest account. This will default to "Guest {accountIDfirst8}" if no other name is provided.
-
withPhone
public GuestProfile withPhone(PhoneNumber phone)
-
withPhone
public GuestProfile withPhone(java.util.Optional<? extends PhoneNumber> phone)
-
withEmail
public GuestProfile withEmail(java.lang.String email)
-
withEmail
public GuestProfile withEmail(java.util.Optional<java.lang.String> email)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-