Class ReturnInfoSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ReturnInfoSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ReturnInfoSetMessagePayload>
public class ReturnInfoSetMessagePayloadBuilder
extends Object
implements Builder<ReturnInfoSetMessagePayload>
ReturnInfoSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReturnInfoSetMessagePayload returnInfoSetMessagePayload = ReturnInfoSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddReturnInfo
(Function<ReturnInfoBuilder, ReturnInfo> builder) The ReturnInfo that was set on the Order or Order Edit.build()
builds ReturnInfoSetMessagePayload with checking for non-null required valuesbuilds ReturnInfoSetMessagePayload without checking for non-null required valuesThe ReturnInfo that was set on the Order or Order Edit.of()
factory method for an instance of ReturnInfoSetMessagePayloadBuilderof
(ReturnInfoSetMessagePayload template) create builder for ReturnInfoSetMessagePayload instanceplusReturnInfo
(ReturnInfo... returnInfo) The ReturnInfo that was set on the Order or Order Edit.The ReturnInfo that was set on the Order or Order Edit.returnInfo
(ReturnInfo... returnInfo) The ReturnInfo that was set on the Order or Order Edit.returnInfo
(List<ReturnInfo> returnInfo) The ReturnInfo that was set on the Order or Order Edit.setReturnInfo
(Function<ReturnInfoBuilder, ReturnInfo> builder) The ReturnInfo that was set on the Order or Order Edit.The ReturnInfo that was set on the Order or Order Edit.
-
Constructor Details
-
ReturnInfoSetMessagePayloadBuilder
public ReturnInfoSetMessagePayloadBuilder()
-
-
Method Details
-
returnInfo
The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
returnInfo
- value to be set- Returns:
- Builder
-
returnInfo
The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
returnInfo
- value to be set- Returns:
- Builder
-
plusReturnInfo
The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
returnInfo
- value to be set- Returns:
- Builder
-
plusReturnInfo
public ReturnInfoSetMessagePayloadBuilder plusReturnInfo(Function<ReturnInfoBuilder, ReturnInfoBuilder> builder) The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
builder
- function to build the returnInfo value- Returns:
- Builder
-
withReturnInfo
public ReturnInfoSetMessagePayloadBuilder withReturnInfo(Function<ReturnInfoBuilder, ReturnInfoBuilder> builder) The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
builder
- function to build the returnInfo value- Returns:
- Builder
-
addReturnInfo
public ReturnInfoSetMessagePayloadBuilder addReturnInfo(Function<ReturnInfoBuilder, ReturnInfo> builder) The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
builder
- function to build the returnInfo value- Returns:
- Builder
-
setReturnInfo
public ReturnInfoSetMessagePayloadBuilder setReturnInfo(Function<ReturnInfoBuilder, ReturnInfo> builder) The ReturnInfo that was set on the Order or Order Edit.
- Parameters:
builder
- function to build the returnInfo value- Returns:
- Builder
-
getReturnInfo
The ReturnInfo that was set on the Order or Order Edit.
- Returns:
- returnInfo
-
build
builds ReturnInfoSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReturnInfoSetMessagePayload>
- Returns:
- ReturnInfoSetMessagePayload
-
buildUnchecked
builds ReturnInfoSetMessagePayload without checking for non-null required values- Returns:
- ReturnInfoSetMessagePayload
-
of
factory method for an instance of ReturnInfoSetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ReturnInfoSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-