Class ReferencedResourceNotFoundErrorBuilder
- All Implemented Interfaces:
Builder<ReferencedResourceNotFoundError>
Example to create an instance using the builder pattern
ReferencedResourceNotFoundError referencedResourceNotFoundError = ReferencedResourceNotFoundError.builder()
.message("{message}")
.typeId(ReferenceTypeId.APPROVAL_FLOW)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ReferencedResourceNotFoundError with checking for non-null required valuesbuilds ReferencedResourceNotFoundError 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.Error-specific additional fields.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 ReferencedResourceNotFoundErrorBuilderof
(ReferencedResourceNotFoundError template) create builder for ReferencedResourceNotFoundError instancetypeId
(ReferenceTypeId typeId) Type of referenced resource.Error-specific additional fields.
-
Constructor Details
-
ReferencedResourceNotFoundErrorBuilder
public ReferencedResourceNotFoundErrorBuilder()
-
-
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
-
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
-
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
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
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 ReferencedResourceNotFoundError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReferencedResourceNotFoundError>
- Returns:
- ReferencedResourceNotFoundError
-
buildUnchecked
builds ReferencedResourceNotFoundError without checking for non-null required values- Returns:
- ReferencedResourceNotFoundError
-
of
factory method for an instance of ReferencedResourceNotFoundErrorBuilder- Returns:
- builder
-
of
create builder for ReferencedResourceNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-