Class VariantSetAttributesActionBuilder
- All Implemented Interfaces:
Builder<VariantSetAttributesAction>
Example to create an instance using the builder pattern
VariantSetAttributesAction variantSetAttributesAction = VariantSetAttributesAction.builder()
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributes(Function<AttributeBuilder, Attribute> builder) Attributes to set for the Variant according to the respective AttributeDefinition.attributes(Attribute... attributes) Attributes to set for the Variant according to the respective AttributeDefinition.attributes(List<Attribute> attributes) Attributes to set for the Variant according to the respective AttributeDefinition.build()builds VariantSetAttributesAction with checking for non-null required valuesbuilds VariantSetAttributesAction without checking for non-null required valuesAttributes to set for the Variant according to the respective AttributeDefinition.Iftrue, only the staged attributes are updated.of()factory method for an instance of VariantSetAttributesActionBuilderof(VariantSetAttributesAction template) create builder for VariantSetAttributesAction instanceplusAttributes(Attribute... attributes) Attributes to set for the Variant according to the respective AttributeDefinition.Attributes to set for the Variant according to the respective AttributeDefinition.setAttributes(Function<AttributeBuilder, Attribute> builder) Attributes to set for the Variant according to the respective AttributeDefinition.Iftrue, only the staged attributes are updated.Attributes to set for the Variant according to the respective AttributeDefinition.
-
Constructor Details
-
VariantSetAttributesActionBuilder
public VariantSetAttributesActionBuilder()
-
-
Method Details
-
attributes
Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
attributes- value to be set- Returns:
- Builder
-
attributes
Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
attributes- value to be set- Returns:
- Builder
-
plusAttributes
Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
attributes- value to be set- Returns:
- Builder
-
plusAttributes
public VariantSetAttributesActionBuilder plusAttributes(Function<AttributeBuilder, AttributeBuilder> builder) Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
builder- function to build the attributes value- Returns:
- Builder
-
withAttributes
public VariantSetAttributesActionBuilder withAttributes(Function<AttributeBuilder, AttributeBuilder> builder) Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
builder- function to build the attributes value- Returns:
- Builder
-
addAttributes
public VariantSetAttributesActionBuilder addAttributes(Function<AttributeBuilder, Attribute> builder) Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
builder- function to build the attributes value- Returns:
- Builder
-
setAttributes
public VariantSetAttributesActionBuilder setAttributes(Function<AttributeBuilder, Attribute> builder) Attributes to set for the Variant according to the respective AttributeDefinition.
- Parameters:
builder- function to build the attributes value- Returns:
- Builder
-
staged
If
true, only the staged attributes are updated. Iffalse, both the current and staged attributes are updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
getAttributes
Attributes to set for the Variant according to the respective AttributeDefinition.
- Returns:
- attributes
-
getStaged
If
true, only the staged attributes are updated. Iffalse, both the current and staged attributes are updated.- Returns:
- staged
-
build
builds VariantSetAttributesAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetAttributesAction>- Returns:
- VariantSetAttributesAction
-
buildUnchecked
builds VariantSetAttributesAction without checking for non-null required values- Returns:
- VariantSetAttributesAction
-
of
factory method for an instance of VariantSetAttributesActionBuilder- Returns:
- builder
-
of
create builder for VariantSetAttributesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-