Class PaymentMethodSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.payment_method.PaymentMethodSetKeyActionBuilder
- All Implemented Interfaces:
Builder<PaymentMethodSetKeyAction>
public class PaymentMethodSetKeyActionBuilder
extends Object
implements Builder<PaymentMethodSetKeyAction>
PaymentMethodSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodSetKeyAction paymentMethodSetKeyAction = PaymentMethodSetKeyAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodSetKeyAction with checking for non-null required valuesbuilds PaymentMethodSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.of()
factory method for an instance of PaymentMethodSetKeyActionBuilderof
(PaymentMethodSetKeyAction template) create builder for PaymentMethodSetKeyAction instance
-
Constructor Details
-
PaymentMethodSetKeyActionBuilder
public PaymentMethodSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds PaymentMethodSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodSetKeyAction>
- Returns:
- PaymentMethodSetKeyAction
-
buildUnchecked
builds PaymentMethodSetKeyAction without checking for non-null required values- Returns:
- PaymentMethodSetKeyAction
-
of
factory method for an instance of PaymentMethodSetKeyActionBuilder- Returns:
- builder
-
of
create builder for PaymentMethodSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-