Package com.commercetools.api.models.me
Class MyPaymentSetMethodInfoCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyPaymentSetMethodInfoCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<MyPaymentSetMethodInfoCustomTypeAction>
public class MyPaymentSetMethodInfoCustomTypeActionBuilder
extends Object
implements Builder<MyPaymentSetMethodInfoCustomTypeAction>
MyPaymentSetMethodInfoCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyPaymentSetMethodInfoCustomTypeAction myPaymentSetMethodInfoCustomTypeAction = MyPaymentSetMethodInfoCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyPaymentSetMethodInfoCustomTypeAction with checking for non-null required valuesbuilds MyPaymentSetMethodInfoCustomTypeAction 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 MyPaymentSetMethodInfoCustomTypeActionBuilderof(MyPaymentSetMethodInfoCustomTypeAction template) create builder for MyPaymentSetMethodInfoCustomTypeAction instancetype(TypeResourceIdentifier type) Sets the Custom Fields fields for thepaymentMethodInfo.
-
Constructor Details
-
MyPaymentSetMethodInfoCustomTypeActionBuilder
public MyPaymentSetMethodInfoCustomTypeActionBuilder()
-
-
Method Details
-
type
public MyPaymentSetMethodInfoCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the
paymentMethodInfowith Custom Fields.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public MyPaymentSetMethodInfoCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the
paymentMethodInfowith Custom Fields.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the
paymentMethodInfowith Custom Fields.- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public MyPaymentSetMethodInfoCustomTypeActionBuilder 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 MyPaymentSetMethodInfoCustomTypeActionBuilder 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
paymentMethodInfowith Custom Fields.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
paymentMethodInfo.- Returns:
- fields
-
build
builds MyPaymentSetMethodInfoCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyPaymentSetMethodInfoCustomTypeAction>- Returns:
- MyPaymentSetMethodInfoCustomTypeAction
-
buildUnchecked
builds MyPaymentSetMethodInfoCustomTypeAction without checking for non-null required values- Returns:
- MyPaymentSetMethodInfoCustomTypeAction
-
of
factory method for an instance of MyPaymentSetMethodInfoCustomTypeActionBuilder- Returns:
- builder
-
of
public static MyPaymentSetMethodInfoCustomTypeActionBuilder of(MyPaymentSetMethodInfoCustomTypeAction template) create builder for MyPaymentSetMethodInfoCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-