Class TypeChangeLabelActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeChangeLabelActionBuilder
- All Implemented Interfaces:
Builder<TypeChangeLabelAction>
TypeChangeLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeChangeLabelAction typeChangeLabelAction = TypeChangeLabelAction.builder()
.fieldName("{fieldName}")
.label(labelBuilder -> labelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TypeChangeLabelAction with checking for non-null required valuesbuilds TypeChangeLabelAction without checking for non-null required valuesName of the Field Definition to update.Name of the Field Definition to update.getLabel()
New value to set.label
(LocalizedString label) New value to set.New value to set.static TypeChangeLabelActionBuilder
of()
factory method for an instance of TypeChangeLabelActionBuilderstatic TypeChangeLabelActionBuilder
of
(TypeChangeLabelAction template) create builder for TypeChangeLabelAction instanceNew value to set.
-
Constructor Details
-
TypeChangeLabelActionBuilder
public TypeChangeLabelActionBuilder()
-
-
Method Details
-
fieldName
Name of the Field Definition to update.
- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
label
public TypeChangeLabelActionBuilder label(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public TypeChangeLabelActionBuilder withLabel(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
label
New value to set. Must not be empty.
- Parameters:
label
- value to be set- Returns:
- Builder
-
getFieldName
Name of the Field Definition to update.
- Returns:
- fieldName
-
getLabel
New value to set. Must not be empty.
- Returns:
- label
-
build
builds TypeChangeLabelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TypeChangeLabelAction>
- Returns:
- TypeChangeLabelAction
-
buildUnchecked
builds TypeChangeLabelAction without checking for non-null required values- Returns:
- TypeChangeLabelAction
-
of
factory method for an instance of TypeChangeLabelActionBuilder- Returns:
- builder
-
of
create builder for TypeChangeLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-