Class PaymentMethodInfoCustomTypeSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentMethodInfoCustomTypeSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentMethodInfoCustomTypeSetMessagePayload>
public class PaymentMethodInfoCustomTypeSetMessagePayloadBuilder
extends Object
implements Builder<PaymentMethodInfoCustomTypeSetMessagePayload>
PaymentMethodInfoCustomTypeSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodInfoCustomTypeSetMessagePayload paymentMethodInfoCustomTypeSetMessagePayload = PaymentMethodInfoCustomTypeSetMessagePayload.builder()
.customFields(customFieldsBuilder -> customFieldsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodInfoCustomTypeSetMessagePayload with checking for non-null required valuesbuilds PaymentMethodInfoCustomTypeSetMessagePayload 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.id
of the previous Type.of()
factory method for an instance of PaymentMethodInfoCustomTypeSetMessagePayloadBuildercreate builder for PaymentMethodInfoCustomTypeSetMessagePayload instanceid
of the previous Type.The Custom Fields that were set.
-
Constructor Details
-
PaymentMethodInfoCustomTypeSetMessagePayloadBuilder
public PaymentMethodInfoCustomTypeSetMessagePayloadBuilder()
-
-
Method Details
-
customFields
public PaymentMethodInfoCustomTypeSetMessagePayloadBuilder customFields(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) The Custom Fields that were set.
- Parameters:
builder
- function to build the customFields value- Returns:
- Builder
-
withCustomFields
public PaymentMethodInfoCustomTypeSetMessagePayloadBuilder 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
id
of the previous 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
id
of the previous Type. Absent if there was no previous Custom Type present.- Returns:
- oldTypeId
-
build
builds PaymentMethodInfoCustomTypeSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodInfoCustomTypeSetMessagePayload>
- Returns:
- PaymentMethodInfoCustomTypeSetMessagePayload
-
buildUnchecked
builds PaymentMethodInfoCustomTypeSetMessagePayload without checking for non-null required values- Returns:
- PaymentMethodInfoCustomTypeSetMessagePayload
-
of
factory method for an instance of PaymentMethodInfoCustomTypeSetMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentMethodInfoCustomTypeSetMessagePayloadBuilder of(PaymentMethodInfoCustomTypeSetMessagePayload template) create builder for PaymentMethodInfoCustomTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-