Interface ProductTailoringAttribute
public interface ProductTailoringAttribute
The same rules for name
and value
apply as for Attribute in Product Variants.
Example to create an instance using the builder pattern
ProductTailoringAttribute productTailoringAttribute = ProductTailoringAttribute.builder()
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringAttributebuilder
(ProductTailoringAttribute template) create builder for ProductTailoringAttribute instancestatic ProductTailoringAttribute
deepCopy
(ProductTailoringAttribute template) factory method to create a deep copy of ProductTailoringAttribute@NotNull String
getName()
Name of the Attribute.@NotNull Object
getValue()
The AttributeType determines the format of the Attributevalue
to be provided:static ProductTailoringAttribute
of()
factory methodstatic ProductTailoringAttribute
of
(ProductTailoringAttribute template) factory method to create a shallow copy ProductTailoringAttributevoid
Name of the Attribute.void
The AttributeType determines the format of the Attributevalue
to be provided:static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getName
Name of the Attribute.
- Returns:
- name
-
getValue
The AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use the
key
of the Plain Enum Value or Localized Enum Value objects, or the complete objects asvalue
. - For Localizable Text Type, use the LocalizedString object as
value
. - For Money Type Attributes, use the Money object as
value
. - For Set Type Attributes, use the entire
set
object asvalue
. - For Reference Type Attributes, use the Reference object as
value
.
Tailoring of Nested Type Attributes is not supported.
- Returns:
- value
- For Enum Type and Localized Enum Type, use the
-
setName
Name of the Attribute.
- Parameters:
name
- value to be set
-
setValue
The AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use the
key
of the Plain Enum Value or Localized Enum Value objects, or the complete objects asvalue
. - For Localizable Text Type, use the LocalizedString object as
value
. - For Money Type Attributes, use the Money object as
value
. - For Set Type Attributes, use the entire
set
object asvalue
. - For Reference Type Attributes, use the Reference object as
value
.
Tailoring of Nested Type Attributes is not supported.
- Parameters:
value
- value to be set
- For Enum Type and Localized Enum Type, use the
-
of
factory method- Returns:
- instance of ProductTailoringAttribute
-
of
factory method to create a shallow copy ProductTailoringAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductTailoringAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringAttribute- Returns:
- builder
-
builder
create builder for ProductTailoringAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringAttribute
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
-