Class PaymentMethodCustomTypeSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentMethodCustomTypeSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentMethodCustomTypeSetMessagePayload>
public class PaymentMethodCustomTypeSetMessagePayloadBuilder
extends Object
implements Builder<PaymentMethodCustomTypeSetMessagePayload>
PaymentMethodCustomTypeSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodCustomTypeSetMessagePayload paymentMethodCustomTypeSetMessagePayload = PaymentMethodCustomTypeSetMessagePayload.builder()
.customFields(customFieldsBuilder -> customFieldsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds PaymentMethodCustomTypeSetMessagePayload with checking for non-null required valuesbuilds PaymentMethodCustomTypeSetMessagePayload without checking for non-null required valuescustomFields(CustomFields customFields) The Custom Fields that were set.The Custom Fields that were set.The Custom Fields that were set.idof the previous Custom Type.of()factory method for an instance of PaymentMethodCustomTypeSetMessagePayloadBuilderof(PaymentMethodCustomTypeSetMessagePayload template) create builder for PaymentMethodCustomTypeSetMessagePayload instanceidof the previous Custom Type.The Custom Fields that were set.
-
Constructor Details
-
PaymentMethodCustomTypeSetMessagePayloadBuilder
public PaymentMethodCustomTypeSetMessagePayloadBuilder()
-
-
Method Details
-
customFields
public PaymentMethodCustomTypeSetMessagePayloadBuilder customFields(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) The Custom Fields that were set.
- Parameters:
builder- function to build the customFields value- Returns:
- Builder
-
withCustomFields
public PaymentMethodCustomTypeSetMessagePayloadBuilder withCustomFields(Function<CustomFieldsBuilder, CustomFields> builder) The Custom Fields that were set.
- Parameters:
builder- function to build the customFields value- Returns:
- Builder
-
customFields
The Custom Fields that were set.
- Parameters:
customFields- value to be set- Returns:
- Builder
-
oldTypeId
idof the previous Custom Type. Absent if there was no previous Custom Type present.- Parameters:
oldTypeId- value to be set- Returns:
- Builder
-
getCustomFields
The Custom Fields that were set.
- Returns:
- customFields
-
getOldTypeId
idof the previous Custom Type. Absent if there was no previous Custom Type present.- Returns:
- oldTypeId
-
build
builds PaymentMethodCustomTypeSetMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<PaymentMethodCustomTypeSetMessagePayload>- Returns:
- PaymentMethodCustomTypeSetMessagePayload
-
buildUnchecked
builds PaymentMethodCustomTypeSetMessagePayload without checking for non-null required values- Returns:
- PaymentMethodCustomTypeSetMessagePayload
-
of
factory method for an instance of PaymentMethodCustomTypeSetMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentMethodCustomTypeSetMessagePayloadBuilder of(PaymentMethodCustomTypeSetMessagePayload template) create builder for PaymentMethodCustomTypeSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-