Interface ClassificationShippingRateInput
- All Superinterfaces:
ShippingRateInput
ClassificationShippingRateInput
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ClassificationShippingRateInput -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ClassificationShippingRateInputbuilder
(ClassificationShippingRateInput template) create builder for ClassificationShippingRateInput instancedeepCopy
(ClassificationShippingRateInput template) factory method to create a deep copy of ClassificationShippingRateInput@NotNull String
getKey()
Key of the value used as a programmatic identifier.@NotNull @Valid LocalizedString
getLabel()
Descriptive localized label of the value.of()
factory methodof
(ClassificationShippingRateInput template) factory method to create a shallow copy ClassificationShippingRateInputvoid
Key of the value used as a programmatic identifier.void
setLabel
(LocalizedString label) Descriptive localized label of the value.static com.fasterxml.jackson.core.type.TypeReference<ClassificationShippingRateInput>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.ShippingRateInput
getType, withShippingRateInput
-
Field Details
-
CLASSIFICATION
discriminator value for ClassificationShippingRateInput- See Also:
-
-
Method Details
-
getKey
Key of the value used as a programmatic identifier.
- Returns:
- key
-
getLabel
Descriptive localized label of the value.
- Returns:
- label
-
setKey
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set
-
setLabel
Descriptive localized label of the value.
- Parameters:
label
- value to be set
-
of
factory method- Returns:
- instance of ClassificationShippingRateInput
-
of
factory method to create a shallow copy ClassificationShippingRateInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ClassificationShippingRateInput deepCopy(@Nullable ClassificationShippingRateInput template) factory method to create a deep copy of ClassificationShippingRateInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ClassificationShippingRateInput- Returns:
- builder
-
builder
create builder for ClassificationShippingRateInput instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withClassificationShippingRateInput
default <T> T withClassificationShippingRateInput(Function<ClassificationShippingRateInput, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ClassificationShippingRateInput> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-