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