Class CategoryReferenceBuilder
java.lang.Object
com.commercetools.ml.models.common.CategoryReferenceBuilder
- All Implemented Interfaces:
Builder<CategoryReference>
CategoryReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryReference categoryReference = CategoryReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategoryReference with checking for non-null required valuesbuilds CategoryReference without checking for non-null required valuesgetId()
value of id}set the value to the idstatic CategoryReferenceBuilder
of()
factory method for an instance of CategoryReferenceBuilderstatic CategoryReferenceBuilder
of
(CategoryReference template) create builder for CategoryReference instance
-
Constructor Details
-
CategoryReferenceBuilder
public CategoryReferenceBuilder()
-
-
Method Details
-
id
set the value to the id- Parameters:
id
- value to be set- Returns:
- Builder
-
getId
value of id}- Returns:
- id
-
build
builds CategoryReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryReference>
- Returns:
- CategoryReference
-
buildUnchecked
builds CategoryReference without checking for non-null required values- Returns:
- CategoryReference
-
of
factory method for an instance of CategoryReferenceBuilder- Returns:
- builder
-
of
create builder for CategoryReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-