Class PaymentSetMethodInfoTokenActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentSetMethodInfoTokenActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetMethodInfoTokenAction>
public class PaymentSetMethodInfoTokenActionBuilder
extends Object
implements Builder<PaymentSetMethodInfoTokenAction>
PaymentSetMethodInfoTokenActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetMethodInfoTokenAction paymentSetMethodInfoTokenAction = PaymentSetMethodInfoTokenAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetMethodInfoTokenAction with checking for non-null required valuesbuilds PaymentSetMethodInfoTokenAction without checking for non-null required valuesgetToken()
Value to set.of()
factory method for an instance of PaymentSetMethodInfoTokenActionBuilderof
(PaymentSetMethodInfoTokenAction template) create builder for PaymentSetMethodInfoTokenAction instancetoken
(PaymentMethodToken token) Value to set.Value to set.Value to set.
-
Constructor Details
-
PaymentSetMethodInfoTokenActionBuilder
public PaymentSetMethodInfoTokenActionBuilder()
-
-
Method Details
-
token
public PaymentSetMethodInfoTokenActionBuilder token(Function<PaymentMethodTokenBuilder, PaymentMethodTokenBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the token value- Returns:
- Builder
-
withToken
public PaymentSetMethodInfoTokenActionBuilder withToken(Function<PaymentMethodTokenBuilder, PaymentMethodToken> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the token value- Returns:
- Builder
-
token
Value to set. If empty, any existing value will be removed.
- Parameters:
token
- value to be set- Returns:
- Builder
-
getToken
Value to set. If empty, any existing value will be removed.
- Returns:
- token
-
build
builds PaymentSetMethodInfoTokenAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetMethodInfoTokenAction>
- Returns:
- PaymentSetMethodInfoTokenAction
-
buildUnchecked
builds PaymentSetMethodInfoTokenAction without checking for non-null required values- Returns:
- PaymentSetMethodInfoTokenAction
-
of
factory method for an instance of PaymentSetMethodInfoTokenActionBuilder- Returns:
- builder
-
of
create builder for PaymentSetMethodInfoTokenAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-