Class EmailAddress

    • Constructor Detail

      • EmailAddress

        public EmailAddress()
        Constructs a new empty instance.
      • EmailAddress

        protected EmailAddress​(boolean noInit)
        Constructs a new empty instance.
      • 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.
      • 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 interface JSONifiable
      • 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
      • 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.