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