Class DateSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.DateSetFieldBuilder
- All Implemented Interfaces:
Builder<DateSetField>
DateSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DateSetField dateSetField = DateSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DateSetField with checking for non-null required valuesbuilds DateSetField without checking for non-null required valuesgetValue()
value of value}static DateSetFieldBuilder
of()
factory method for an instance of DateSetFieldBuilderstatic DateSetFieldBuilder
of
(DateSetField template) create builder for DateSetField instanceadd values to the valueset values to the valueset value to the value
-
Constructor Details
-
DateSetFieldBuilder
public DateSetFieldBuilder()
-
-
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
-
getValue
value of value}- Returns:
- value
-
build
builds DateSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<DateSetField>
- Returns:
- DateSetField
-
buildUnchecked
builds DateSetField without checking for non-null required values- Returns:
- DateSetField
-
of
factory method for an instance of DateSetFieldBuilder- Returns:
- builder
-
of
create builder for DateSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-