Interface AssociateDraft
- All Superinterfaces:
Draft<AssociateDraft>
Draft for an Associate in a Business Unit.
Example to create an instance using the builder pattern
AssociateDraft associateDraft = AssociateDraft.builder()
.customer(customerBuilder -> customerBuilder)
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssociateDraftBuilderbuilder()builder factory method for AssociateDraftstatic AssociateDraftBuilderbuilder(AssociateDraft template) create builder for AssociateDraft instancecopyDeep()static AssociateDraftdeepCopy(AssociateDraft template) factory method to create a deep copy of AssociateDraft@NotNull @Valid List<AssociateRoleAssignmentDraft>The roles to assign to the Associate.@NotNull @Valid CustomerKeyReferenceThe Customer to be part of the Business Unit.static AssociateDraftof()factory methodstatic AssociateDraftof(AssociateDraft template) factory method to create a shallow copy AssociateDraftvoidsetAssociateRoleAssignments(AssociateRoleAssignmentDraft... associateRoleAssignments) The roles to assign to the Associate.voidsetAssociateRoleAssignments(List<AssociateRoleAssignmentDraft> associateRoleAssignments) The roles to assign to the Associate.voidsetCustomer(CustomerKeyReference customer) The Customer to be part of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<AssociateDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAssociateDraft(Function<AssociateDraft, T> helper) accessor map function
-
Method Details
-
getCustomer
The Customer to be part of the Business Unit.
- Returns:
- customer
-
getAssociateRoleAssignments
The roles to assign to the Associate.
- Returns:
- associateRoleAssignments
-
setCustomer
The Customer to be part of the Business Unit.
- Parameters:
customer- value to be set
-
setAssociateRoleAssignments
The roles to assign to the Associate.
- Parameters:
associateRoleAssignments- values to be set
-
setAssociateRoleAssignments
The roles to assign to the Associate.
- Parameters:
associateRoleAssignments- values to be set
-
of
factory method- Returns:
- instance of AssociateDraft
-
of
factory method to create a shallow copy AssociateDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateDraft copyDeep() -
deepCopy
factory method to create a deep copy of AssociateDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateDraft- Returns:
- builder
-
builder
create builder for AssociateDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateDraft
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-