Class CustomObjectKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.CustomObjectKeyReferenceBuilder
- All Implemented Interfaces:
Builder<CustomObjectKeyReference>
public class CustomObjectKeyReferenceBuilder
extends Object
implements Builder<CustomObjectKeyReference>
CustomObjectKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomObjectKeyReference customObjectKeyReference = CustomObjectKeyReference.builder()
.key("{key}")
.container("{container}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomObjectKeyReference with checking for non-null required valuesbuilds CustomObjectKeyReference without checking for non-null required valuesset the value to the containervalue of container}getKey()
value of key}set the value to the keyof()
factory method for an instance of CustomObjectKeyReferenceBuilderof
(CustomObjectKeyReference template) create builder for CustomObjectKeyReference instance
-
Constructor Details
-
CustomObjectKeyReferenceBuilder
public CustomObjectKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
container
set the value to the container- Parameters:
container
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
getContainer
value of container}- Returns:
- container
-
build
builds CustomObjectKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomObjectKeyReference>
- Returns:
- CustomObjectKeyReference
-
buildUnchecked
builds CustomObjectKeyReference without checking for non-null required values- Returns:
- CustomObjectKeyReference
-
of
factory method for an instance of CustomObjectKeyReferenceBuilder- Returns:
- builder
-
of
create builder for CustomObjectKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-