Class BusinessUnitResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<BusinessUnitResourceIdentifier>
public class BusinessUnitResourceIdentifierBuilder
extends Object
implements Builder<BusinessUnitResourceIdentifier>
BusinessUnitResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitResourceIdentifier businessUnitResourceIdentifier = BusinessUnitResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitResourceIdentifier with checking for non-null required valuesbuilds BusinessUnitResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced BusinessUnit.getKey()
Unique key of the referenced BusinessUnit.Unique identifier of the referenced BusinessUnit.Unique key of the referenced BusinessUnit.of()
factory method for an instance of BusinessUnitResourceIdentifierBuilderof
(BusinessUnitResourceIdentifier template) create builder for BusinessUnitResourceIdentifier instance
-
Constructor Details
-
BusinessUnitResourceIdentifierBuilder
public BusinessUnitResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced BusinessUnit. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
Unique key of the referenced BusinessUnit. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced BusinessUnit. Required if
key
is absent.- Returns:
- id
-
getKey
Unique key of the referenced BusinessUnit. Required if
id
is absent.- Returns:
- key
-
build
builds BusinessUnitResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitResourceIdentifier>
- Returns:
- BusinessUnitResourceIdentifier
-
buildUnchecked
builds BusinessUnitResourceIdentifier without checking for non-null required values- Returns:
- BusinessUnitResourceIdentifier
-
of
factory method for an instance of BusinessUnitResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for BusinessUnitResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-