Class BusinessUnitConfigurationBuilder
java.lang.Object
com.commercetools.api.models.project.BusinessUnitConfigurationBuilder
- All Implemented Interfaces:
Builder<BusinessUnitConfiguration>
public class BusinessUnitConfigurationBuilder
extends Object
implements Builder<BusinessUnitConfiguration>
BusinessUnitConfigurationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitConfiguration businessUnitConfiguration = BusinessUnitConfiguration.builder()
.myBusinessUnitStatusOnCreation(BusinessUnitConfigurationStatus.ACTIVE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitConfiguration with checking for non-null required valuesbuilds BusinessUnitConfiguration without checking for non-null required valuesDefault Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.Status of Business Units created using the My Business Unit endpoint.myBusinessUnitAssociateRoleOnCreation
(AssociateRoleKeyReference myBusinessUnitAssociateRoleOnCreation) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.myBusinessUnitAssociateRoleOnCreation
(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReferenceBuilder> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.myBusinessUnitStatusOnCreation
(BusinessUnitConfigurationStatus myBusinessUnitStatusOnCreation) Status of Business Units created using the My Business Unit endpoint.of()
factory method for an instance of BusinessUnitConfigurationBuilderof
(BusinessUnitConfiguration template) create builder for BusinessUnitConfiguration instancewithMyBusinessUnitAssociateRoleOnCreation
(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReference> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
-
Constructor Details
-
BusinessUnitConfigurationBuilder
public BusinessUnitConfigurationBuilder()
-
-
Method Details
-
myBusinessUnitStatusOnCreation
public BusinessUnitConfigurationBuilder myBusinessUnitStatusOnCreation(BusinessUnitConfigurationStatus myBusinessUnitStatusOnCreation) Status of Business Units created using the My Business Unit endpoint.
- Parameters:
myBusinessUnitStatusOnCreation
- value to be set- Returns:
- Builder
-
myBusinessUnitAssociateRoleOnCreation
public BusinessUnitConfigurationBuilder myBusinessUnitAssociateRoleOnCreation(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReferenceBuilder> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Parameters:
builder
- function to build the myBusinessUnitAssociateRoleOnCreation value- Returns:
- Builder
-
withMyBusinessUnitAssociateRoleOnCreation
public BusinessUnitConfigurationBuilder withMyBusinessUnitAssociateRoleOnCreation(Function<AssociateRoleKeyReferenceBuilder, AssociateRoleKeyReference> builder) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Parameters:
builder
- function to build the myBusinessUnitAssociateRoleOnCreation value- Returns:
- Builder
-
myBusinessUnitAssociateRoleOnCreation
public BusinessUnitConfigurationBuilder myBusinessUnitAssociateRoleOnCreation(@Nullable AssociateRoleKeyReference myBusinessUnitAssociateRoleOnCreation) Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Parameters:
myBusinessUnitAssociateRoleOnCreation
- value to be set- Returns:
- Builder
-
getMyBusinessUnitStatusOnCreation
Status of Business Units created using the My Business Unit endpoint.
- Returns:
- myBusinessUnitStatusOnCreation
-
getMyBusinessUnitAssociateRoleOnCreation
Default Associate Role assigned to the Associate creating a Business Unit using the My Business Unit endpoint.
- Returns:
- myBusinessUnitAssociateRoleOnCreation
-
build
builds BusinessUnitConfiguration with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitConfiguration>
- Returns:
- BusinessUnitConfiguration
-
buildUnchecked
builds BusinessUnitConfiguration without checking for non-null required values- Returns:
- BusinessUnitConfiguration
-
of
factory method for an instance of BusinessUnitConfigurationBuilder- Returns:
- builder
-
of
create builder for BusinessUnitConfiguration instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-