Interface ShippingMethodKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a ShippingMethod.
Example to create an instance using the builder pattern
ShippingMethodKeyReference shippingMethodKeyReference = ShippingMethodKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodKeyReferencebuilder(ShippingMethodKeyReference template) create builder for ShippingMethodKeyReference instancecopyDeep()static ShippingMethodKeyReferencedeepCopy(ShippingMethodKeyReference template) factory method to create a deep copy of ShippingMethodKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced ShippingMethod.static ShippingMethodKeyReferenceof()factory methodstatic ShippingMethodKeyReferenceof(ShippingMethodKeyReference template) factory method to create a shallow copy ShippingMethodKeyReferencevoidUser-defined unique identifier of the referenced ShippingMethod.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
SHIPPING_METHOD
discriminator value for ShippingMethodKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced ShippingMethod.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced ShippingMethod.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodKeyReference
-
of
factory method to create a shallow copy ShippingMethodKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of ShippingMethodKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodKeyReference- Returns:
- builder
-
builder
create builder for ShippingMethodKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodKeyReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-