Interface ShippingMethodResourceIdentifier
- All Superinterfaces:
Identifiable<ShippingMethod>,ResourceIdentifier,WithKey
public interface ShippingMethodResourceIdentifier
extends ResourceIdentifier, Identifiable<ShippingMethod>
ResourceIdentifier to a ShippingMethod. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
ShippingMethodResourceIdentifier shippingMethodResourceIdentifier = ShippingMethodResourceIdentifier.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodResourceIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodResourceIdentifierbuilder(ShippingMethodResourceIdentifier template) create builder for ShippingMethodResourceIdentifier instancecopyDeep()deepCopy(ShippingMethodResourceIdentifier template) factory method to create a deep copy of ShippingMethodResourceIdentifiergetId()Unique identifier of the referenced ShippingMethod.getKey()User-defined unique identifier of the referenced ShippingMethod.of()factory methodof(ShippingMethodResourceIdentifier template) factory method to create a shallow copy ShippingMethodResourceIdentifiervoidUnique identifier of the referenced ShippingMethod.voidUser-defined unique identifier of the referenced ShippingMethod.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodResourceIdentifier>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
getTypeId, withResourceIdentifier
-
Field Details
-
SHIPPING_METHOD
discriminator value for ShippingMethodResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced ShippingMethod. Required if
keyis absent.- Specified by:
getIdin interfaceIdentifiable<ShippingMethod>- Specified by:
getIdin interfaceResourceIdentifier- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced ShippingMethod. Required if
idis absent.- Specified by:
getKeyin interfaceResourceIdentifier- Specified by:
getKeyin interfaceWithKey- Returns:
- key
-
setId
Unique identifier of the referenced ShippingMethod. Required if
keyis absent.- Specified by:
setIdin interfaceResourceIdentifier- Parameters:
id- value to be set
-
setKey
User-defined unique identifier of the referenced ShippingMethod. Required if
idis absent.- Specified by:
setKeyin interfaceResourceIdentifier- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodResourceIdentifier
-
of
factory method to create a shallow copy ShippingMethodResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodResourceIdentifier copyDeep()- Specified by:
copyDeepin interfaceResourceIdentifier
-
deepCopy
@Nullable static ShippingMethodResourceIdentifier deepCopy(@Nullable ShippingMethodResourceIdentifier template) factory method to create a deep copy of ShippingMethodResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodResourceIdentifier- Returns:
- builder
-
builder
create builder for ShippingMethodResourceIdentifier instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodResourceIdentifier
default <T> T withShippingMethodResourceIdentifier(Function<ShippingMethodResourceIdentifier, 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<ShippingMethodResourceIdentifier> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-