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