Package com.flagright.api.types
Class PersonWithRole.Builder
- java.lang.Object
-
- com.flagright.api.types.PersonWithRole.Builder
-
- All Implemented Interfaces:
PersonWithRole._FinalStage,PersonWithRole.GeneralDetailsStage,PersonWithRole.RoleStage
- Enclosing class:
- PersonWithRole
public static final class PersonWithRole.Builder extends java.lang.Object implements PersonWithRole.GeneralDetailsStage, PersonWithRole.RoleStage, PersonWithRole._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersonWithRole._FinalStageattachments(java.util.List<PersonAttachment> attachments)User's attachments uploaded by business userPersonWithRole._FinalStageattachments(java.util.Optional<java.util.List<PersonAttachment>> attachments)PersonWithRolebuild()PersonWithRole._FinalStagecontactDetails(ContactDetails contactDetails)PersonWithRole._FinalStagecontactDetails(java.util.Optional<ContactDetails> contactDetails)PersonWithRole.Builderfrom(PersonWithRole other)PersonWithRole.RoleStagegeneralDetails(UserDetails generalDetails)PersonWithRole._FinalStagelegalDocuments(java.util.List<LegalDocument> legalDocuments)User's legal identity documents - See Document Model for detailsPersonWithRole._FinalStagelegalDocuments(java.util.Optional<java.util.List<LegalDocument>> legalDocuments)PersonWithRole._FinalStagepepStatus(java.util.List<PepStatus> pepStatus)PersonWithRole._FinalStagepepStatus(java.util.Optional<java.util.List<PepStatus>> pepStatus)PersonWithRole._FinalStagerole(java.lang.String role)PersonWithRole._FinalStagetags(java.util.List<Tag> tags)Additional information that can be added via tagsPersonWithRole._FinalStagetags(java.util.Optional<java.util.List<Tag>> tags)PersonWithRole._FinalStageuserId(java.lang.String userId)Unique user ID for the personPersonWithRole._FinalStageuserId(java.util.Optional<java.lang.String> userId)
-
-
-
Method Detail
-
from
public PersonWithRole.Builder from(PersonWithRole other)
- Specified by:
fromin interfacePersonWithRole.GeneralDetailsStage
-
generalDetails
public PersonWithRole.RoleStage generalDetails(@NotNull UserDetails generalDetails)
- Specified by:
generalDetailsin interfacePersonWithRole.GeneralDetailsStage
-
role
public PersonWithRole._FinalStage role(@NotNull java.lang.String role)
- Specified by:
rolein interfacePersonWithRole.RoleStage
-
attachments
public PersonWithRole._FinalStage attachments(java.util.List<PersonAttachment> attachments)
User's attachments uploaded by business user
- Specified by:
attachmentsin interfacePersonWithRole._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachments
public PersonWithRole._FinalStage attachments(java.util.Optional<java.util.List<PersonAttachment>> attachments)
- Specified by:
attachmentsin interfacePersonWithRole._FinalStage
-
tags
public PersonWithRole._FinalStage tags(java.util.List<Tag> tags)
Additional information that can be added via tags
- Specified by:
tagsin interfacePersonWithRole._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
public PersonWithRole._FinalStage tags(java.util.Optional<java.util.List<Tag>> tags)
- Specified by:
tagsin interfacePersonWithRole._FinalStage
-
pepStatus
public PersonWithRole._FinalStage pepStatus(java.util.List<PepStatus> pepStatus)
- Specified by:
pepStatusin interfacePersonWithRole._FinalStage
-
pepStatus
public PersonWithRole._FinalStage pepStatus(java.util.Optional<java.util.List<PepStatus>> pepStatus)
- Specified by:
pepStatusin interfacePersonWithRole._FinalStage
-
contactDetails
public PersonWithRole._FinalStage contactDetails(ContactDetails contactDetails)
- Specified by:
contactDetailsin interfacePersonWithRole._FinalStage
-
contactDetails
public PersonWithRole._FinalStage contactDetails(java.util.Optional<ContactDetails> contactDetails)
- Specified by:
contactDetailsin interfacePersonWithRole._FinalStage
-
legalDocuments
public PersonWithRole._FinalStage legalDocuments(java.util.List<LegalDocument> legalDocuments)
User's legal identity documents - See Document Model for details
- Specified by:
legalDocumentsin interfacePersonWithRole._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
legalDocuments
public PersonWithRole._FinalStage legalDocuments(java.util.Optional<java.util.List<LegalDocument>> legalDocuments)
- Specified by:
legalDocumentsin interfacePersonWithRole._FinalStage
-
userId
public PersonWithRole._FinalStage userId(java.lang.String userId)
Unique user ID for the person
- Specified by:
userIdin interfacePersonWithRole._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public PersonWithRole._FinalStage userId(java.util.Optional<java.lang.String> userId)
- Specified by:
userIdin interfacePersonWithRole._FinalStage
-
build
public PersonWithRole build()
- Specified by:
buildin interfacePersonWithRole._FinalStage
-
-