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 AttributeNestedTypeBuilderbuilder()builder factory method for AttributeNestedTypestatic AttributeNestedTypeBuilderbuilder(AttributeNestedType template) create builder for AttributeNestedType instancecopyDeep()static AttributeNestedTypedeepCopy(AttributeNestedType template) factory method to create a deep copy of AttributeNestedType@NotNull @Valid ProductTypeReferenceAttributes that can be stored as nested Attributes of the current Attribute.static AttributeNestedTypeof()factory methodstatic AttributeNestedTypeof(AttributeNestedType template) factory method to create a shallow copy AttributeNestedTypevoidsetTypeReference(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> TwithAttributeNestedType(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
-
copyDeep
AttributeNestedType copyDeep()- Specified by:
copyDeepin interfaceAttributeType
-
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
-