Class ProductTypeReferenceBuilder
java.lang.Object
com.commercetools.ml.models.common.ProductTypeReferenceBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductTypeReference>
public class ProductTypeReferenceBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<ProductTypeReference>
ProductTypeReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeReference productTypeReference = ProductTypeReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductTypeReference with checking for non-null required valuesbuilds ProductTypeReference without checking for non-null required valuesgetId()value of id}set the value to the idstatic ProductTypeReferenceBuilderof()factory method for an instance of ProductTypeReferenceBuilderstatic ProductTypeReferenceBuilderof(ProductTypeReference template) create builder for ProductTypeReference instance
-
Constructor Details
-
ProductTypeReferenceBuilder
public ProductTypeReferenceBuilder()
-
-
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 ProductTypeReference with checking for non-null required values- Specified by:
buildin interfaceio.vrap.rmf.base.client.Builder<ProductTypeReference>- Returns:
- ProductTypeReference
-
buildUnchecked
builds ProductTypeReference without checking for non-null required values- Returns:
- ProductTypeReference
-
of
factory method for an instance of ProductTypeReferenceBuilder- Returns:
- builder
-
of
create builder for ProductTypeReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-