Package com.clover.sdk.v3.customers
Class EmailAddress
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.customers.EmailAddress
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class EmailAddress extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EmailAddress.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<EmailAddress>
CREATOR
static JSONifiable.Creator<EmailAddress>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description EmailAddress()
Constructs a new empty instance.protected
EmailAddress(boolean noInit)
Constructs a new empty instance.EmailAddress(EmailAddress src)
Constructs a new instance that is a deep copy of the source instance.EmailAddress(String json)
Constructs a new instance from the given JSON String.EmailAddress(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return falsevoid
clearEmailAddress()
Clears the 'emailAddress' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearPrimaryEmail()
Clears the 'primaryEmail' field, the 'has' method for this field will now return falsevoid
clearVerifiedTime()
Clears the 'verifiedTime' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.EmailAddress
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Reference
getCustomer()
Customer who this email address belongs to.String
getEmailAddress()
protected GenericClient
getGenericClient()
String
getId()
JSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.Boolean
getPrimaryEmail()
Long
getVerifiedTime()
boolean
hasCustomer()
Checks whether the 'customer' field has been set, however the value could be nullboolean
hasEmailAddress()
Checks whether the 'emailAddress' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasPrimaryEmail()
Checks whether the 'primaryEmail' field has been set, however the value could be nullboolean
hasVerifiedTime()
Checks whether the 'verifiedTime' field has been set, however the value could be nullboolean
isNotNullCustomer()
Checks whether the 'customer' field is set and is not nullboolean
isNotNullEmailAddress()
Checks whether the 'emailAddress' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullPrimaryEmail()
Checks whether the 'primaryEmail' field is set and is not nullboolean
isNotNullVerifiedTime()
Checks whether the 'verifiedTime' field is set and is not nullvoid
mergeChanges(EmailAddress src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.EmailAddress
setCustomer(Reference customer)
Sets the field 'customer'.EmailAddress
setEmailAddress(String emailAddress)
Sets the field 'emailAddress'.EmailAddress
setId(String id)
Sets the field 'id'.EmailAddress
setPrimaryEmail(Boolean primaryEmail)
Sets the field 'primaryEmail'.EmailAddress
setVerifiedTime(Long verifiedTime)
Sets the field 'verifiedTime'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<EmailAddress> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<EmailAddress> JSON_CREATOR
-
-
Constructor Detail
-
EmailAddress
public EmailAddress()
Constructs a new empty instance.
-
EmailAddress
protected EmailAddress(boolean noInit)
Constructs a new empty instance.
-
EmailAddress
public EmailAddress(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
EmailAddress
public EmailAddress(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
EmailAddress
public EmailAddress(EmailAddress src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
-
getEmailAddress
public String getEmailAddress()
-
getVerifiedTime
public Long getVerifiedTime()
-
getPrimaryEmail
public Boolean getPrimaryEmail()
-
getCustomer
public Reference getCustomer()
Customer who this email address belongs to.
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullEmailAddress
public boolean isNotNullEmailAddress()
Checks whether the 'emailAddress' field is set and is not null
-
isNotNullVerifiedTime
public boolean isNotNullVerifiedTime()
Checks whether the 'verifiedTime' field is set and is not null
-
isNotNullPrimaryEmail
public boolean isNotNullPrimaryEmail()
Checks whether the 'primaryEmail' field is set and is not null
-
isNotNullCustomer
public boolean isNotNullCustomer()
Checks whether the 'customer' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasEmailAddress
public boolean hasEmailAddress()
Checks whether the 'emailAddress' field has been set, however the value could be null
-
hasVerifiedTime
public boolean hasVerifiedTime()
Checks whether the 'verifiedTime' field has been set, however the value could be null
-
hasPrimaryEmail
public boolean hasPrimaryEmail()
Checks whether the 'primaryEmail' field has been set, however the value could be null
-
hasCustomer
public boolean hasCustomer()
Checks whether the 'customer' field has been set, however the value could be null
-
setId
public EmailAddress setId(String id)
Sets the field 'id'.
-
setEmailAddress
public EmailAddress setEmailAddress(String emailAddress)
Sets the field 'emailAddress'.
-
setVerifiedTime
public EmailAddress setVerifiedTime(Long verifiedTime)
Sets the field 'verifiedTime'.
-
setPrimaryEmail
public EmailAddress setPrimaryEmail(Boolean primaryEmail)
Sets the field 'primaryEmail'.
-
setCustomer
public EmailAddress setCustomer(Reference customer)
Sets the field 'customer'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearEmailAddress
public void clearEmailAddress()
Clears the 'emailAddress' field, the 'has' method for this field will now return false
-
clearVerifiedTime
public void clearVerifiedTime()
Clears the 'verifiedTime' field, the 'has' method for this field will now return false
-
clearPrimaryEmail
public void clearPrimaryEmail()
Clears the 'primaryEmail' field, the 'has' method for this field will now return false
-
clearCustomer
public void clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public EmailAddress copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(EmailAddress src)
Copy all the changed fields from the given source to this instance.
-
-