Interface CustomerChangePassword
public interface CustomerChangePassword
CustomerChangePassword
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerChangePassword customerChangePassword = CustomerChangePassword.builder()
.id("{id}")
.version(0.3)
.currentPassword("{currentPassword}")
.newPassword("{newPassword}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerChangePasswordbuilder(CustomerChangePassword template) create builder for CustomerChangePassword instancecopyDeep()static CustomerChangePassworddeepCopy(CustomerChangePassword template) factory method to create a deep copy of CustomerChangePassword@NotNull StringCurrent password of the Customer.@NotNull StringgetId()Unique identifier of the Customer.@NotNull StringNew password to be set.@NotNull LongExpected version of the Customer on which the changes should be applied.static CustomerChangePasswordof()factory methodstatic CustomerChangePasswordof(CustomerChangePassword template) factory method to create a shallow copy CustomerChangePasswordvoidsetCurrentPassword(String currentPassword) Current password of the Customer.voidUnique identifier of the Customer.voidsetNewPassword(String newPassword) New password to be set.voidsetVersion(Long version) Expected version of the Customer on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<CustomerChangePassword>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
Unique identifier of the Customer.
- Returns:
- id
-
getVersion
Expected version of the Customer on which the changes should be applied.
- Returns:
- version
-
getCurrentPassword
Current password of the Customer.
If the current password does not match, an InvalidCurrentPassword error is returned.
- Returns:
- currentPassword
-
getNewPassword
New password to be set.
- Returns:
- newPassword
-
setId
Unique identifier of the Customer.
- Parameters:
id- value to be set
-
setVersion
Expected version of the Customer on which the changes should be applied.
- Parameters:
version- value to be set
-
setCurrentPassword
Current password of the Customer.
If the current password does not match, an InvalidCurrentPassword error is returned.
- Parameters:
currentPassword- value to be set
-
setNewPassword
New password to be set.
- Parameters:
newPassword- value to be set
-
of
factory method- Returns:
- instance of CustomerChangePassword
-
of
factory method to create a shallow copy CustomerChangePassword- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerChangePassword copyDeep() -
deepCopy
factory method to create a deep copy of CustomerChangePassword- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerChangePassword- Returns:
- builder
-
builder
create builder for CustomerChangePassword instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerChangePassword
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
-