Class ClassificationShippingRateInputBuilder
java.lang.Object
com.commercetools.importapi.models.orders.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()
value of key}getLabel()
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.set the value to the keylabel
(LocalizedString label) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.of()
factory method for an instance of ClassificationShippingRateInputBuilderof
(ClassificationShippingRateInput template) create builder for ClassificationShippingRateInput instanceA localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
-
Constructor Details
-
ClassificationShippingRateInputBuilder
public ClassificationShippingRateInputBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
label
public ClassificationShippingRateInputBuilder label(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public ClassificationShippingRateInputBuilder withLabel(Function<LocalizedStringBuilder, LocalizedString> builder) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
label
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Parameters:
label
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
getLabel
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- 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
-