Interface AttributeGroupDraft
- All Superinterfaces:
Draft<AttributeGroupDraft>
,WithKey
AttributeGroupDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeGroupDraft attributeGroupDraft = AttributeGroupDraft.builder()
.name(nameBuilder -> nameBuilder)
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeGroupDraftBuilder
builder()
builder factory method for AttributeGroupDraftstatic AttributeGroupDraftBuilder
builder
(AttributeGroupDraft template) create builder for AttributeGroupDraft instancestatic AttributeGroupDraft
deepCopy
(AttributeGroupDraft template) factory method to create a deep copy of AttributeGroupDraft@NotNull @Valid List<AttributeReference>
Attributes with unique values.@Valid LocalizedString
Description of the AttributeGroup.getKey()
User-defined unique identifier for the AttributeGroup.@NotNull @Valid LocalizedString
getName()
Name of the AttributeGroup.static AttributeGroupDraft
of()
factory methodstatic AttributeGroupDraft
of
(AttributeGroupDraft template) factory method to create a shallow copy AttributeGroupDraftvoid
setAttributes
(AttributeReference... attributes) Attributes with unique values.void
setAttributes
(List<AttributeReference> attributes) Attributes with unique values.void
setDescription
(LocalizedString description) Description of the AttributeGroup.void
User-defined unique identifier for the AttributeGroup.void
setName
(LocalizedString name) Name of the AttributeGroup.static com.fasterxml.jackson.core.type.TypeReference<AttributeGroupDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeGroupDraft
(Function<AttributeGroupDraft, T> helper) accessor map function
-
Method Details
-
getName
Name of the AttributeGroup.
- Returns:
- name
-
getDescription
Description of the AttributeGroup.
- Returns:
- description
-
getAttributes
Attributes with unique values.
- Returns:
- attributes
-
getKey
String getKey()User-defined unique identifier for the AttributeGroup.
-
setName
Name of the AttributeGroup.
- Parameters:
name
- value to be set
-
setDescription
Description of the AttributeGroup.
- Parameters:
description
- value to be set
-
setAttributes
Attributes with unique values.
- Parameters:
attributes
- values to be set
-
setAttributes
Attributes with unique values.
- Parameters:
attributes
- values to be set
-
setKey
User-defined unique identifier for the AttributeGroup.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of AttributeGroupDraft
-
of
factory method to create a shallow copy AttributeGroupDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributeGroupDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeGroupDraft- Returns:
- builder
-
builder
create builder for AttributeGroupDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeGroupDraft
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
-