Class InvalidCurrentPasswordErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InvalidCurrentPasswordErrorBuilder
- All Implemented Interfaces:
Builder<InvalidCurrentPasswordError>
public class InvalidCurrentPasswordErrorBuilder
extends Object
implements Builder<InvalidCurrentPasswordError>
InvalidCurrentPasswordErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidCurrentPasswordError invalidCurrentPasswordError = InvalidCurrentPasswordError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InvalidCurrentPasswordError with checking for non-null required valuesbuilds InvalidCurrentPasswordError without checking for non-null required values"The given current password does not match."
Error-specific additional fields."The given current password does not match."
of()
factory method for an instance of InvalidCurrentPasswordErrorBuilderof
(InvalidCurrentPasswordError template) create builder for InvalidCurrentPasswordError instanceError-specific additional fields.
-
Constructor Details
-
InvalidCurrentPasswordErrorBuilder
public InvalidCurrentPasswordErrorBuilder()
-
-
Method Details
-
message
"The given current password does not match."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getMessage
"The given current password does not match."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds InvalidCurrentPasswordError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidCurrentPasswordError>
- Returns:
- InvalidCurrentPasswordError
-
buildUnchecked
builds InvalidCurrentPasswordError without checking for non-null required values- Returns:
- InvalidCurrentPasswordError
-
of
factory method for an instance of InvalidCurrentPasswordErrorBuilder- Returns:
- builder
-
of
create builder for InvalidCurrentPasswordError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-