Class ProductTypeSetInputTipActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeSetInputTipActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeSetInputTipAction>
public class ProductTypeSetInputTipActionBuilder
extends Object
implements Builder<ProductTypeSetInputTipAction>
ProductTypeSetInputTipActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeSetInputTipAction productTypeSetInputTipAction = ProductTypeSetInputTipAction.builder()
.attributeName("{attributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the AttributeDefinition to update.build()
builds ProductTypeSetInputTipAction with checking for non-null required valuesbuilds ProductTypeSetInputTipAction without checking for non-null required valuesName of the AttributeDefinition to update.Value to set.inputTip
(LocalizedString inputTip) Value to set.Value to set.of()
factory method for an instance of ProductTypeSetInputTipActionBuilderof
(ProductTypeSetInputTipAction template) create builder for ProductTypeSetInputTipAction instanceValue to set.
-
Constructor Details
-
ProductTypeSetInputTipActionBuilder
public ProductTypeSetInputTipActionBuilder()
-
-
Method Details
-
attributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set- Returns:
- Builder
-
inputTip
public ProductTypeSetInputTipActionBuilder inputTip(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the inputTip value- Returns:
- Builder
-
withInputTip
public ProductTypeSetInputTipActionBuilder withInputTip(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the inputTip value- Returns:
- Builder
-
inputTip
Value to set. If empty, any existing value will be removed.
- Parameters:
inputTip
- value to be set- Returns:
- Builder
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getInputTip
Value to set. If empty, any existing value will be removed.
- Returns:
- inputTip
-
build
builds ProductTypeSetInputTipAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTypeSetInputTipAction>
- Returns:
- ProductTypeSetInputTipAction
-
buildUnchecked
builds ProductTypeSetInputTipAction without checking for non-null required values- Returns:
- ProductTypeSetInputTipAction
-
of
factory method for an instance of ProductTypeSetInputTipActionBuilder- Returns:
- builder
-
of
create builder for ProductTypeSetInputTipAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-