Class AssociateRoleAssignmentDraftBuilder
java.lang.Object
com.commercetools.api.models.business_unit.AssociateRoleAssignmentDraftBuilder
- All Implemented Interfaces:
Builder<AssociateRoleAssignmentDraft>
public class AssociateRoleAssignmentDraftBuilder
extends Object
implements Builder<AssociateRoleAssignmentDraft>
AssociateRoleAssignmentDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleAssignmentDraft associateRoleAssignmentDraft = AssociateRoleAssignmentDraft.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociateRole
(AssociateRoleResourceIdentifier associateRole) Role the Associate holds within a Business Unit.associateRole
(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifierBuilder> builder) Role the Associate holds within a Business Unit.build()
builds AssociateRoleAssignmentDraft with checking for non-null required valuesbuilds AssociateRoleAssignmentDraft without checking for non-null required valuesRole the Associate holds within a Business Unit.Determines whether the AssociateRoleAssignment can be inherited by child Business Units.inheritance
(AssociateRoleInheritanceMode inheritance) Determines whether the AssociateRoleAssignment can be inherited by child Business Units.of()
factory method for an instance of AssociateRoleAssignmentDraftBuilderof
(AssociateRoleAssignmentDraft template) create builder for AssociateRoleAssignmentDraft instancewithAssociateRole
(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifier> builder) Role the Associate holds within a Business Unit.
-
Constructor Details
-
AssociateRoleAssignmentDraftBuilder
public AssociateRoleAssignmentDraftBuilder()
-
-
Method Details
-
associateRole
public AssociateRoleAssignmentDraftBuilder associateRole(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifierBuilder> builder) Role the Associate holds within a Business Unit.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public AssociateRoleAssignmentDraftBuilder withAssociateRole(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifier> builder) Role the Associate holds within a Business Unit.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
associateRole
public AssociateRoleAssignmentDraftBuilder associateRole(AssociateRoleResourceIdentifier associateRole) Role the Associate holds within a Business Unit.
- Parameters:
associateRole
- value to be set- Returns:
- Builder
-
inheritance
public AssociateRoleAssignmentDraftBuilder inheritance(@Nullable AssociateRoleInheritanceMode inheritance) Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
- Parameters:
inheritance
- value to be set- Returns:
- Builder
-
getAssociateRole
Role the Associate holds within a Business Unit.
- Returns:
- associateRole
-
getInheritance
Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
- Returns:
- inheritance
-
build
builds AssociateRoleAssignmentDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRoleAssignmentDraft>
- Returns:
- AssociateRoleAssignmentDraft
-
buildUnchecked
builds AssociateRoleAssignmentDraft without checking for non-null required values- Returns:
- AssociateRoleAssignmentDraft
-
of
factory method for an instance of AssociateRoleAssignmentDraftBuilder- Returns:
- builder
-
of
create builder for AssociateRoleAssignmentDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-