Class OrderShippingInfoSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderShippingInfoSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderShippingInfoSetMessagePayload>
public class OrderShippingInfoSetMessagePayloadBuilder
extends Object
implements Builder<OrderShippingInfoSetMessagePayload>
OrderShippingInfoSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderShippingInfoSetMessagePayload orderShippingInfoSetMessagePayload = OrderShippingInfoSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderShippingInfoSetMessagePayload with checking for non-null required valuesbuilds OrderShippingInfoSetMessagePayload without checking for non-null required valuesShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.of()
factory method for an instance of OrderShippingInfoSetMessagePayloadBuilderof
(OrderShippingInfoSetMessagePayload template) create builder for OrderShippingInfoSetMessagePayload instanceoldShippingInfo
(ShippingInfo oldShippingInfo) ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.shippingInfo
(ShippingInfo shippingInfo) ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.
-
Constructor Details
-
OrderShippingInfoSetMessagePayloadBuilder
public OrderShippingInfoSetMessagePayloadBuilder()
-
-
Method Details
-
shippingInfo
public OrderShippingInfoSetMessagePayloadBuilder shippingInfo(Function<ShippingInfoBuilder, ShippingInfoBuilder> builder) ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.
- Parameters:
builder
- function to build the shippingInfo value- Returns:
- Builder
-
withShippingInfo
public OrderShippingInfoSetMessagePayloadBuilder withShippingInfo(Function<ShippingInfoBuilder, ShippingInfo> builder) ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.
- Parameters:
builder
- function to build the shippingInfo value- Returns:
- Builder
-
shippingInfo
ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.
- Parameters:
shippingInfo
- value to be set- Returns:
- Builder
-
oldShippingInfo
public OrderShippingInfoSetMessagePayloadBuilder oldShippingInfo(Function<ShippingInfoBuilder, ShippingInfoBuilder> builder) ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.
- Parameters:
builder
- function to build the oldShippingInfo value- Returns:
- Builder
-
withOldShippingInfo
public OrderShippingInfoSetMessagePayloadBuilder withOldShippingInfo(Function<ShippingInfoBuilder, ShippingInfo> builder) ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.
- Parameters:
builder
- function to build the oldShippingInfo value- Returns:
- Builder
-
oldShippingInfo
public OrderShippingInfoSetMessagePayloadBuilder oldShippingInfo(@Nullable ShippingInfo oldShippingInfo) ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.
- Parameters:
oldShippingInfo
- value to be set- Returns:
- Builder
-
getShippingInfo
ShippingInfo after the Set Shipping Method or Set Custom Shipping Method update action.
- Returns:
- shippingInfo
-
getOldShippingInfo
ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action.
- Returns:
- oldShippingInfo
-
build
builds OrderShippingInfoSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderShippingInfoSetMessagePayload>
- Returns:
- OrderShippingInfoSetMessagePayload
-
buildUnchecked
builds OrderShippingInfoSetMessagePayload without checking for non-null required values- Returns:
- OrderShippingInfoSetMessagePayload
-
of
factory method for an instance of OrderShippingInfoSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderShippingInfoSetMessagePayloadBuilder of(OrderShippingInfoSetMessagePayload template) create builder for OrderShippingInfoSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-