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 instancestatic CustomerChangePassword
deepCopy
(CustomerChangePassword template) factory method to create a deep copy of CustomerChangePassword@NotNull String
Current password of the Customer.@NotNull String
getId()
Unique identifier 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 CustomerChangePassword
of()
factory methodstatic CustomerChangePassword
of
(CustomerChangePassword template) factory method to create a shallow copy CustomerChangePasswordvoid
setCurrentPassword
(String currentPassword) Current password of the Customer.void
Unique identifier 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<CustomerChangePassword>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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
-
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
-