Class DateTimeFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.DateTimeFieldBuilder
- All Implemented Interfaces:
Builder<DateTimeField>
DateTimeFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DateTimeField dateTimeField = DateTimeField.builder()
.value(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DateTimeField with checking for non-null required valuesbuilds DateTimeField without checking for non-null required valuesgetValue()
value of value}static DateTimeFieldBuilder
of()
factory method for an instance of DateTimeFieldBuilderstatic DateTimeFieldBuilder
of
(DateTimeField template) create builder for DateTimeField instancevalue
(ZonedDateTime value) set the value to the value
-
Constructor Details
-
DateTimeFieldBuilder
public DateTimeFieldBuilder()
-
-
Method Details
-
value
set the value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
value of value}- Returns:
- value
-
build
builds DateTimeField with checking for non-null required values- Specified by:
build
in interfaceBuilder<DateTimeField>
- Returns:
- DateTimeField
-
buildUnchecked
builds DateTimeField without checking for non-null required values- Returns:
- DateTimeField
-
of
factory method for an instance of DateTimeFieldBuilder- Returns:
- builder
-
of
create builder for DateTimeField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-