Interface ShippingMethodChangeIsDefaultAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodChangeIsDefaultAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeIsDefaultAction shippingMethodChangeIsDefaultAction = ShippingMethodChangeIsDefaultAction.builder()
.isDefault(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShippingMethodChangeIsDefaultAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodChangeIsDefaultActionbuilder
(ShippingMethodChangeIsDefaultAction template) create builder for ShippingMethodChangeIsDefaultAction instancedeepCopy
(ShippingMethodChangeIsDefaultAction template) factory method to create a deep copy of ShippingMethodChangeIsDefaultAction@NotNull Boolean
Value to set.of()
factory methodof
(ShippingMethodChangeIsDefaultAction template) factory method to create a shallow copy ShippingMethodChangeIsDefaultActionvoid
setIsDefault
(Boolean isDefault) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodChangeIsDefaultAction>
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_IS_DEFAULT
discriminator value for ShippingMethodChangeIsDefaultAction- See Also:
-
-
Method Details
-
getIsDefault
Value to set. Only one ShippingMethod can be default in a Project.
- Returns:
- isDefault
-
setIsDefault
Value to set. Only one ShippingMethod can be default in a Project.
- Parameters:
isDefault
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodChangeIsDefaultAction
-
of
factory method to create a shallow copy ShippingMethodChangeIsDefaultAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodChangeIsDefaultAction deepCopy(@Nullable ShippingMethodChangeIsDefaultAction template) factory method to create a deep copy of ShippingMethodChangeIsDefaultAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodChangeIsDefaultAction- Returns:
- builder
-
builder
static ShippingMethodChangeIsDefaultActionBuilder builder(ShippingMethodChangeIsDefaultAction template) create builder for ShippingMethodChangeIsDefaultAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodChangeIsDefaultAction
default <T> T withShippingMethodChangeIsDefaultAction(Function<ShippingMethodChangeIsDefaultAction, 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<ShippingMethodChangeIsDefaultAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-