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