Interface MyCustomerChangePassword
public interface MyCustomerChangePassword
MyCustomerChangePassword
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCustomerChangePassword myCustomerChangePassword = MyCustomerChangePassword.builder()
.version(0.3)
.currentPassword("{currentPassword}")
.newPassword("{newPassword}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerChangePasswordbuilder(MyCustomerChangePassword template) create builder for MyCustomerChangePassword instancecopyDeep()static MyCustomerChangePassworddeepCopy(MyCustomerChangePassword template) factory method to create a deep copy of MyCustomerChangePassword@NotNull StringCurrent password of the Customer.@NotNull StringNew password to be set.@NotNull LongExpected version of the Customer on which the changes should be applied.static MyCustomerChangePasswordof()factory methodstatic MyCustomerChangePasswordof(MyCustomerChangePassword template) factory method to create a shallow copy MyCustomerChangePasswordvoidsetCurrentPassword(String currentPassword) Current password 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<MyCustomerChangePassword>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
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
-
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 MyCustomerChangePassword
-
of
factory method to create a shallow copy MyCustomerChangePassword- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerChangePassword copyDeep() -
deepCopy
factory method to create a deep copy of MyCustomerChangePassword- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerChangePassword- Returns:
- builder
-
builder
create builder for MyCustomerChangePassword instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerChangePassword
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
-