Class ClassificationShippingRateInputDraftBuilder
java.lang.Object
com.commercetools.api.models.cart.ClassificationShippingRateInputDraftBuilder
- All Implemented Interfaces:
Builder<ClassificationShippingRateInputDraft>
public class ClassificationShippingRateInputDraftBuilder
extends Object
implements Builder<ClassificationShippingRateInputDraft>
ClassificationShippingRateInputDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ClassificationShippingRateInputDraft classificationShippingRateInputDraft = ClassificationShippingRateInputDraft.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ClassificationShippingRateInputDraft with checking for non-null required valuesbuilds ClassificationShippingRateInputDraft without checking for non-null required valuesgetKey()
Key of the value used as a programmatic identifier.Key of the value used as a programmatic identifier.of()
factory method for an instance of ClassificationShippingRateInputDraftBuilderof
(ClassificationShippingRateInputDraft template) create builder for ClassificationShippingRateInputDraft instance
-
Constructor Details
-
ClassificationShippingRateInputDraftBuilder
public ClassificationShippingRateInputDraftBuilder()
-
-
Method Details
-
key
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Key of the value used as a programmatic identifier.
- Returns:
- key
-
build
builds ClassificationShippingRateInputDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ClassificationShippingRateInputDraft>
- Returns:
- ClassificationShippingRateInputDraft
-
buildUnchecked
builds ClassificationShippingRateInputDraft without checking for non-null required values- Returns:
- ClassificationShippingRateInputDraft
-
of
factory method for an instance of ClassificationShippingRateInputDraftBuilder- Returns:
- builder
-
of
public static ClassificationShippingRateInputDraftBuilder of(ClassificationShippingRateInputDraft template) create builder for ClassificationShippingRateInputDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-