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