Class BusinessUnitKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitKeyReference with checking for non-null required valuesbuilds BusinessUnitKeyReference without checking for non-null required valuesgetKey()
User-defined unique identifier of the referenced Type.User-defined unique identifier of the referenced Type.of()
factory method for an instance of BusinessUnitKeyReferenceBuilderof
(BusinessUnitKeyReference template) create builder for BusinessUnitKeyReference instance
-
Constructor Details
-
BusinessUnitKeyReferenceBuilder
public BusinessUnitKeyReferenceBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the referenced Type.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the referenced Type.
- 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
-