Interface DateTimeSetAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a set of dates with time.
Example to create an instance using the builder pattern
DateTimeSetAttribute dateTimeSetAttribute = DateTimeSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DateTimeSetAttribute -
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeSetAttributeBuilderbuilder()builder factory method for DateTimeSetAttributestatic DateTimeSetAttributeBuilderbuilder(DateTimeSetAttribute template) create builder for DateTimeSetAttribute instancecopyDeep()static DateTimeSetAttributedeepCopy(DateTimeSetAttribute template) factory method to create a deep copy of DateTimeSetAttribute@NotNull List<ZonedDateTime>getValue()A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ.static DateTimeSetAttributeof()factory methodstatic DateTimeSetAttributeof(DateTimeSetAttribute template) factory method to create a shallow copy DateTimeSetAttributevoidsetValue(ZonedDateTime... value) A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ.voidsetValue(List<ZonedDateTime> value) A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ.static com.fasterxml.jackson.core.type.TypeReference<DateTimeSetAttribute>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithDateTimeSetAttribute(Function<DateTimeSetAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
DATETIME_SET
discriminator value for DateTimeSetAttribute- See Also:
-
-
Method Details
-
getValue
A set of dates with time in the format
YYYY-MM-DDTHH:mm:ss.SSSZ. 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:mmorZfor UTC.- Returns:
- value
-
setValue
A set of dates with time in the format
YYYY-MM-DDTHH:mm:ss.SSSZ. 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:mmorZfor UTC.- Parameters:
value- values to be set
-
setValue
A set of dates with time in the format
YYYY-MM-DDTHH:mm:ss.SSSZ. 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:mmorZfor UTC.- Parameters:
value- values to be set
-
of
factory method- Returns:
- instance of DateTimeSetAttribute
-
of
factory method to create a shallow copy DateTimeSetAttribute- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DateTimeSetAttribute copyDeep() -
deepCopy
factory method to create a deep copy of DateTimeSetAttribute- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateTimeSetAttribute- Returns:
- builder
-
builder
create builder for DateTimeSetAttribute instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDateTimeSetAttribute
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
-