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 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>Roles assigned to the Associate within a Business Unit.@NotNull @Valid CustomerResourceIdentifierThe 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) Roles assigned to the Associate within a Business Unit.voidsetAssociateRoleAssignments(List<AssociateRoleAssignmentDraft> associateRoleAssignments) Roles assigned to the Associate within a Business Unit.voidsetCustomer(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> TwithAssociateDraft(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
-
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
-