Interface AssociateRoleAssignmentDraft
- All Superinterfaces:
Draft<AssociateRoleAssignmentDraft>
The role of an Associate in a Business Unit.
Example to create an instance using the builder pattern
AssociateRoleAssignmentDraft associateRoleAssignmentDraft = AssociateRoleAssignmentDraft.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.inheritance(AssociateRoleInheritanceMode.ENABLED)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRoleAssignmentDraftbuilder
(AssociateRoleAssignmentDraft template) create builder for AssociateRoleAssignmentDraft instancecopyDeep()
static AssociateRoleAssignmentDraft
deepCopy
(AssociateRoleAssignmentDraft template) factory method to create a deep copy of AssociateRoleAssignmentDraft@NotNull @Valid AssociateRoleKeyReference
The role to assign to the Associate.@NotNull AssociateRoleInheritanceMode
Determines whether the AssociateRole is inherited.static AssociateRoleAssignmentDraft
of()
factory methodstatic AssociateRoleAssignmentDraft
of
(AssociateRoleAssignmentDraft template) factory method to create a shallow copy AssociateRoleAssignmentDraftvoid
setAssociateRole
(AssociateRoleKeyReference associateRole) The role to assign to the Associate.void
setInheritance
(AssociateRoleInheritanceMode inheritance) Determines whether the AssociateRole is inherited.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleAssignmentDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getAssociateRole
The role to assign to the Associate.
- Returns:
- associateRole
-
getInheritance
Determines whether the AssociateRole is inherited. If
Disabled
, the AssociateRole is not inherited from a parent Business Unit.- Returns:
- inheritance
-
setAssociateRole
The role to assign to the Associate.
- Parameters:
associateRole
- value to be set
-
setInheritance
Determines whether the AssociateRole is inherited. If
Disabled
, the AssociateRole is not inherited from a parent Business Unit.- Parameters:
inheritance
- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleAssignmentDraft
-
of
factory method to create a shallow copy AssociateRoleAssignmentDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRoleAssignmentDraft copyDeep() -
deepCopy
@Nullable static AssociateRoleAssignmentDraft deepCopy(@Nullable AssociateRoleAssignmentDraft template) factory method to create a deep copy of AssociateRoleAssignmentDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleAssignmentDraft- Returns:
- builder
-
builder
create builder for AssociateRoleAssignmentDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleAssignmentDraft
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
-