Class PaymentMethodInfoNameSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentMethodInfoNameSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentMethodInfoNameSetMessagePayload>
public class PaymentMethodInfoNameSetMessagePayloadBuilder
extends Object
implements Builder<PaymentMethodInfoNameSetMessagePayload>
PaymentMethodInfoNameSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodInfoNameSetMessagePayload paymentMethodInfoNameSetMessagePayload = PaymentMethodInfoNameSetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodInfoNameSetMessagePayload with checking for non-null required valuesbuilds PaymentMethodInfoNameSetMessagePayload without checking for non-null required valuesgetName()
Name of the Payment Method after the Set MethodInfo Name update action.Name of the Payment Method before the Set MethodInfo Name update action.name
(LocalizedString name) Name of the Payment Method after the Set MethodInfo Name update action.Name of the Payment Method after the Set MethodInfo Name update action.of()
factory method for an instance of PaymentMethodInfoNameSetMessagePayloadBuilderof
(PaymentMethodInfoNameSetMessagePayload template) create builder for PaymentMethodInfoNameSetMessagePayload instanceoldName
(LocalizedString oldName) Name of the Payment Method before the Set MethodInfo Name update action.Name of the Payment Method before the Set MethodInfo Name update action.Name of the Payment Method after the Set MethodInfo Name update action.Name of the Payment Method before the Set MethodInfo Name update action.
-
Constructor Details
-
PaymentMethodInfoNameSetMessagePayloadBuilder
public PaymentMethodInfoNameSetMessagePayloadBuilder()
-
-
Method Details
-
name
public PaymentMethodInfoNameSetMessagePayloadBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the Payment Method after the Set MethodInfo Name update action.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public PaymentMethodInfoNameSetMessagePayloadBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the Payment Method after the Set MethodInfo Name update action.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the Payment Method after the Set MethodInfo Name update action.
- Parameters:
name
- value to be set- Returns:
- Builder
-
oldName
public PaymentMethodInfoNameSetMessagePayloadBuilder oldName(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the Payment Method before the Set MethodInfo Name update action.
- Parameters:
builder
- function to build the oldName value- Returns:
- Builder
-
withOldName
public PaymentMethodInfoNameSetMessagePayloadBuilder withOldName(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the Payment Method before the Set MethodInfo Name update action.
- Parameters:
builder
- function to build the oldName value- Returns:
- Builder
-
oldName
Name of the Payment Method before the Set MethodInfo Name update action.
- Parameters:
oldName
- value to be set- Returns:
- Builder
-
getName
Name of the Payment Method after the Set MethodInfo Name update action.
- Returns:
- name
-
getOldName
Name of the Payment Method before the Set MethodInfo Name update action.
- Returns:
- oldName
-
build
builds PaymentMethodInfoNameSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodInfoNameSetMessagePayload>
- Returns:
- PaymentMethodInfoNameSetMessagePayload
-
buildUnchecked
builds PaymentMethodInfoNameSetMessagePayload without checking for non-null required values- Returns:
- PaymentMethodInfoNameSetMessagePayload
-
of
factory method for an instance of PaymentMethodInfoNameSetMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentMethodInfoNameSetMessagePayloadBuilder of(PaymentMethodInfoNameSetMessagePayload template) create builder for PaymentMethodInfoNameSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-