Class OrderShippingRateInputSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderShippingRateInputSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderShippingRateInputSetMessagePayload>
public class OrderShippingRateInputSetMessagePayloadBuilder
extends Object
implements Builder<OrderShippingRateInputSetMessagePayload>
OrderShippingRateInputSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderShippingRateInputSetMessagePayload orderShippingRateInputSetMessagePayload = OrderShippingRateInputSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderShippingRateInputSetMessagePayload with checking for non-null required valuesbuilds OrderShippingRateInputSetMessagePayload without checking for non-null required valuesShippingRateInput before the Set ShippingRateInput update action.ShippingRateInput after the Set ShippingRateInput update action.of()
factory method for an instance of OrderShippingRateInputSetMessagePayloadBuilderof
(OrderShippingRateInputSetMessagePayload template) create builder for OrderShippingRateInputSetMessagePayload instanceoldShippingRateInput
(ShippingRateInput oldShippingRateInput) ShippingRateInput before the Set ShippingRateInput update action.oldShippingRateInput
(Function<ShippingRateInputBuilder, Builder<? extends ShippingRateInput>> builder) ShippingRateInput before the Set ShippingRateInput update action.shippingRateInput
(ShippingRateInput shippingRateInput) ShippingRateInput after the Set ShippingRateInput update action.shippingRateInput
(Function<ShippingRateInputBuilder, Builder<? extends ShippingRateInput>> builder) ShippingRateInput after the Set ShippingRateInput update action.
-
Constructor Details
-
OrderShippingRateInputSetMessagePayloadBuilder
public OrderShippingRateInputSetMessagePayloadBuilder()
-
-
Method Details
-
shippingRateInput
public OrderShippingRateInputSetMessagePayloadBuilder shippingRateInput(@Nullable ShippingRateInput shippingRateInput) ShippingRateInput after the Set ShippingRateInput update action.
- Parameters:
shippingRateInput
- value to be set- Returns:
- Builder
-
shippingRateInput
public OrderShippingRateInputSetMessagePayloadBuilder shippingRateInput(Function<ShippingRateInputBuilder, Builder<? extends ShippingRateInput>> builder) ShippingRateInput after the Set ShippingRateInput update action.
- Parameters:
builder
- function to build the shippingRateInput value- Returns:
- Builder
-
oldShippingRateInput
public OrderShippingRateInputSetMessagePayloadBuilder oldShippingRateInput(@Nullable ShippingRateInput oldShippingRateInput) ShippingRateInput before the Set ShippingRateInput update action.
- Parameters:
oldShippingRateInput
- value to be set- Returns:
- Builder
-
oldShippingRateInput
public OrderShippingRateInputSetMessagePayloadBuilder oldShippingRateInput(Function<ShippingRateInputBuilder, Builder<? extends ShippingRateInput>> builder) ShippingRateInput before the Set ShippingRateInput update action.
- Parameters:
builder
- function to build the oldShippingRateInput value- Returns:
- Builder
-
getShippingRateInput
ShippingRateInput after the Set ShippingRateInput update action.
- Returns:
- shippingRateInput
-
getOldShippingRateInput
ShippingRateInput before the Set ShippingRateInput update action.
- Returns:
- oldShippingRateInput
-
build
builds OrderShippingRateInputSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderShippingRateInputSetMessagePayload>
- Returns:
- OrderShippingRateInputSetMessagePayload
-
buildUnchecked
builds OrderShippingRateInputSetMessagePayload without checking for non-null required values- Returns:
- OrderShippingRateInputSetMessagePayload
-
of
factory method for an instance of OrderShippingRateInputSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderShippingRateInputSetMessagePayloadBuilder of(OrderShippingRateInputSetMessagePayload template) create builder for OrderShippingRateInputSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-