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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodChangeActiveAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodChangeActiveActionbuilder(ShippingMethodChangeActiveAction template) create builder for ShippingMethodChangeActiveAction instancecopyDeep()deepCopy(ShippingMethodChangeActiveAction template) factory method to create a deep copy of ShippingMethodChangeActiveAction@NotNull BooleanValue to set.of()factory methodof(ShippingMethodChangeActiveAction template) factory method to create a shallow copy ShippingMethodChangeActiveActionvoidValue to set.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodChangeActiveAction>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
-
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
-
copyDeep
ShippingMethodChangeActiveAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
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
-