Interface ShippingMethodChangeActiveAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodChangeActiveAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeActiveAction shippingMethodChangeActiveAction = ShippingMethodChangeActiveAction.builder()
.active(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShippingMethodChangeActiveAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodChangeActiveActionbuilder
(ShippingMethodChangeActiveAction template) create builder for ShippingMethodChangeActiveAction instancedeepCopy
(ShippingMethodChangeActiveAction template) factory method to create a deep copy of ShippingMethodChangeActiveAction@NotNull Boolean
Value to set.of()
factory methodof
(ShippingMethodChangeActiveAction template) factory method to create a shallow copy ShippingMethodChangeActiveActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodChangeActiveAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
CHANGE_ACTIVE
discriminator value for ShippingMethodChangeActiveAction- See Also:
-
-
Method Details
-
getActive
Value to set.
If set to
false
, the ShippingMethod cannot be used during the creation or update of a Cart or Order.- Returns:
- active
-
setActive
Value to set.
If set to
false
, the ShippingMethod cannot be used during the creation or update of a Cart or Order.- Parameters:
active
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodChangeActiveAction
-
of
factory method to create a shallow copy ShippingMethodChangeActiveAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodChangeActiveAction deepCopy(@Nullable ShippingMethodChangeActiveAction template) factory method to create a deep copy of ShippingMethodChangeActiveAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodChangeActiveAction- Returns:
- builder
-
builder
create builder for ShippingMethodChangeActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodChangeActiveAction
default <T> T withShippingMethodChangeActiveAction(Function<ShippingMethodChangeActiveAction, 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<ShippingMethodChangeActiveAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-