Class CustomFieldReferenceTypeBuilder
java.lang.Object
com.commercetools.api.models.type.CustomFieldReferenceTypeBuilder
- All Implemented Interfaces:
Builder<CustomFieldReferenceType>
public class CustomFieldReferenceTypeBuilder
extends Object
implements Builder<CustomFieldReferenceType>
CustomFieldReferenceTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFieldReferenceType customFieldReferenceType = CustomFieldReferenceType.builder()
.referenceTypeId(CustomFieldReferenceValue.APPROVAL_FLOW)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomFieldReferenceType with checking for non-null required valuesbuilds CustomFieldReferenceType without checking for non-null required valuesResource type the Custom Field can reference.of()
factory method for an instance of CustomFieldReferenceTypeBuilderof
(CustomFieldReferenceType template) create builder for CustomFieldReferenceType instancereferenceTypeId
(CustomFieldReferenceValue referenceTypeId) Resource type the Custom Field can reference.
-
Constructor Details
-
CustomFieldReferenceTypeBuilder
public CustomFieldReferenceTypeBuilder()
-
-
Method Details
-
referenceTypeId
Resource type the Custom Field can reference.
- Parameters:
referenceTypeId
- value to be set- Returns:
- Builder
-
getReferenceTypeId
Resource type the Custom Field can reference.
- Returns:
- referenceTypeId
-
build
builds CustomFieldReferenceType with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomFieldReferenceType>
- Returns:
- CustomFieldReferenceType
-
buildUnchecked
builds CustomFieldReferenceType without checking for non-null required values- Returns:
- CustomFieldReferenceType
-
of
factory method for an instance of CustomFieldReferenceTypeBuilder- Returns:
- builder
-
of
create builder for CustomFieldReferenceType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-