Class PaymentSetMethodInfoCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentSetMethodInfoCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetMethodInfoCustomTypeAction>
public class PaymentSetMethodInfoCustomTypeActionBuilder
extends Object
implements Builder<PaymentSetMethodInfoCustomTypeAction>
PaymentSetMethodInfoCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetMethodInfoCustomTypeAction paymentSetMethodInfoCustomTypeAction = PaymentSetMethodInfoCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetMethodInfoCustomTypeAction with checking for non-null required valuesbuilds PaymentSetMethodInfoCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for thepaymentMethodInfo
.Sets the Custom Fields fields for thepaymentMethodInfo
.Sets the Custom Fields fields for thepaymentMethodInfo
.getType()
of()
factory method for an instance of PaymentSetMethodInfoCustomTypeActionBuilderof
(PaymentSetMethodInfoCustomTypeAction template) create builder for PaymentSetMethodInfoCustomTypeAction instancetype
(TypeResourceIdentifier type) Sets the Custom Fields fields for thepaymentMethodInfo
.
-
Constructor Details
-
PaymentSetMethodInfoCustomTypeActionBuilder
public PaymentSetMethodInfoCustomTypeActionBuilder()
-
-
Method Details
-
type
public PaymentSetMethodInfoCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the
paymentMethodInfo
with Custom Fields.- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public PaymentSetMethodInfoCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the
paymentMethodInfo
with Custom Fields.- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the
paymentMethodInfo
with Custom Fields.- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public PaymentSetMethodInfoCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the
paymentMethodInfo
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public PaymentSetMethodInfoCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the
paymentMethodInfo
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the
paymentMethodInfo
.- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the
paymentMethodInfo
with Custom Fields.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
paymentMethodInfo
.- Returns:
- fields
-
build
builds PaymentSetMethodInfoCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetMethodInfoCustomTypeAction>
- Returns:
- PaymentSetMethodInfoCustomTypeAction
-
buildUnchecked
builds PaymentSetMethodInfoCustomTypeAction without checking for non-null required values- Returns:
- PaymentSetMethodInfoCustomTypeAction
-
of
factory method for an instance of PaymentSetMethodInfoCustomTypeActionBuilder- Returns:
- builder
-
of
public static PaymentSetMethodInfoCustomTypeActionBuilder of(PaymentSetMethodInfoCustomTypeAction template) create builder for PaymentSetMethodInfoCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-