Class ObjectNotFoundErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ObjectNotFoundErrorBuilder
- All Implemented Interfaces:
Builder<ObjectNotFoundError>
ObjectNotFoundErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ObjectNotFoundError objectNotFoundError = ObjectNotFoundError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ObjectNotFoundError with checking for non-null required valuesbuilds ObjectNotFoundError without checking for non-null required values"A $resourceType with identifier $id was unexpectedly not found."
orError-specific additional fields."A $resourceType with identifier $id was unexpectedly not found."
orstatic ObjectNotFoundErrorBuilder
of()
factory method for an instance of ObjectNotFoundErrorBuilderstatic ObjectNotFoundErrorBuilder
of
(ObjectNotFoundError template) create builder for ObjectNotFoundError instanceError-specific additional fields.
-
Constructor Details
-
ObjectNotFoundErrorBuilder
public ObjectNotFoundErrorBuilder()
-
-
Method Details
-
message
"A $resourceType with identifier $id was unexpectedly not found."
or"No index found for project"
- 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
"A $resourceType with identifier $id was unexpectedly not found."
or"No index found for project"
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds ObjectNotFoundError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ObjectNotFoundError>
- Returns:
- ObjectNotFoundError
-
buildUnchecked
builds ObjectNotFoundError without checking for non-null required values- Returns:
- ObjectNotFoundError
-
of
factory method for an instance of ObjectNotFoundErrorBuilder- Returns:
- builder
-
of
create builder for ObjectNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-