Class ShippingMethodKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.ShippingMethodKeyReferenceBuilder
- All Implemented Interfaces:
Builder<ShippingMethodKeyReference>
public class ShippingMethodKeyReferenceBuilder
extends Object
implements Builder<ShippingMethodKeyReference>
ShippingMethodKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodKeyReference shippingMethodKeyReference = ShippingMethodKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodKeyReference with checking for non-null required valuesbuilds ShippingMethodKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keyof()
factory method for an instance of ShippingMethodKeyReferenceBuilderof
(ShippingMethodKeyReference template) create builder for ShippingMethodKeyReference instance
-
Constructor Details
-
ShippingMethodKeyReferenceBuilder
public ShippingMethodKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds ShippingMethodKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodKeyReference>
- Returns:
- ShippingMethodKeyReference
-
buildUnchecked
builds ShippingMethodKeyReference without checking for non-null required values- Returns:
- ShippingMethodKeyReference
-
of
factory method for an instance of ShippingMethodKeyReferenceBuilder- Returns:
- builder
-
of
create builder for ShippingMethodKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-