Interface AssociateDraft
- All Superinterfaces:
Draft<AssociateDraft>
AssociateDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateDraft associateDraft = AssociateDraft.builder()
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.customer(customerBuilder -> customerBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssociateDraftBuilder
builder()
builder factory method for AssociateDraftstatic AssociateDraftBuilder
builder
(AssociateDraft template) create builder for AssociateDraft instancestatic AssociateDraft
deepCopy
(AssociateDraft template) factory method to create a deep copy of AssociateDraft@NotNull @Valid List<AssociateRoleAssignmentDraft>
Roles assigned to the Associate within a Business Unit.@NotNull @Valid CustomerResourceIdentifier
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) Roles assigned to the Associate within a Business Unit.void
setAssociateRoleAssignments
(List<AssociateRoleAssignmentDraft> associateRoleAssignments) Roles assigned to the Associate within a Business Unit.void
setCustomer
(CustomerResourceIdentifier 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
-
getAssociateRoleAssignments
Roles assigned to the Associate within a Business Unit.
- Returns:
- associateRoleAssignments
-
getCustomer
The Customer to be part of the Business Unit.
- Returns:
- customer
-
setAssociateRoleAssignments
Roles assigned to the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- values to be set
-
setAssociateRoleAssignments
Roles assigned to the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- values to be set
-
setCustomer
The Customer to be part of the Business Unit.
- Parameters:
customer
- value 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
-
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
-