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