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 AttributeGroupDraftBuilderbuilder()builder factory method for AttributeGroupDraftstatic AttributeGroupDraftBuilderbuilder(AttributeGroupDraft template) create builder for AttributeGroupDraft instancecopyDeep()static AttributeGroupDraftdeepCopy(AttributeGroupDraft template) factory method to create a deep copy of AttributeGroupDraft@NotNull @Valid List<AttributeReference>Attributes with unique values.@Valid LocalizedStringDescription of the AttributeGroup.getKey()User-defined unique identifier for the AttributeGroup.@NotNull @Valid LocalizedStringgetName()Name of the AttributeGroup.static AttributeGroupDraftof()factory methodstatic AttributeGroupDraftof(AttributeGroupDraft template) factory method to create a shallow copy AttributeGroupDraftvoidsetAttributes(AttributeReference... attributes) Attributes with unique values.voidsetAttributes(List<AttributeReference> attributes) Attributes with unique values.voidsetDescription(LocalizedString description) Description of the AttributeGroup.voidUser-defined unique identifier for the AttributeGroup.voidsetName(LocalizedString name) Name of the AttributeGroup.static com.fasterxml.jackson.core.type.TypeReference<AttributeGroupDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAttributeGroupDraft(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
-
copyDeep
AttributeGroupDraft copyDeep() -
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
-