Interface GraphQLMaxResourceLimitExceededError
- All Superinterfaces:
GraphQLErrorObject
Returned when a resource type cannot be created as it has reached its limits.
The limits must be adjusted for this resource before sending the request again.
Example to create an instance using the builder pattern
GraphQLMaxResourceLimitExceededError graphQLMaxResourceLimitExceededError = GraphQLMaxResourceLimitExceededError.builder()
.exceededResource(ReferenceTypeId.APPROVAL_FLOW)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLMaxResourceLimitExceededError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLMaxResourceLimitExceededErrorbuilder
(GraphQLMaxResourceLimitExceededError template) create builder for GraphQLMaxResourceLimitExceededError instancedeepCopy
(GraphQLMaxResourceLimitExceededError template) factory method to create a deep copy of GraphQLMaxResourceLimitExceededError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull ReferenceTypeId
Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).of()
factory methodof
(GraphQLMaxResourceLimitExceededError template) factory method to create a shallow copy GraphQLMaxResourceLimitExceededErrorvoid
setExceededResource
(ReferenceTypeId exceededResource) Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).static com.fasterxml.jackson.core.type.TypeReference<GraphQLMaxResourceLimitExceededError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
MAX_RESOURCE_LIMIT_EXCEEDED
discriminator value for GraphQLMaxResourceLimitExceededError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getExceededResource
Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).
- Returns:
- exceededResource
-
setExceededResource
Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).
- Parameters:
exceededResource
- value to be set
-
of
factory method- Returns:
- instance of GraphQLMaxResourceLimitExceededError
-
of
factory method to create a shallow copy GraphQLMaxResourceLimitExceededError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLMaxResourceLimitExceededError deepCopy(@Nullable GraphQLMaxResourceLimitExceededError template) factory method to create a deep copy of GraphQLMaxResourceLimitExceededError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLMaxResourceLimitExceededError- Returns:
- builder
-
builder
static GraphQLMaxResourceLimitExceededErrorBuilder builder(GraphQLMaxResourceLimitExceededError template) create builder for GraphQLMaxResourceLimitExceededError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLMaxResourceLimitExceededError
default <T> T withGraphQLMaxResourceLimitExceededError(Function<GraphQLMaxResourceLimitExceededError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLMaxResourceLimitExceededError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-