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 AssociateDraftBuilder
builder()
builder factory method for AssociateDraftstatic AssociateDraftBuilder
builder
(AssociateDraft template) create builder for AssociateDraft instancecopyDeep()
static AssociateDraft
deepCopy
(AssociateDraft template) factory method to create a deep copy of AssociateDraft@NotNull @Valid List<AssociateRoleAssignmentDraft>
The roles to assign to the Associate.@NotNull @Valid CustomerKeyReference
The Customer to be part of the Business Unit.static AssociateDraft
of()
factory methodstatic AssociateDraft
of
(AssociateDraft template) factory method to create a shallow copy AssociateDraftvoid
setAssociateRoleAssignments
(AssociateRoleAssignmentDraft... associateRoleAssignments) The roles to assign to the Associate.void
setAssociateRoleAssignments
(List<AssociateRoleAssignmentDraft> associateRoleAssignments) The roles to assign to the Associate.void
setCustomer
(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> T
withAssociateDraft
(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
-