Interface TimeAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a time.
Example to create an instance using the builder pattern
TimeAttribute timeAttribute = TimeAttribute.builder()
.value(LocalTime.parse("12:00:00.301"))
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeAttributeBuilder
builder()
builder factory method for TimeAttributestatic TimeAttributeBuilder
builder
(TimeAttribute template) create builder for TimeAttribute instancestatic TimeAttribute
deepCopy
(TimeAttribute template) factory method to create a deep copy of TimeAttribute@NotNull LocalTime
getValue()
static TimeAttribute
of()
factory methodstatic TimeAttribute
of
(TimeAttribute template) factory method to create a shallow copy TimeAttributevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<TimeAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTimeAttribute
(Function<TimeAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
TIME
discriminator value for TimeAttribute- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of TimeAttribute
-
of
factory method to create a shallow copy TimeAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TimeAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TimeAttribute- Returns:
- builder
-
builder
create builder for TimeAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTimeAttribute
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
-