Class MyCustomerChangePasswordBuilder
java.lang.Object
com.commercetools.api.models.customer.MyCustomerChangePasswordBuilder
- All Implemented Interfaces:
Builder<MyCustomerChangePassword>
public class MyCustomerChangePasswordBuilder
extends Object
implements Builder<MyCustomerChangePassword>
MyCustomerChangePasswordBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCustomerChangePassword with checking for non-null required valuesbuilds MyCustomerChangePassword without checking for non-null required valuescurrentPassword
(String currentPassword) Current password of the Customer.Current password of the Customer.New password to be set.Expected version of the Customer on which the changes should be applied.newPassword
(String newPassword) New password to be set.of()
factory method for an instance of MyCustomerChangePasswordBuilderof
(MyCustomerChangePassword template) create builder for MyCustomerChangePassword instanceExpected version of the Customer on which the changes should be applied.
-
Constructor Details
-
MyCustomerChangePasswordBuilder
public MyCustomerChangePasswordBuilder()
-
-
Method Details
-
version
Expected version of the Customer on which the changes should be applied.
- Parameters:
version
- value to be set- Returns:
- Builder
-
currentPassword
Current password of the Customer.
If the current password does not match, an InvalidCurrentPassword error is returned.
- Parameters:
currentPassword
- value to be set- Returns:
- Builder
-
newPassword
New password to be set.
- Parameters:
newPassword
- value to be set- Returns:
- Builder
-
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
-
build
builds MyCustomerChangePassword with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCustomerChangePassword>
- Returns:
- MyCustomerChangePassword
-
buildUnchecked
builds MyCustomerChangePassword without checking for non-null required values- Returns:
- MyCustomerChangePassword
-
of
factory method for an instance of MyCustomerChangePasswordBuilder- Returns:
- builder
-
of
create builder for MyCustomerChangePassword instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-