Class BusinessUnitKeyReferenceBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder
- All Implemented Interfaces:
Builder<BusinessUnitKeyReference>
public class BusinessUnitKeyReferenceBuilder
extends Object
implements Builder<BusinessUnitKeyReference>
BusinessUnitKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitKeyReference businessUnitKeyReference = BusinessUnitKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitKeyReference with checking for non-null required valuesbuilds BusinessUnitKeyReference without checking for non-null required valuesgetKey()
Unique and immutable key of the referenced BusinessUnit.Unique and immutable key of the referenced BusinessUnit.of()
factory method for an instance of BusinessUnitKeyReferenceBuilderof
(BusinessUnitKeyReference template) create builder for BusinessUnitKeyReference instance
-
Constructor Details
-
BusinessUnitKeyReferenceBuilder
public BusinessUnitKeyReferenceBuilder()
-
-
Method Details
-
key
Unique and immutable key of the referenced BusinessUnit.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Unique and immutable key of the referenced BusinessUnit.
- Returns:
- key
-
build
builds BusinessUnitKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitKeyReference>
- Returns:
- BusinessUnitKeyReference
-
buildUnchecked
builds BusinessUnitKeyReference without checking for non-null required values- Returns:
- BusinessUnitKeyReference
-
of
factory method for an instance of BusinessUnitKeyReferenceBuilder- Returns:
- builder
-
of
create builder for BusinessUnitKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-