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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DateSetField with checking for non-null required valuesbuilds DateSetField without checking for non-null required valuesgetValue()
JSON array of date values in the formatYYYY-MM-DD
without duplicates.static DateSetFieldBuilder
of()
factory method for an instance of DateSetFieldBuilderstatic DateSetFieldBuilder
of
(DateSetField template) create builder for DateSetField instanceJSON array of date values in the formatYYYY-MM-DD
without duplicates.JSON array of date values in the formatYYYY-MM-DD
without duplicates.JSON array of date values in the formatYYYY-MM-DD
without duplicates.
-
Constructor Details
-
DateSetFieldBuilder
public DateSetFieldBuilder()
-
-
Method Details
-
value
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- Parameters:
value
- value to be set- Returns:
- Builder
-
value
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- 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
-