Interface PaymentSetKeyAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
PaymentSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetKeyAction paymentSetKeyAction = PaymentSetKeyAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentSetKeyActionBuilder
builder()
builder factory method for PaymentSetKeyActionstatic PaymentSetKeyActionBuilder
builder
(PaymentSetKeyAction template) create builder for PaymentSetKeyAction instancestatic PaymentSetKeyAction
deepCopy
(PaymentSetKeyAction template) factory method to create a deep copy of PaymentSetKeyActiongetKey()
Value to set.static PaymentSetKeyAction
of()
factory methodstatic PaymentSetKeyAction
of
(PaymentSetKeyAction template) factory method to create a shallow copy PaymentSetKeyActionstatic PaymentSetKeyAction
ofUnset()
void
Value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentSetKeyAction
(Function<PaymentSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_KEY
discriminator value for PaymentSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. If
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
setKey
Value to set. If
key
is absent ornull
, the existing key, if any, will be removed.- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of PaymentSetKeyAction
-
of
factory method to create a shallow copy PaymentSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentSetKeyAction- Returns:
- builder
-
builder
create builder for PaymentSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentSetKeyAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-