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 instancestatic MyCustomerChangePassword
deepCopy
(MyCustomerChangePassword template) factory method to create a deep copy of MyCustomerChangePassword@NotNull String
Current password of the Customer.@NotNull String
New password to be set.@NotNull Long
Expected version of the Customer on which the changes should be applied.static MyCustomerChangePassword
of()
factory methodstatic MyCustomerChangePassword
of
(MyCustomerChangePassword template) factory method to create a shallow copy MyCustomerChangePasswordvoid
setCurrentPassword
(String currentPassword) Current password of the Customer.void
setNewPassword
(String newPassword) New password to be set.void
setVersion
(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> T
accessor 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
-
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
-