Class PaymentSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentSetKeyActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetKeyAction>
PaymentSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetKeyAction paymentSetKeyAction = PaymentSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetKeyAction with checking for non-null required valuesbuilds PaymentSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.static PaymentSetKeyActionBuilder
of()
factory method for an instance of PaymentSetKeyActionBuilderstatic PaymentSetKeyActionBuilder
of
(PaymentSetKeyAction template) create builder for PaymentSetKeyAction instance
-
Constructor Details
-
PaymentSetKeyActionBuilder
public PaymentSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If
key
is absent ornull
, the existing key, if any, will be removed.- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
build
builds PaymentSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetKeyAction>
- Returns:
- PaymentSetKeyAction
-
buildUnchecked
builds PaymentSetKeyAction without checking for non-null required values- Returns:
- PaymentSetKeyAction
-
of
factory method for an instance of PaymentSetKeyActionBuilder- Returns:
- builder
-
of
create builder for PaymentSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-