Interface BusinessUnitAssociateResponse
public interface BusinessUnitAssociateResponse
Information about all roles and permissions of an Associate in a BusinessUnit.
Example to create an instance using the builder pattern
BusinessUnitAssociateResponse businessUnitAssociateResponse = BusinessUnitAssociateResponse.builder()
.customer(customerBuilder -> customerBuilder)
.plusAssociateRoles(associateRolesBuilder -> associateRolesBuilder)
.plusInheritedAssociateRoles(inheritedAssociateRolesBuilder -> inheritedAssociateRolesBuilder)
.plusPermissions(permissionsBuilder -> permissionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitAssociateResponsebuilder
(BusinessUnitAssociateResponse template) create builder for BusinessUnitAssociateResponse instancedeepCopy
(BusinessUnitAssociateResponse template) factory method to create a deep copy of BusinessUnitAssociateResponse@NotNull @Valid List<AssociateRole>
Roles assigned to Associates in the Business Unit.@NotNull @Valid CustomerReference
The Customer that acts as an Associate in the Business Unit.@NotNull @Valid List<AssociateRole>
Roles inherited by Associates from the parent Business Unit.@NotNull List<Permission>
Permissions the Associate has in the Business Unit.of()
factory methodof
(BusinessUnitAssociateResponse template) factory method to create a shallow copy BusinessUnitAssociateResponsevoid
setAssociateRoles
(AssociateRole... associateRoles) Roles assigned to Associates in the Business Unit.void
setAssociateRoles
(List<AssociateRole> associateRoles) Roles assigned to Associates in the Business Unit.void
setCustomer
(CustomerReference customer) The Customer that acts as an Associate in the Business Unit.void
setInheritedAssociateRoles
(AssociateRole... inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.void
setInheritedAssociateRoles
(List<AssociateRole> inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.void
setPermissions
(Permission... permissions) Permissions the Associate has in the Business Unit.void
setPermissions
(List<Permission> permissions) Permissions the Associate has in the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitAssociateResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getCustomer
The Customer that acts as an Associate in the Business Unit.
- Returns:
- customer
-
getAssociateRoles
Roles assigned to Associates in the Business Unit.
- Returns:
- associateRoles
-
getInheritedAssociateRoles
Roles inherited by Associates from the parent Business Unit.
- Returns:
- inheritedAssociateRoles
-
getPermissions
Permissions the Associate has in the Business Unit.
- Returns:
- permissions
-
setCustomer
The Customer that acts as an Associate in the Business Unit.
- Parameters:
customer
- value to be set
-
setAssociateRoles
Roles assigned to Associates in the Business Unit.
- Parameters:
associateRoles
- values to be set
-
setAssociateRoles
Roles assigned to Associates in the Business Unit.
- Parameters:
associateRoles
- values to be set
-
setInheritedAssociateRoles
Roles inherited by Associates from the parent Business Unit.
- Parameters:
inheritedAssociateRoles
- values to be set
-
setInheritedAssociateRoles
Roles inherited by Associates from the parent Business Unit.
- Parameters:
inheritedAssociateRoles
- values to be set
-
setPermissions
Permissions the Associate has in the Business Unit.
- Parameters:
permissions
- values to be set
-
setPermissions
Permissions the Associate has in the Business Unit.
- Parameters:
permissions
- values to be set
-
of
factory method- Returns:
- instance of BusinessUnitAssociateResponse
-
of
factory method to create a shallow copy BusinessUnitAssociateResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitAssociateResponse deepCopy(@Nullable BusinessUnitAssociateResponse template) factory method to create a deep copy of BusinessUnitAssociateResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitAssociateResponse- Returns:
- builder
-
builder
create builder for BusinessUnitAssociateResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitAssociateResponse
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
-