Class BusinessUnitAssociateResponseBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAssociateResponse>
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRoles assigned to Associates in the Business Unit.Roles inherited by Associates from the parent Business Unit.associateRoles
(AssociateRole... associateRoles) Roles assigned to Associates in the Business Unit.associateRoles
(List<AssociateRole> associateRoles) Roles assigned to Associates in the Business Unit.build()
builds BusinessUnitAssociateResponse with checking for non-null required valuesbuilds BusinessUnitAssociateResponse without checking for non-null required valuescustomer
(CustomerReference customer) The Customer that acts as an Associate in the Business Unit.The Customer that acts as an Associate in the Business Unit.Roles assigned to Associates in the Business Unit.The Customer that acts as an Associate in the Business Unit.Roles inherited by Associates from the parent Business Unit.Permissions the Associate has in the Business Unit.inheritedAssociateRoles
(AssociateRole... inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.inheritedAssociateRoles
(List<AssociateRole> inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.of()
factory method for an instance of BusinessUnitAssociateResponseBuilderof
(BusinessUnitAssociateResponse template) create builder for BusinessUnitAssociateResponse instancepermissions
(Permission... permissions) Permissions the Associate has in the Business Unit.permissions
(List<Permission> permissions) Permissions the Associate has in the Business Unit.plusAssociateRoles
(AssociateRole... associateRoles) Roles assigned to Associates in the Business Unit.Roles assigned to Associates in the Business Unit.plusInheritedAssociateRoles
(AssociateRole... inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.Roles inherited by Associates from the parent Business Unit.plusPermissions
(Permission... permissions) Permissions the Associate has in the Business Unit.Roles assigned to Associates in the Business Unit.Roles inherited by Associates from the parent Business Unit.Roles assigned to Associates in the Business Unit.The Customer that acts as an Associate in the Business Unit.Roles inherited by Associates from the parent Business Unit.
-
Constructor Details
-
BusinessUnitAssociateResponseBuilder
public BusinessUnitAssociateResponseBuilder()
-
-
Method Details
-
customer
public BusinessUnitAssociateResponseBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) The Customer that acts as an Associate in the Business Unit.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public BusinessUnitAssociateResponseBuilder withCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) The Customer that acts as an Associate in the Business Unit.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Customer that acts as an Associate in the Business Unit.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
associateRoles
Roles assigned to Associates in the Business Unit.
- Parameters:
associateRoles
- value to be set- Returns:
- Builder
-
associateRoles
Roles assigned to Associates in the Business Unit.
- Parameters:
associateRoles
- value to be set- Returns:
- Builder
-
plusAssociateRoles
Roles assigned to Associates in the Business Unit.
- Parameters:
associateRoles
- value to be set- Returns:
- Builder
-
plusAssociateRoles
public BusinessUnitAssociateResponseBuilder plusAssociateRoles(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) Roles assigned to Associates in the Business Unit.
- Parameters:
builder
- function to build the associateRoles value- Returns:
- Builder
-
withAssociateRoles
public BusinessUnitAssociateResponseBuilder withAssociateRoles(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) Roles assigned to Associates in the Business Unit.
- Parameters:
builder
- function to build the associateRoles value- Returns:
- Builder
-
addAssociateRoles
public BusinessUnitAssociateResponseBuilder addAssociateRoles(Function<AssociateRoleBuilder, AssociateRole> builder) Roles assigned to Associates in the Business Unit.
- Parameters:
builder
- function to build the associateRoles value- Returns:
- Builder
-
setAssociateRoles
public BusinessUnitAssociateResponseBuilder setAssociateRoles(Function<AssociateRoleBuilder, AssociateRole> builder) Roles assigned to Associates in the Business Unit.
- Parameters:
builder
- function to build the associateRoles value- Returns:
- Builder
-
inheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder inheritedAssociateRoles(AssociateRole... inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.
- Parameters:
inheritedAssociateRoles
- value to be set- Returns:
- Builder
-
inheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder inheritedAssociateRoles(List<AssociateRole> inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.
- Parameters:
inheritedAssociateRoles
- value to be set- Returns:
- Builder
-
plusInheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder plusInheritedAssociateRoles(AssociateRole... inheritedAssociateRoles) Roles inherited by Associates from the parent Business Unit.
- Parameters:
inheritedAssociateRoles
- value to be set- Returns:
- Builder
-
plusInheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder plusInheritedAssociateRoles(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) Roles inherited by Associates from the parent Business Unit.
- Parameters:
builder
- function to build the inheritedAssociateRoles value- Returns:
- Builder
-
withInheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder withInheritedAssociateRoles(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) Roles inherited by Associates from the parent Business Unit.
- Parameters:
builder
- function to build the inheritedAssociateRoles value- Returns:
- Builder
-
addInheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder addInheritedAssociateRoles(Function<AssociateRoleBuilder, AssociateRole> builder) Roles inherited by Associates from the parent Business Unit.
- Parameters:
builder
- function to build the inheritedAssociateRoles value- Returns:
- Builder
-
setInheritedAssociateRoles
public BusinessUnitAssociateResponseBuilder setInheritedAssociateRoles(Function<AssociateRoleBuilder, AssociateRole> builder) Roles inherited by Associates from the parent Business Unit.
- Parameters:
builder
- function to build the inheritedAssociateRoles value- Returns:
- Builder
-
permissions
Permissions the Associate has in the Business Unit.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
permissions
Permissions the Associate has in the Business Unit.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
plusPermissions
Permissions the Associate has in the Business Unit.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
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
-
build
builds BusinessUnitAssociateResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAssociateResponse>
- Returns:
- BusinessUnitAssociateResponse
-
buildUnchecked
builds BusinessUnitAssociateResponse without checking for non-null required values- Returns:
- BusinessUnitAssociateResponse
-
of
factory method for an instance of BusinessUnitAssociateResponseBuilder- Returns:
- builder
-
of
create builder for BusinessUnitAssociateResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-