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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentSetKeyActionBuilderbuilder()builder factory method for PaymentSetKeyActionstatic PaymentSetKeyActionBuilderbuilder(PaymentSetKeyAction template) create builder for PaymentSetKeyAction instancecopyDeep()static PaymentSetKeyActiondeepCopy(PaymentSetKeyAction template) factory method to create a deep copy of PaymentSetKeyActiongetKey()Value to set.static PaymentSetKeyActionof()factory methodstatic PaymentSetKeyActionof(PaymentSetKeyAction template) factory method to create a shallow copy PaymentSetKeyActionstatic PaymentSetKeyActionofUnset()voidValue to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentSetKeyAction(Function<PaymentSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateActionMethods 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
keyis absent ornull, the existing key, if any, will be removed.- Returns:
- key
-
setKey
Value to set. If
keyis 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
-
copyDeep
PaymentSetKeyAction copyDeep()- Specified by:
copyDeepin interfacePaymentUpdateAction
-
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
-