Class TimeSetAttributeBuilder
- All Implemented Interfaces:
Builder<TimeSetAttribute>
Example to create an instance using the builder pattern
TimeSetAttribute timeSetAttribute = TimeSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds TimeSetAttribute with checking for non-null required valuesbuilds TimeSetAttribute without checking for non-null required valuesgetName()Required if used for ProductVariantImport.getValue()A set of time values in the formatHH:mm:ss.SSS.Required if used for ProductVariantImport.static TimeSetAttributeBuilderof()factory method for an instance of TimeSetAttributeBuilderstatic TimeSetAttributeBuilderof(TimeSetAttribute template) create builder for TimeSetAttribute instanceA set of time values in the formatHH:mm:ss.SSS.A set of time values in the formatHH:mm:ss.SSS.A set of time values in the formatHH:mm:ss.SSS.
-
Constructor Details
-
TimeSetAttributeBuilder
public TimeSetAttributeBuilder()
-
-
Method Details
-
name
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
nameof an AttributeDefinition of the Product Type.- Parameters:
name- value to be set- Returns:
- Builder
-
value
A set 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:mmorZfor UTC.- Parameters:
value- value to be set- Returns:
- Builder
-
value
A set 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:mmorZfor UTC.- Parameters:
value- value to be set- Returns:
- Builder
-
plusValue
A set 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:mmorZfor 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
nameof an AttributeDefinition of the Product Type.- Returns:
- name
-
getValue
A set 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:mmorZfor UTC.- Returns:
- value
-
build
builds TimeSetAttribute with checking for non-null required values- Specified by:
buildin interfaceBuilder<TimeSetAttribute>- Returns:
- TimeSetAttribute
-
buildUnchecked
builds TimeSetAttribute without checking for non-null required values- Returns:
- TimeSetAttribute
-
of
factory method for an instance of TimeSetAttributeBuilder- Returns:
- builder
-
of
create builder for TimeSetAttribute instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-