Class PaymentInfoBuilder
java.lang.Object
com.commercetools.history.models.common.PaymentInfoBuilder
- All Implemented Interfaces:
Builder<PaymentInfo>
PaymentInfoBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentInfo paymentInfo = PaymentInfo.builder()
.plusPayments(paymentsBuilder -> paymentsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPayments(Function<ReferenceBuilder, Reference> builder) add the value to the payments using the builder functionbuild()builds PaymentInfo with checking for non-null required valuesbuilds PaymentInfo without checking for non-null required valuesvalue of payments}static PaymentInfoBuilderof()factory method for an instance of PaymentInfoBuilderstatic PaymentInfoBuilderof(PaymentInfo template) create builder for PaymentInfo instanceset values to the paymentsset value to the paymentsplusPayments(Reference... payments) add values to the paymentsplusPayments(Function<ReferenceBuilder, ReferenceBuilder> builder) add the value to the payments using the builder functionsetPayments(Function<ReferenceBuilder, Reference> builder) set the value to the payments using the builder functionwithPayments(Function<ReferenceBuilder, ReferenceBuilder> builder) set the value to the payments using the builder function
-
Constructor Details
-
PaymentInfoBuilder
public PaymentInfoBuilder()
-
-
Method Details
-
payments
set values to the payments- Parameters:
payments- value to be set- Returns:
- Builder
-
payments
set value to the payments- Parameters:
payments- value to be set- Returns:
- Builder
-
plusPayments
add values to the payments- Parameters:
payments- value to be set- Returns:
- Builder
-
plusPayments
add the value to the payments using the builder function- Parameters:
builder- function to build the payments value- Returns:
- Builder
-
withPayments
set the value to the payments using the builder function- Parameters:
builder- function to build the payments value- Returns:
- Builder
-
addPayments
add the value to the payments using the builder function- Parameters:
builder- function to build the payments value- Returns:
- Builder
-
setPayments
set the value to the payments using the builder function- Parameters:
builder- function to build the payments value- Returns:
- Builder
-
getPayments
value of payments}- Returns:
- payments
-
build
builds PaymentInfo with checking for non-null required values- Specified by:
buildin interfaceBuilder<PaymentInfo>- Returns:
- PaymentInfo
-
buildUnchecked
builds PaymentInfo without checking for non-null required values- Returns:
- PaymentInfo
-
of
factory method for an instance of PaymentInfoBuilder- Returns:
- builder
-
of
create builder for PaymentInfo instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-