Interface AttributeNestedType
- All Superinterfaces:
AttributeType
Attribute type for nesting Attributes based on some existing ProductType. It does not support isSearchable
and is not supported in queries. The only supported AttributeConstraint is None
.
Example to create an instance using the builder pattern
AttributeNestedType attributeNestedType = AttributeNestedType.builder()
.typeReference(typeReferenceBuilder -> typeReferenceBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeNestedTypeBuilder
builder()
builder factory method for AttributeNestedTypestatic AttributeNestedTypeBuilder
builder
(AttributeNestedType template) create builder for AttributeNestedType instancestatic AttributeNestedType
deepCopy
(AttributeNestedType template) factory method to create a deep copy of AttributeNestedType@NotNull @Valid ProductTypeReference
Attributes that can be stored as nested Attributes of the current Attribute.static AttributeNestedType
of()
factory methodstatic AttributeNestedType
of
(AttributeNestedType template) factory method to create a shallow copy AttributeNestedTypevoid
setTypeReference
(ProductTypeReference typeReference) Attributes that can be stored as nested Attributes of the current Attribute.static com.fasterxml.jackson.core.type.TypeReference<AttributeNestedType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeNestedType
(Function<AttributeNestedType, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.AttributeType
getName, withAttributeType
-
Field Details
-
NESTED
discriminator value for AttributeNestedType- See Also:
-
-
Method Details
-
getTypeReference
Attributes that can be stored as nested Attributes of the current Attribute.
- Returns:
- typeReference
-
setTypeReference
Attributes that can be stored as nested Attributes of the current Attribute.
- Parameters:
typeReference
- value to be set
-
of
factory method- Returns:
- instance of AttributeNestedType
-
of
factory method to create a shallow copy AttributeNestedType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributeNestedType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeNestedType- Returns:
- builder
-
builder
create builder for AttributeNestedType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeNestedType
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
-