Class ResourceNotFoundErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ResourceNotFoundErrorBuilder
- All Implemented Interfaces:
Builder<ResourceNotFoundError>
ResourceNotFoundErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceNotFoundError resourceNotFoundError = ResourceNotFoundError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ResourceNotFoundError with checking for non-null required valuesbuilds ResourceNotFoundError without checking for non-null required values"The Resource with ID $resourceId was not found."
Error-specific additional fields."The Resource with ID $resourceId was not found."
static ResourceNotFoundErrorBuilder
of()
factory method for an instance of ResourceNotFoundErrorBuilderstatic ResourceNotFoundErrorBuilder
of
(ResourceNotFoundError template) create builder for ResourceNotFoundError instanceError-specific additional fields.
-
Constructor Details
-
ResourceNotFoundErrorBuilder
public ResourceNotFoundErrorBuilder()
-
-
Method Details
-
message
"The Resource with ID $resourceId was 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
"The Resource with ID $resourceId was not found."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds ResourceNotFoundError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceNotFoundError>
- Returns:
- ResourceNotFoundError
-
buildUnchecked
builds ResourceNotFoundError without checking for non-null required values- Returns:
- ResourceNotFoundError
-
of
factory method for an instance of ResourceNotFoundErrorBuilder- Returns:
- builder
-
of
create builder for ResourceNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-