Class WorkVisitVisitor
java.lang.Object
com.eqixiac.equinix.customerportal.model.json.creators.WorkVisitVisitor
A work-visit visitor (
anyOf RegisteredUser / NonRegisteredUser_Visitor
in the work-visits v2 spec). A visitor is either:
- a set of registered users referenced by username
(
registered(List)), or - a non-registered visitor specified inline with name and company
(
nonRegistered(String, String, String)).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA contact detail for a non-registered visitor (VisitorContactsRequestDetailsin the work-visits v2 spec). -
Method Summary
Modifier and TypeMethodDescriptiondetails(List<WorkVisitVisitor.ContactDetail> details) Sets the contact details for a non-registered visitor (up to two).static WorkVisitVisitornonRegistered(String firstName, String lastName, String companyName) A non-registered visitor specified inline.static WorkVisitVisitorregistered(List<String> registeredUsers) A visitor entry that references registered users by username.
-
Method Details
-
registered
A visitor entry that references registered users by username.- Parameters:
registeredUsers- the usernames of registered users (max 10)- Returns:
- the visitor
-
nonRegistered
A non-registered visitor specified inline.- Parameters:
firstName- the visitor's first name (required)lastName- the visitor's last name (required)companyName- the visitor's company name (required)- Returns:
- the visitor
-
details
Sets the contact details for a non-registered visitor (up to two).- Parameters:
details- the contact details- Returns:
- this visitor
-