it.contactlab.hub.sdk.java.models.AbstractContacts Maven / Gradle / Ivy
package it.contactlab.hub.sdk.java.models;
import org.immutables.value.Value;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The contact information.
*/
@Value.Immutable
@Value.Style(typeImmutable = "*")
public abstract class AbstractContacts {
/**
* The e-mail.
*/
public abstract Optional email();
/**
* The fax number.
*/
public abstract Optional fax();
/**
* The mobile phone number.
*/
public abstract Optional mobilePhone();
/**
* The phone.
*/
public abstract Optional phone();
/**
* Other contacts.
*
* Marked as @Nullable so that you can create a `patchCustomer` object with
* this field set to null. It is never `null` when it is persisted.
*/
@Nullable public abstract List otherContacts();
/**
* Mobile devices.
*
* Marked as @Nullable so that you can create a `patchCustomer` object with
* this field set to null. It is never `null` when it is persisted.
*/
@Nullable public abstract List mobileDevices();
}