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