Class ReturnInfoAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ReturnInfoAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ReturnInfoAddedMessagePayload>
public class ReturnInfoAddedMessagePayloadBuilder
extends Object
implements Builder<ReturnInfoAddedMessagePayload>
ReturnInfoAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReturnInfoAddedMessagePayload returnInfoAddedMessagePayload = ReturnInfoAddedMessagePayload.builder()
.returnInfo(returnInfoBuilder -> returnInfoBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReturnInfoAddedMessagePayload with checking for non-null required valuesbuilds ReturnInfoAddedMessagePayload without checking for non-null required valuesThe ReturnInfo that was added to the Order.of()
factory method for an instance of ReturnInfoAddedMessagePayloadBuilderof
(ReturnInfoAddedMessagePayload template) create builder for ReturnInfoAddedMessagePayload instancereturnInfo
(ReturnInfo returnInfo) The ReturnInfo that was added to the Order.returnInfo
(Function<ReturnInfoBuilder, ReturnInfoBuilder> builder) The ReturnInfo that was added to the Order.withReturnInfo
(Function<ReturnInfoBuilder, ReturnInfo> builder) The ReturnInfo that was added to the Order.
-
Constructor Details
-
ReturnInfoAddedMessagePayloadBuilder
public ReturnInfoAddedMessagePayloadBuilder()
-
-
Method Details
-
returnInfo
public ReturnInfoAddedMessagePayloadBuilder returnInfo(Function<ReturnInfoBuilder, ReturnInfoBuilder> builder) The ReturnInfo that was added to the Order.
- Parameters:
builder
- function to build the returnInfo value- Returns:
- Builder
-
withReturnInfo
public ReturnInfoAddedMessagePayloadBuilder withReturnInfo(Function<ReturnInfoBuilder, ReturnInfo> builder) The ReturnInfo that was added to the Order.
- Parameters:
builder
- function to build the returnInfo value- Returns:
- Builder
-
returnInfo
The ReturnInfo that was added to the Order.
- Parameters:
returnInfo
- value to be set- Returns:
- Builder
-
getReturnInfo
The ReturnInfo that was added to the Order.
- Returns:
- returnInfo
-
build
builds ReturnInfoAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReturnInfoAddedMessagePayload>
- Returns:
- ReturnInfoAddedMessagePayload
-
buildUnchecked
builds ReturnInfoAddedMessagePayload without checking for non-null required values- Returns:
- ReturnInfoAddedMessagePayload
-
of
factory method for an instance of ReturnInfoAddedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ReturnInfoAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-