Class InvalidCredentialsErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InvalidCredentialsErrorBuilder
- All Implemented Interfaces:
Builder<InvalidCredentialsError>
public class InvalidCredentialsErrorBuilder
extends Object
implements Builder<InvalidCredentialsError>
InvalidCredentialsErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidCredentialsError invalidCredentialsError = InvalidCredentialsError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InvalidCredentialsError with checking for non-null required valuesbuilds InvalidCredentialsError without checking for non-null required values"Account with the given credentials not found."
Error-specific additional fields."Account with the given credentials not found."
of()
factory method for an instance of InvalidCredentialsErrorBuilderof
(InvalidCredentialsError template) create builder for InvalidCredentialsError instanceError-specific additional fields.
-
Constructor Details
-
InvalidCredentialsErrorBuilder
public InvalidCredentialsErrorBuilder()
-
-
Method Details
-
message
"Account with the given credentials not found."
- 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
"Account with the given credentials not found."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds InvalidCredentialsError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidCredentialsError>
- Returns:
- InvalidCredentialsError
-
buildUnchecked
builds InvalidCredentialsError without checking for non-null required values- Returns:
- InvalidCredentialsError
-
of
factory method for an instance of InvalidCredentialsErrorBuilder- Returns:
- builder
-
of
create builder for InvalidCredentialsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-