Class PaymentMethodInfoTokenSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentMethodInfoTokenSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentMethodInfoTokenSetMessagePayload>
public class PaymentMethodInfoTokenSetMessagePayloadBuilder
extends Object
implements Builder<PaymentMethodInfoTokenSetMessagePayload>
PaymentMethodInfoTokenSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodInfoTokenSetMessagePayload paymentMethodInfoTokenSetMessagePayload = PaymentMethodInfoTokenSetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodInfoTokenSetMessagePayload with checking for non-null required valuesbuilds PaymentMethodInfoTokenSetMessagePayload without checking for non-null required valuesToken of the Payment Method before the Set MethodInfo Token update action.getToken()
Token of the Payment Method after the Set MethodInfo Token update action.of()
factory method for an instance of PaymentMethodInfoTokenSetMessagePayloadBuilderof
(PaymentMethodInfoTokenSetMessagePayload template) create builder for PaymentMethodInfoTokenSetMessagePayload instanceoldToken
(PaymentMethodToken oldToken) Token of the Payment Method before the Set MethodInfo Token update action.Token of the Payment Method before the Set MethodInfo Token update action.token
(PaymentMethodToken token) Token of the Payment Method after the Set MethodInfo Token update action.Token of the Payment Method after the Set MethodInfo Token update action.Token of the Payment Method before the Set MethodInfo Token update action.Token of the Payment Method after the Set MethodInfo Token update action.
-
Constructor Details
-
PaymentMethodInfoTokenSetMessagePayloadBuilder
public PaymentMethodInfoTokenSetMessagePayloadBuilder()
-
-
Method Details
-
token
public PaymentMethodInfoTokenSetMessagePayloadBuilder token(Function<PaymentMethodTokenBuilder, PaymentMethodTokenBuilder> builder) Token of the Payment Method after the Set MethodInfo Token update action.
- Parameters:
builder
- function to build the token value- Returns:
- Builder
-
withToken
public PaymentMethodInfoTokenSetMessagePayloadBuilder withToken(Function<PaymentMethodTokenBuilder, PaymentMethodToken> builder) Token of the Payment Method after the Set MethodInfo Token update action.
- Parameters:
builder
- function to build the token value- Returns:
- Builder
-
token
Token of the Payment Method after the Set MethodInfo Token update action.
- Parameters:
token
- value to be set- Returns:
- Builder
-
oldToken
public PaymentMethodInfoTokenSetMessagePayloadBuilder oldToken(Function<PaymentMethodTokenBuilder, PaymentMethodTokenBuilder> builder) Token of the Payment Method before the Set MethodInfo Token update action.
- Parameters:
builder
- function to build the oldToken value- Returns:
- Builder
-
withOldToken
public PaymentMethodInfoTokenSetMessagePayloadBuilder withOldToken(Function<PaymentMethodTokenBuilder, PaymentMethodToken> builder) Token of the Payment Method before the Set MethodInfo Token update action.
- Parameters:
builder
- function to build the oldToken value- Returns:
- Builder
-
oldToken
public PaymentMethodInfoTokenSetMessagePayloadBuilder oldToken(@Nullable PaymentMethodToken oldToken) Token of the Payment Method before the Set MethodInfo Token update action.
- Parameters:
oldToken
- value to be set- Returns:
- Builder
-
getToken
Token of the Payment Method after the Set MethodInfo Token update action.
- Returns:
- token
-
getOldToken
Token of the Payment Method before the Set MethodInfo Token update action.
- Returns:
- oldToken
-
build
builds PaymentMethodInfoTokenSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodInfoTokenSetMessagePayload>
- Returns:
- PaymentMethodInfoTokenSetMessagePayload
-
buildUnchecked
builds PaymentMethodInfoTokenSetMessagePayload without checking for non-null required values- Returns:
- PaymentMethodInfoTokenSetMessagePayload
-
of
factory method for an instance of PaymentMethodInfoTokenSetMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentMethodInfoTokenSetMessagePayloadBuilder of(PaymentMethodInfoTokenSetMessagePayload template) create builder for PaymentMethodInfoTokenSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-