Interface Associate
public interface Associate
Associate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Associate associate = Associate.builder()
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.customer(customerBuilder -> customerBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssociateBuilder
builder()
builder factory method for Associatestatic AssociateBuilder
create builder for Associate instancestatic Associate
factory method to create a deep copy of Associate@NotNull @Valid List<AssociateRoleAssignment>
Roles assigned to the Associate within a Business Unit.@NotNull @Valid CustomerReference
The Customer that acts as an Associate in the Business Unit.static Associate
of()
factory methodstatic Associate
factory method to create a shallow copy Associatevoid
setAssociateRoleAssignments
(AssociateRoleAssignment... associateRoleAssignments) Roles assigned to the Associate within a Business Unit.void
setAssociateRoleAssignments
(List<AssociateRoleAssignment> associateRoleAssignments) Roles assigned to 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<Associate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAssociate
(Function<Associate, T> helper) accessor map function
-
Method Details
-
getAssociateRoleAssignments
Roles assigned to the Associate within a Business Unit.
- Returns:
- associateRoleAssignments
-
getCustomer
The Customer that acts as an Associate in 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 that acts as an Associate in the Business Unit.
- Parameters:
customer
- value to be set
-
of
factory method- Returns:
- instance of Associate
-
of
factory method to create a shallow copy Associate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Associate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Associate- Returns:
- builder
-
builder
create builder for Associate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociate
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
-