Class AssociateRoleAssignmentDraftBuilder
java.lang.Object
com.commercetools.importapi.models.business_units.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)
.inheritance(AssociateRoleInheritanceMode.ENABLED)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociateRole
(AssociateRoleKeyReference associateRole) The role to assign to the Associate.The role to assign to the Associate.build()
builds AssociateRoleAssignmentDraft with checking for non-null required valuesbuilds AssociateRoleAssignmentDraft without checking for non-null required valuesThe role to assign to the Associate.Determines whether the AssociateRole is inherited.inheritance
(AssociateRoleInheritanceMode inheritance) Determines whether the AssociateRole is inherited.of()
factory method for an instance of AssociateRoleAssignmentDraftBuilderof
(AssociateRoleAssignmentDraft template) create builder for AssociateRoleAssignmentDraft instanceThe role to assign to the Associate.
-
Constructor Details
-
AssociateRoleAssignmentDraftBuilder
public AssociateRoleAssignmentDraftBuilder()
-
-
Method Details
-
associateRole
public AssociateRoleAssignmentDraftBuilder associateRole(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReferenceBuilder> builder) The role to assign to the Associate.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public AssociateRoleAssignmentDraftBuilder withAssociateRole(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReference> builder) The role to assign to the Associate.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
associateRole
The role to assign to the Associate.
- Parameters:
associateRole
- value to be set- Returns:
- Builder
-
inheritance
Determines whether the AssociateRole is inherited. If
Disabled
, the AssociateRole is not inherited from a parent Business Unit.- Parameters:
inheritance
- value to be set- Returns:
- Builder
-
getAssociateRole
The role to assign to the Associate.
- Returns:
- associateRole
-
getInheritance
Determines whether the AssociateRole is inherited. If
Disabled
, the AssociateRole is not inherited from a parent Business Unit.- 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
-