Class InheritedAssociateRoleAssignmentBuilder
java.lang.Object
com.commercetools.api.models.business_unit.InheritedAssociateRoleAssignmentBuilder
- All Implemented Interfaces:
Builder<InheritedAssociateRoleAssignment>
public class InheritedAssociateRoleAssignmentBuilder
extends Object
implements Builder<InheritedAssociateRoleAssignment>
InheritedAssociateRoleAssignmentBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InheritedAssociateRoleAssignment inheritedAssociateRoleAssignment = InheritedAssociateRoleAssignment.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.source(sourceBuilder -> sourceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociateRole
(AssociateRoleKeyReference associateRole) Inherited role the Associate holds within a Business Unit.Inherited role the Associate holds within a Business Unit.build()
builds InheritedAssociateRoleAssignment with checking for non-null required valuesbuilds InheritedAssociateRoleAssignment without checking for non-null required valuesInherited role the Associate holds within a Business Unit.Reference to the parent Business Unit where the assignment is defined explicitly.of()
factory method for an instance of InheritedAssociateRoleAssignmentBuilderof
(InheritedAssociateRoleAssignment template) create builder for InheritedAssociateRoleAssignment instancesource
(BusinessUnitKeyReference source) Reference to the parent Business Unit where the assignment is defined explicitly.Reference to the parent Business Unit where the assignment is defined explicitly.Inherited role the Associate holds within a Business Unit.Reference to the parent Business Unit where the assignment is defined explicitly.
-
Constructor Details
-
InheritedAssociateRoleAssignmentBuilder
public InheritedAssociateRoleAssignmentBuilder()
-
-
Method Details
-
associateRole
public InheritedAssociateRoleAssignmentBuilder associateRole(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReferenceBuilder> builder) Inherited role the Associate holds within a Business Unit.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public InheritedAssociateRoleAssignmentBuilder withAssociateRole(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReference> builder) Inherited role the Associate holds within a Business Unit.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
associateRole
public InheritedAssociateRoleAssignmentBuilder associateRole(AssociateRoleKeyReference associateRole) Inherited role the Associate holds within a Business Unit.
- Parameters:
associateRole
- value to be set- Returns:
- Builder
-
source
public InheritedAssociateRoleAssignmentBuilder source(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Reference to the parent Business Unit where the assignment is defined explicitly.
- Parameters:
builder
- function to build the source value- Returns:
- Builder
-
withSource
public InheritedAssociateRoleAssignmentBuilder withSource(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Reference to the parent Business Unit where the assignment is defined explicitly.
- Parameters:
builder
- function to build the source value- Returns:
- Builder
-
source
Reference to the parent Business Unit where the assignment is defined explicitly.
- Parameters:
source
- value to be set- Returns:
- Builder
-
getAssociateRole
Inherited role the Associate holds within a Business Unit.
- Returns:
- associateRole
-
getSource
Reference to the parent Business Unit where the assignment is defined explicitly.
- Returns:
- source
-
build
builds InheritedAssociateRoleAssignment with checking for non-null required values- Specified by:
build
in interfaceBuilder<InheritedAssociateRoleAssignment>
- Returns:
- InheritedAssociateRoleAssignment
-
buildUnchecked
builds InheritedAssociateRoleAssignment without checking for non-null required values- Returns:
- InheritedAssociateRoleAssignment
-
of
factory method for an instance of InheritedAssociateRoleAssignmentBuilder- Returns:
- builder
-
of
create builder for InheritedAssociateRoleAssignment instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-