Class SetCartClassificationShippingRateInputValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.SetCartClassificationShippingRateInputValueBuilder
- All Implemented Interfaces:
Builder<SetCartClassificationShippingRateInputValue>
public class SetCartClassificationShippingRateInputValueBuilder
extends Object
implements Builder<SetCartClassificationShippingRateInputValue>
SetCartClassificationShippingRateInputValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCartClassificationShippingRateInputValue setCartClassificationShippingRateInputValue = SetCartClassificationShippingRateInputValue.builder()
.type("{type}")
.key("{key}")
.label(labelBuilder -> labelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetCartClassificationShippingRateInputValue with checking for non-null required valuesbuilds SetCartClassificationShippingRateInputValue without checking for non-null required valuesgetKey()
Key of the value used as a programmatic identifier.getLabel()
Descriptive localized label of the value.getType()
value of type}Key of the value used as a programmatic identifier.label
(LocalizedString label) Descriptive localized label of the value.Descriptive localized label of the value.of()
factory method for an instance of SetCartClassificationShippingRateInputValueBuildercreate builder for SetCartClassificationShippingRateInputValue instanceset the value to the typeDescriptive localized label of the value.
-
Constructor Details
-
SetCartClassificationShippingRateInputValueBuilder
public SetCartClassificationShippingRateInputValueBuilder()
-
-
Method Details
-
type
set the value to the type- Parameters:
type
- value to be set- Returns:
- Builder
-
key
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set- Returns:
- Builder
-
label
public SetCartClassificationShippingRateInputValueBuilder label(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Descriptive localized label of the value.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public SetCartClassificationShippingRateInputValueBuilder withLabel(Function<LocalizedStringBuilder, LocalizedString> builder) Descriptive localized label of the value.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
label
Descriptive localized label of the value.
- Parameters:
label
- value to be set- Returns:
- Builder
-
getType
value of type}- Returns:
- type
-
getKey
Key of the value used as a programmatic identifier.
- Returns:
- key
-
getLabel
Descriptive localized label of the value.
- Returns:
- label
-
build
builds SetCartClassificationShippingRateInputValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCartClassificationShippingRateInputValue>
- Returns:
- SetCartClassificationShippingRateInputValue
-
buildUnchecked
builds SetCartClassificationShippingRateInputValue without checking for non-null required values- Returns:
- SetCartClassificationShippingRateInputValue
-
of
factory method for an instance of SetCartClassificationShippingRateInputValueBuilder- Returns:
- builder
-
of
public static SetCartClassificationShippingRateInputValueBuilder of(SetCartClassificationShippingRateInputValue template) create builder for SetCartClassificationShippingRateInputValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-