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