Interface DateTimeField
- All Superinterfaces:
CustomField
A field with a date time value.
Example to create an instance using the builder pattern
DateTimeField dateTimeField = DateTimeField.builder()
.value(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeFieldBuilder
builder()
builder factory method for DateTimeFieldstatic DateTimeFieldBuilder
builder
(DateTimeField template) create builder for DateTimeField instancestatic DateTimeField
deepCopy
(DateTimeField template) factory method to create a deep copy of DateTimeField@NotNull ZonedDateTime
getValue()
static DateTimeField
of()
factory methodstatic DateTimeField
of
(DateTimeField template) factory method to create a shallow copy DateTimeFieldvoid
setValue
(ZonedDateTime value) set valuestatic com.fasterxml.jackson.core.type.TypeReference<DateTimeField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDateTimeField
(Function<DateTimeField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
DATE_TIME
discriminator value for DateTimeField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of DateTimeField
-
of
factory method to create a shallow copy DateTimeField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DateTimeField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateTimeField- Returns:
- builder
-
builder
create builder for DateTimeField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDateTimeField
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
-