Interface TimeSetField
- All Superinterfaces:
CustomField
A field with a time set value.
Example to create an instance using the builder pattern
TimeSetField timeSetField = TimeSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeSetFieldBuilder
builder()
builder factory method for TimeSetFieldstatic TimeSetFieldBuilder
builder
(TimeSetField template) create builder for TimeSetField instancecopyDeep()
static TimeSetField
deepCopy
(TimeSetField template) factory method to create a deep copy of TimeSetFieldgetValue()
JSON array of time values in the formatHH:mm:ss.SSS
.static TimeSetField
of()
factory methodstatic TimeSetField
of
(TimeSetField template) factory method to create a shallow copy TimeSetFieldvoid
JSON array of time values in the formatHH:mm:ss.SSS
.void
JSON array of time values in the formatHH:mm:ss.SSS
.static com.fasterxml.jackson.core.type.TypeReference<TimeSetField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTimeSetField
(Function<TimeSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
TIME_SET
discriminator value for TimeSetField- See Also:
-
-
Method Details
-
getValue
JSON array of time values in the format
HH:mm:ss.SSS
. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mm
orZ
for UTC. The order of items in the array is not fixed.- Returns:
- value
-
setValue
JSON array of time values in the format
HH:mm:ss.SSS
. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mm
orZ
for UTC. The order of items in the array is not fixed.- Parameters:
value
- values to be set
-
setValue
JSON array of time values in the format
HH:mm:ss.SSS
. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mm
orZ
for UTC. The order of items in the array is not fixed.- Parameters:
value
- values to be set
-
of
factory method- Returns:
- instance of TimeSetField
-
of
factory method to create a shallow copy TimeSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
TimeSetField copyDeep()- Specified by:
copyDeep
in interfaceCustomField
-
deepCopy
factory method to create a deep copy of TimeSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TimeSetField- Returns:
- builder
-
builder
create builder for TimeSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTimeSetField
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-