Interface PaymentMethodNameSetMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
Generated after a successful Set Name update action.
Example to create an instance using the builder pattern
PaymentMethodNameSetMessage paymentMethodNameSetMessage = PaymentMethodNameSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentMethodNameSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentMethodNameSetMessagebuilder(PaymentMethodNameSetMessage template) create builder for PaymentMethodNameSetMessage instancecopyDeep()static PaymentMethodNameSetMessagedeepCopy(PaymentMethodNameSetMessage template) factory method to create a deep copy of PaymentMethodNameSetMessage@Valid LocalizedStringgetName()Name of the Payment Method after the Set Name update action.@Valid LocalizedStringName of the Payment Method before the Set Name update action.static PaymentMethodNameSetMessageof()factory methodstatic PaymentMethodNameSetMessageof(PaymentMethodNameSetMessage template) factory method to create a shallow copy PaymentMethodNameSetMessagevoidsetName(LocalizedString name) Name of the Payment Method after the Set Name update action.voidsetOldName(LocalizedString oldName) Name of the Payment Method before the Set Name update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodNameSetMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
PAYMENT_METHOD_NAME_SET
discriminator value for PaymentMethodNameSetMessage- See Also:
-
-
Method Details
-
getName
Name of the Payment Method after the Set Name update action.
- Returns:
- name
-
getOldName
Name of the Payment Method before the Set Name update action.
- Returns:
- oldName
-
setName
Name of the Payment Method after the Set Name update action.
- Parameters:
name- value to be set
-
setOldName
Name of the Payment Method before the Set Name update action.
- Parameters:
oldName- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodNameSetMessage
-
of
factory method to create a shallow copy PaymentMethodNameSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodNameSetMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
@Nullable static PaymentMethodNameSetMessage deepCopy(@Nullable PaymentMethodNameSetMessage template) factory method to create a deep copy of PaymentMethodNameSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodNameSetMessage- Returns:
- builder
-
builder
create builder for PaymentMethodNameSetMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodNameSetMessage
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-