Class CustomerGroupKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.CustomerGroupKeyReferenceBuilder
- All Implemented Interfaces:
Builder<CustomerGroupKeyReference>
public class CustomerGroupKeyReferenceBuilder
extends Object
implements Builder<CustomerGroupKeyReference>
CustomerGroupKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerGroupKeyReference customerGroupKeyReference = CustomerGroupKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerGroupKeyReference with checking for non-null required valuesbuilds CustomerGroupKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keyof()
factory method for an instance of CustomerGroupKeyReferenceBuilderof
(CustomerGroupKeyReference template) create builder for CustomerGroupKeyReference instance
-
Constructor Details
-
CustomerGroupKeyReferenceBuilder
public CustomerGroupKeyReferenceBuilder()
-
-
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 CustomerGroupKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerGroupKeyReference>
- Returns:
- CustomerGroupKeyReference
-
buildUnchecked
builds CustomerGroupKeyReference without checking for non-null required values- Returns:
- CustomerGroupKeyReference
-
of
factory method for an instance of CustomerGroupKeyReferenceBuilder- Returns:
- builder
-
of
create builder for CustomerGroupKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-