Class CustomerKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.CustomerKeyReferenceBuilder
- All Implemented Interfaces:
Builder<CustomerKeyReference>
CustomerKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerKeyReference customerKeyReference = CustomerKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerKeyReference with checking for non-null required valuesbuilds CustomerKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keystatic CustomerKeyReferenceBuilder
of()
factory method for an instance of CustomerKeyReferenceBuilderstatic CustomerKeyReferenceBuilder
of
(CustomerKeyReference template) create builder for CustomerKeyReference instance
-
Constructor Details
-
CustomerKeyReferenceBuilder
public CustomerKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds CustomerKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerKeyReference>
- Returns:
- CustomerKeyReference
-
buildUnchecked
builds CustomerKeyReference without checking for non-null required values- Returns:
- CustomerKeyReference
-
of
factory method for an instance of CustomerKeyReferenceBuilder- Returns:
- builder
-
of
create builder for CustomerKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-