Class DateFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.DateFieldBuilder
DateFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DateField dateField = DateField.builder()
.value(LocalDate.parse("2022-01-01"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DateField with checking for non-null required valuesbuilds DateField without checking for non-null required valuesgetValue()
value of value}static DateFieldBuilder
of()
factory method for an instance of DateFieldBuilderstatic DateFieldBuilder
create builder for DateField instanceset the value to the value
-
Constructor Details
-
DateFieldBuilder
public DateFieldBuilder()
-
-
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 DateField with checking for non-null required values -
buildUnchecked
builds DateField without checking for non-null required values- Returns:
- DateField
-
of
factory method for an instance of DateFieldBuilder- Returns:
- builder
-
of
create builder for DateField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-