Class OrderContact
java.lang.Object
com.eqixiac.equinix.customerportal.model.json.creators.OrderContact
A contact on a colocation v2 order (cross-connect, shipment, work visit) or a v2 trouble
ticket / support case. The
contacts array entries are modelled by the spec as an
anyOf of two variants:
- Registered user (
ContactRequestRegisteredUser):registeredUsers[]+type(NOTIFICATION,TECHNICAL, orORDERINGon support cases), with optionalavailabilityandtimezone. - Non-registered contact (
ContactRequestNonRegisteredUser):firstName,lastName,type(TECHNICAL),details[]of{type, value}(wheretypeisPHONE,MOBILEorEMAIL), with optionalavailabilityandtimezone.
Use registered(String, java.util.List) / registered(String, java.util.List, String, String) for the first variant and nonRegistered(String, String, java.util.List)
/ nonRegistered(String, String, java.util.List, String, String) for the second. Only the
fields relevant to the chosen variant are serialized.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA single contact-detail entry (ContactsRequestDetails) for a non-registered contact. -
Method Summary
Modifier and TypeMethodDescriptionstatic OrderContactnonRegistered(String firstName, String lastName, List<OrderContact.ContactDetail> details) Builds a non-registered contact (ContactRequestNonRegisteredUser).static OrderContactnonRegistered(String firstName, String lastName, List<OrderContact.ContactDetail> details, String availability, String timezone) Builds a non-registered contact (ContactRequestNonRegisteredUser) with availability and timezone.static OrderContactregistered(String type, List<String> registeredUsers) Builds a registered-user contact (ContactRequestRegisteredUser).static OrderContactBuilds a registered-user contact (ContactRequestRegisteredUser) with availability and timezone.
-
Method Details
-
registered
Builds a registered-user contact (ContactRequestRegisteredUser).- Parameters:
type- the contact type (e.g.NOTIFICATION,TECHNICAL)registeredUsers- the registered customer-portal user names- Returns:
- the contact
-
registered
public static OrderContact registered(String type, List<String> registeredUsers, String availability, String timezone) Builds a registered-user contact (ContactRequestRegisteredUser) with availability and timezone.- Parameters:
type- the contact type (e.g.NOTIFICATION,TECHNICAL)registeredUsers- the registered customer-portal user namesavailability- the contact's availability (WORK_HOURSorANYTIME)timezone- the contact's timezone- Returns:
- the contact
-
nonRegistered
public static OrderContact nonRegistered(String firstName, String lastName, List<OrderContact.ContactDetail> details) Builds a non-registered contact (ContactRequestNonRegisteredUser).- Parameters:
firstName- the contact's first namelastName- the contact's last namedetails- the contact details ({type, value}entries; email is required)- Returns:
- the contact
-
nonRegistered
public static OrderContact nonRegistered(String firstName, String lastName, List<OrderContact.ContactDetail> details, String availability, String timezone) Builds a non-registered contact (ContactRequestNonRegisteredUser) with availability and timezone.- Parameters:
firstName- the contact's first namelastName- the contact's last namedetails- the contact details ({type, value}entries; email is required)availability- the contact's availability (WORK_HOURSorANYTIME)timezone- the contact's timezone- Returns:
- the contact
-