Class DeliveryContact


  • public class DeliveryContact
    extends Object
    DeliveryContact
    • Constructor Detail

      • DeliveryContact

        public DeliveryContact()
    • Method Detail

      • address

        public DeliveryContact address​(DeliveryAddress address)
        address
        Parameters:
        address -
        Returns:
        the current DeliveryContact instance, allowing for method chaining
      • getAddress

        public DeliveryAddress getAddress()
        Get address
        Returns:
        address
      • setAddress

        public void setAddress​(DeliveryAddress address)
        address
        Parameters:
        address -
      • company

        public DeliveryContact company​(String company)
        The company name of the contact.
        Parameters:
        company - The company name of the contact.
        Returns:
        the current DeliveryContact instance, allowing for method chaining
      • getCompany

        public String getCompany()
        The company name of the contact.
        Returns:
        company The company name of the contact.
      • setCompany

        public void setCompany​(String company)
        The company name of the contact.
        Parameters:
        company - The company name of the contact.
      • email

        public DeliveryContact email​(String email)
        The email address of the contact.
        Parameters:
        email - The email address of the contact.
        Returns:
        the current DeliveryContact instance, allowing for method chaining
      • getEmail

        public String getEmail()
        The email address of the contact.
        Returns:
        email The email address of the contact.
      • setEmail

        public void setEmail​(String email)
        The email address of the contact.
        Parameters:
        email - The email address of the contact.
      • name

        public DeliveryContact name​(Name name)
        name
        Parameters:
        name -
        Returns:
        the current DeliveryContact instance, allowing for method chaining
      • getName

        public Name getName()
        Get name
        Returns:
        name
      • setName

        public void setName​(Name name)
        name
        Parameters:
        name -
      • phone

        public DeliveryContact phone​(Phone phone)
        phone
        Parameters:
        phone -
        Returns:
        the current DeliveryContact instance, allowing for method chaining
      • getPhone

        public Phone getPhone()
        Get phone
        Returns:
        phone
      • setPhone

        public void setPhone​(Phone phone)
        phone
        Parameters:
        phone -
      • webAddress

        public DeliveryContact webAddress​(String webAddress)
        The URL of the contact's website.
        Parameters:
        webAddress - The URL of the contact's website.
        Returns:
        the current DeliveryContact instance, allowing for method chaining
      • getWebAddress

        public String getWebAddress()
        The URL of the contact's website.
        Returns:
        webAddress The URL of the contact's website.
      • setWebAddress

        public void setWebAddress​(String webAddress)
        The URL of the contact's website.
        Parameters:
        webAddress - The URL of the contact's website.
      • equals

        public boolean equals​(Object o)
        Return true if this DeliveryContact object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static DeliveryContact fromJson​(String jsonString)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of DeliveryContact given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of DeliveryContact
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to DeliveryContact
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of DeliveryContact to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException