Class ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder
java.lang.Object
com.commercetools.api.models.project.ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder
- All Implemented Interfaces:
Builder<ProjectSetBusinessUnitAssociateRoleOnCreationAction>
public class ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder
extends Object
implements Builder<ProjectSetBusinessUnitAssociateRoleOnCreationAction>
ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectSetBusinessUnitAssociateRoleOnCreationAction projectSetBusinessUnitAssociateRoleOnCreationAction = ProjectSetBusinessUnitAssociateRoleOnCreationAction.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociateRole
(AssociateRoleResourceIdentifier associateRole) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.associateRole
(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifierBuilder> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.build()
builds ProjectSetBusinessUnitAssociateRoleOnCreationAction with checking for non-null required valuesbuilds ProjectSetBusinessUnitAssociateRoleOnCreationAction without checking for non-null required valuesDefault Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.of()
factory method for an instance of ProjectSetBusinessUnitAssociateRoleOnCreationActionBuildercreate builder for ProjectSetBusinessUnitAssociateRoleOnCreationAction instancewithAssociateRole
(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifier> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
-
Constructor Details
-
ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder
public ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder()
-
-
Method Details
-
associateRole
public ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder associateRole(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifierBuilder> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder withAssociateRole(Function<AssociateRoleResourceIdentifierBuilder, AssociateRoleResourceIdentifier> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
associateRole
public ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder associateRole(AssociateRoleResourceIdentifier associateRole) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Parameters:
associateRole
- value to be set- Returns:
- Builder
-
getAssociateRole
Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Returns:
- associateRole
-
build
builds ProjectSetBusinessUnitAssociateRoleOnCreationAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectSetBusinessUnitAssociateRoleOnCreationAction>
- Returns:
- ProjectSetBusinessUnitAssociateRoleOnCreationAction
-
buildUnchecked
builds ProjectSetBusinessUnitAssociateRoleOnCreationAction without checking for non-null required values- Returns:
- ProjectSetBusinessUnitAssociateRoleOnCreationAction
-
of
factory method for an instance of ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder- Returns:
- builder
-
of
public static ProjectSetBusinessUnitAssociateRoleOnCreationActionBuilder of(ProjectSetBusinessUnitAssociateRoleOnCreationAction template) create builder for ProjectSetBusinessUnitAssociateRoleOnCreationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-