Interface InheritedAssociate
public interface InheritedAssociate
InheritedAssociate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InheritedAssociate inheritedAssociate = InheritedAssociate.builder()
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.customer(customerBuilder -> customerBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic InheritedAssociateBuilder
builder()
builder factory method for InheritedAssociatestatic InheritedAssociateBuilder
builder
(InheritedAssociate template) create builder for InheritedAssociate instancestatic InheritedAssociate
deepCopy
(InheritedAssociate template) factory method to create a deep copy of InheritedAssociate@NotNull @Valid List<InheritedAssociateRoleAssignment>
Inherited roles of the Associate within a Business Unit.@NotNull @Valid CustomerReference
The Customer that acts as an Associate in the Business Unit.static InheritedAssociate
of()
factory methodstatic InheritedAssociate
of
(InheritedAssociate template) factory method to create a shallow copy InheritedAssociatevoid
setAssociateRoleAssignments
(InheritedAssociateRoleAssignment... associateRoleAssignments) Inherited roles of the Associate within a Business Unit.void
setAssociateRoleAssignments
(List<InheritedAssociateRoleAssignment> associateRoleAssignments) Inherited roles of the Associate within a Business Unit.void
setCustomer
(CustomerReference customer) The Customer that acts as an Associate in the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<InheritedAssociate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withInheritedAssociate
(Function<InheritedAssociate, T> helper) accessor map function
-
Method Details
-
getAssociateRoleAssignments
@NotNull @Valid @NotNull @Valid List<InheritedAssociateRoleAssignment> getAssociateRoleAssignments()Inherited roles of the Associate within a Business Unit.
- Returns:
- associateRoleAssignments
-
getCustomer
The Customer that acts as an Associate in the Business Unit.
- Returns:
- customer
-
setAssociateRoleAssignments
Inherited roles of the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- values to be set
-
setAssociateRoleAssignments
Inherited roles of the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- values to be set
-
setCustomer
The Customer that acts as an Associate in the Business Unit.
- Parameters:
customer
- value to be set
-
of
factory method- Returns:
- instance of InheritedAssociate
-
of
factory method to create a shallow copy InheritedAssociate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InheritedAssociate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InheritedAssociate- Returns:
- builder
-
builder
create builder for InheritedAssociate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInheritedAssociate
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
-