Class DateTimeSetAttributeBuilder
- All Implemented Interfaces:
Builder<DateTimeSetAttribute>
Example to create an instance using the builder pattern
DateTimeSetAttribute dateTimeSetAttribute = DateTimeSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DateTimeSetAttribute with checking for non-null required valuesbuilds DateTimeSetAttribute without checking for non-null required valuesgetName()
Required if used for ProductVariantImport.getValue()
A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
.Required if used for ProductVariantImport.static DateTimeSetAttributeBuilder
of()
factory method for an instance of DateTimeSetAttributeBuilderstatic DateTimeSetAttributeBuilder
of
(DateTimeSetAttribute template) create builder for DateTimeSetAttribute instanceplusValue
(ZonedDateTime... value) A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
.value
(ZonedDateTime... value) A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
.value
(List<ZonedDateTime> value) A set of dates with time in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
.
-
Constructor Details
-
DateTimeSetAttributeBuilder
public DateTimeSetAttributeBuilder()
-
-
Method Details
-
name
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
name
of an AttributeDefinition of the Product Type.- Parameters:
name
- value to be set- Returns:
- Builder
-
value
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:mm
orZ
for UTC.- Parameters:
value
- value to be set- Returns:
- Builder
-
value
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:mm
orZ
for UTC.- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
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:mm
orZ
for UTC.- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
name
of an AttributeDefinition of the Product Type.- Returns:
- name
-
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:mm
orZ
for UTC.- Returns:
- value
-
build
builds DateTimeSetAttribute with checking for non-null required values- Specified by:
build
in interfaceBuilder<DateTimeSetAttribute>
- Returns:
- DateTimeSetAttribute
-
buildUnchecked
builds DateTimeSetAttribute without checking for non-null required values- Returns:
- DateTimeSetAttribute
-
of
factory method for an instance of DateTimeSetAttributeBuilder- Returns:
- builder
-
of
create builder for DateTimeSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-