Interface AttributeGroupAddAttributeAction
- All Superinterfaces:
AttributeGroupUpdateAction
,ResourceUpdateAction<AttributeGroupUpdateAction>
AttributeGroupAddAttributeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeGroupAddAttributeAction attributeGroupAddAttributeAction = AttributeGroupAddAttributeAction.builder()
.attribute(attributeBuilder -> attributeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AttributeGroupAddAttributeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AttributeGroupAddAttributeActionbuilder
(AttributeGroupAddAttributeAction template) create builder for AttributeGroupAddAttributeAction instancedeepCopy
(AttributeGroupAddAttributeAction template) factory method to create a deep copy of AttributeGroupAddAttributeAction@NotNull @Valid AttributeReference
Value to add.of()
factory methodof
(AttributeGroupAddAttributeAction template) factory method to create a shallow copy AttributeGroupAddAttributeActionvoid
setAttribute
(AttributeReference attribute) Value to add.static com.fasterxml.jackson.core.type.TypeReference<AttributeGroupAddAttributeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.attribute_group.AttributeGroupUpdateAction
getAction, withAttributeGroupUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_ATTRIBUTE
discriminator value for AttributeGroupAddAttributeAction- See Also:
-
-
Method Details
-
getAttribute
Value to add.
- Returns:
- attribute
-
setAttribute
Value to add.
- Parameters:
attribute
- value to be set
-
of
factory method- Returns:
- instance of AttributeGroupAddAttributeAction
-
of
factory method to create a shallow copy AttributeGroupAddAttributeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AttributeGroupAddAttributeAction deepCopy(@Nullable AttributeGroupAddAttributeAction template) factory method to create a deep copy of AttributeGroupAddAttributeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeGroupAddAttributeAction- Returns:
- builder
-
builder
create builder for AttributeGroupAddAttributeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeGroupAddAttributeAction
default <T> T withAttributeGroupAddAttributeAction(Function<AttributeGroupAddAttributeAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<AttributeGroupAddAttributeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-