Class ReferencedResourceNotFoundBuilder
java.lang.Object
com.commercetools.importapi.models.errors.ReferencedResourceNotFoundBuilder
- All Implemented Interfaces:
Builder<ReferencedResourceNotFound>
public class ReferencedResourceNotFoundBuilder
extends Object
implements Builder<ReferencedResourceNotFound>
ReferencedResourceNotFoundBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReferencedResourceNotFound referencedResourceNotFound = ReferencedResourceNotFound.builder()
.message("{message}")
.typeId(ReferenceType.CART)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReferencedResourceNotFound with checking for non-null required valuesbuilds ReferencedResourceNotFound without checking for non-null required valuesgetId()
Unique identifier of the referenced resource, if known.getKey()
User-defined unique identifier of the referenced resource, if known."The referenced object of type $typeId $predicate was not found.
Type of referenced resource.Unique identifier of the referenced resource, if known.User-defined unique identifier of the referenced resource, if known."The referenced object of type $typeId $predicate was not found.
of()
factory method for an instance of ReferencedResourceNotFoundBuilderof
(ReferencedResourceNotFound template) create builder for ReferencedResourceNotFound instancetypeId
(ReferenceType typeId) Type of referenced resource.
-
Constructor Details
-
ReferencedResourceNotFoundBuilder
public ReferencedResourceNotFoundBuilder()
-
-
Method Details
-
message
"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
- Parameters:
message
- value to be set- Returns:
- Builder
-
typeId
Type of referenced resource.
- Parameters:
typeId
- value to be set- Returns:
- Builder
-
id
Unique identifier of the referenced resource, if known.
- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced resource, if known.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getMessage
"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
- Returns:
- message
-
getTypeId
Type of referenced resource.
- Returns:
- typeId
-
getId
Unique identifier of the referenced resource, if known.
- Returns:
- id
-
getKey
User-defined unique identifier of the referenced resource, if known.
- Returns:
- key
-
build
builds ReferencedResourceNotFound with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReferencedResourceNotFound>
- Returns:
- ReferencedResourceNotFound
-
buildUnchecked
builds ReferencedResourceNotFound without checking for non-null required values- Returns:
- ReferencedResourceNotFound
-
of
factory method for an instance of ReferencedResourceNotFoundBuilder- Returns:
- builder
-
of
create builder for ReferencedResourceNotFound instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-