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.idof the previous Type.of()factory method for an instance of PaymentMethodInfoCustomTypeSetMessagePayloadBuildercreate builder for PaymentMethodInfoCustomTypeSetMessagePayload instanceidof 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
idof 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
idof 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:
buildin 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
-