Class ClassificationShippingRateInputBuilder
java.lang.Object
com.commercetools.api.models.cart.ClassificationShippingRateInputBuilder
- All Implemented Interfaces:
Builder<ClassificationShippingRateInput>
public class ClassificationShippingRateInputBuilder
extends Object
implements Builder<ClassificationShippingRateInput>
ClassificationShippingRateInputBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ClassificationShippingRateInput classificationShippingRateInput = ClassificationShippingRateInput.builder()
.key("{key}")
.label(labelBuilder -> labelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ClassificationShippingRateInput with checking for non-null required valuesbuilds ClassificationShippingRateInput without checking for non-null required valuesgetKey()
Key of the value used as a programmatic identifier.getLabel()
Descriptive localized label of the value.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 ClassificationShippingRateInputBuilderof
(ClassificationShippingRateInput template) create builder for ClassificationShippingRateInput instanceDescriptive localized label of the value.
-
Constructor Details
-
ClassificationShippingRateInputBuilder
public ClassificationShippingRateInputBuilder()
-
-
Method Details
-
key
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set- Returns:
- Builder
-
label
public ClassificationShippingRateInputBuilder label(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Descriptive localized label of the value.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public ClassificationShippingRateInputBuilder 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
-
getKey
Key of the value used as a programmatic identifier.
- Returns:
- key
-
getLabel
Descriptive localized label of the value.
- Returns:
- label
-
build
builds ClassificationShippingRateInput with checking for non-null required values- Specified by:
build
in interfaceBuilder<ClassificationShippingRateInput>
- Returns:
- ClassificationShippingRateInput
-
buildUnchecked
builds ClassificationShippingRateInput without checking for non-null required values- Returns:
- ClassificationShippingRateInput
-
of
factory method for an instance of ClassificationShippingRateInputBuilder- Returns:
- builder
-
of
create builder for ClassificationShippingRateInput instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-