Interface ShippingMethodSetCarrierAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>,ShippingMethodUpdateAction
ShippingMethodSetCarrierAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetCarrierAction shippingMethodSetCarrierAction = ShippingMethodSetCarrierAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodSetCarrierAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodSetCarrierActionbuilder(ShippingMethodSetCarrierAction template) create builder for ShippingMethodSetCarrierAction instancecopyDeep()deepCopy(ShippingMethodSetCarrierAction template) factory method to create a deep copy of ShippingMethodSetCarrierActionName of the carrier that delivers the parcel, for exampleDHL.of()factory methodof(ShippingMethodSetCarrierAction template) factory method to create a shallow copy ShippingMethodSetCarrierActionvoidsetCarrier(String carrier) Name of the carrier that delivers the parcel, for exampleDHL.static tools.jackson.core.type.TypeReference<ShippingMethodSetCarrierAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
SET_CARRIER
discriminator value for ShippingMethodSetCarrierAction- See Also:
-
-
Method Details
-
getCarrier
String getCarrier()Name of the carrier that delivers the parcel, for example
DHL. Ifcarrieris absent ornull, it is removed if it exists.- Returns:
- carrier
-
setCarrier
Name of the carrier that delivers the parcel, for example
DHL. Ifcarrieris absent ornull, it is removed if it exists.- Parameters:
carrier- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodSetCarrierAction
-
of
factory method to create a shallow copy ShippingMethodSetCarrierAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodSetCarrierAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
deepCopy
@Nullable static ShippingMethodSetCarrierAction deepCopy(@Nullable ShippingMethodSetCarrierAction template) factory method to create a deep copy of ShippingMethodSetCarrierAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodSetCarrierAction- Returns:
- builder
-
builder
create builder for ShippingMethodSetCarrierAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodSetCarrierAction
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
-