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()
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.label
(LocalizedString label) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.static TypeChangeLabelActionBuilder
of()
factory method for an instance of TypeChangeLabelActionBuilderstatic TypeChangeLabelActionBuilder
of
(TypeChangeLabelAction template) create builder for TypeChangeLabelAction instanceJSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
-
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) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public TypeChangeLabelActionBuilder withLabel(Function<LocalizedStringBuilder, LocalizedString> builder) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
label
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
label
- value to be set- Returns:
- Builder
-
getFieldName
Name of the Field Definition to update.
- Returns:
- fieldName
-
getLabel
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- 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
-