Class ReferenceSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.ReferenceSetFieldBuilder
- All Implemented Interfaces:
Builder<ReferenceSetField>
ReferenceSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReferenceSetField referenceSetField = ReferenceSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReferenceSetField with checking for non-null required valuesbuilds ReferenceSetField without checking for non-null required valuesgetValue()
value of value}static ReferenceSetFieldBuilder
of()
factory method for an instance of ReferenceSetFieldBuilderstatic ReferenceSetFieldBuilder
of
(ReferenceSetField template) create builder for ReferenceSetField instanceplusValue
(KeyReference... value) add values to the valueplusValue
(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) add a value to the value using the builder functionvalue
(KeyReference... value) set values to the valuevalue
(List<KeyReference> value) set value to the valuewithValue
(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) set the value to the value using the builder function
-
Constructor Details
-
ReferenceSetFieldBuilder
public ReferenceSetFieldBuilder()
-
-
Method Details
-
value
set values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
value
set value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
add values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
public ReferenceSetFieldBuilder plusValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) add a value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
public ReferenceSetFieldBuilder withValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) set the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
getValue
value of value}- Returns:
- value
-
build
builds ReferenceSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReferenceSetField>
- Returns:
- ReferenceSetField
-
buildUnchecked
builds ReferenceSetField without checking for non-null required values- Returns:
- ReferenceSetField
-
of
factory method for an instance of ReferenceSetFieldBuilder- Returns:
- builder
-
of
create builder for ReferenceSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-