Class ProductTailoringReferenceBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringReferenceBuilder
- All Implemented Interfaces:
Builder<ProductTailoringReference>
public class ProductTailoringReferenceBuilder
extends Object
implements Builder<ProductTailoringReference>
ProductTailoringReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringReference productTailoringReference = ProductTailoringReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringReference with checking for non-null required valuesbuilds ProductTailoringReference without checking for non-null required valuesgetId()
Unique identifier of the referenced ProductTailoring.getObj()
Contains the representation of the expanded ProductTailoring.Unique identifier of the referenced ProductTailoring.obj
(ProductTailoring obj) Contains the representation of the expanded ProductTailoring.Contains the representation of the expanded ProductTailoring.of()
factory method for an instance of ProductTailoringReferenceBuilderof
(ProductTailoringReference template) create builder for ProductTailoringReference instanceContains the representation of the expanded ProductTailoring.
-
Constructor Details
-
ProductTailoringReferenceBuilder
public ProductTailoringReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ProductTailoring.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
public ProductTailoringReferenceBuilder obj(Function<ProductTailoringBuilder, ProductTailoringBuilder> builder) Contains the representation of the expanded ProductTailoring. Only present in responses to requests with Reference Expansion for ProductTailoring.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
public ProductTailoringReferenceBuilder withObj(Function<ProductTailoringBuilder, ProductTailoring> builder) Contains the representation of the expanded ProductTailoring. Only present in responses to requests with Reference Expansion for ProductTailoring.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded ProductTailoring. Only present in responses to requests with Reference Expansion for ProductTailoring.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ProductTailoring.
- Returns:
- id
-
getObj
Contains the representation of the expanded ProductTailoring. Only present in responses to requests with Reference Expansion for ProductTailoring.
- Returns:
- obj
-
build
builds ProductTailoringReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringReference>
- Returns:
- ProductTailoringReference
-
buildUnchecked
builds ProductTailoringReference without checking for non-null required values- Returns:
- ProductTailoringReference
-
of
factory method for an instance of ProductTailoringReferenceBuilder- Returns:
- builder
-
of
create builder for ProductTailoringReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-