Class CategoryReferenceBuilder
java.lang.Object
com.commercetools.api.models.category.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CategoryReference with checking for non-null required valuesbuilds CategoryReference without checking for non-null required valuesgetId()Unique identifier of the referenced Category.getObj()Contains the representation of the expanded Category.Unique identifier of the referenced Category.Contains the representation of the expanded Category.obj(Function<CategoryBuilder, CategoryBuilder> builder) Contains the representation of the expanded Category.static CategoryReferenceBuilderof()factory method for an instance of CategoryReferenceBuilderstatic CategoryReferenceBuilderof(CategoryReference template) create builder for CategoryReference instancewithObj(Function<CategoryBuilder, Category> builder) Contains the representation of the expanded Category.
-
Constructor Details
-
CategoryReferenceBuilder
public CategoryReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Category.
- Parameters:
id- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Category. Only present in responses to requests with Reference Expansion for Categories.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Category. Only present in responses to requests with Reference Expansion for Categories.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Category. Only present in responses to requests with Reference Expansion for Categories.
- Parameters:
obj- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Category.
- Returns:
- id
-
getObj
Contains the representation of the expanded Category. Only present in responses to requests with Reference Expansion for Categories.
- Returns:
- obj
-
build
builds CategoryReference with checking for non-null required values- Specified by:
buildin 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
-