Class GraphQLMaxResourceLimitExceededErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLMaxResourceLimitExceededErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLMaxResourceLimitExceededError>
public class GraphQLMaxResourceLimitExceededErrorBuilder
extends Object
implements Builder<GraphQLMaxResourceLimitExceededError>
GraphQLMaxResourceLimitExceededErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLMaxResourceLimitExceededError graphQLMaxResourceLimitExceededError = GraphQLMaxResourceLimitExceededError.builder()
.exceededResource(ReferenceTypeId.APPROVAL_FLOW)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLMaxResourceLimitExceededError with checking for non-null required valuesbuilds GraphQLMaxResourceLimitExceededError without checking for non-null required valuesexceededResource
(ReferenceTypeId exceededResource) Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).Error-specific additional fields.of()
factory method for an instance of GraphQLMaxResourceLimitExceededErrorBuilderof
(GraphQLMaxResourceLimitExceededError template) create builder for GraphQLMaxResourceLimitExceededError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLMaxResourceLimitExceededErrorBuilder
public GraphQLMaxResourceLimitExceededErrorBuilder()
-
-
Method Details
-
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
-
exceededResource
public GraphQLMaxResourceLimitExceededErrorBuilder exceededResource(ReferenceTypeId exceededResource) Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).
- Parameters:
exceededResource
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getExceededResource
Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).
- Returns:
- exceededResource
-
build
builds GraphQLMaxResourceLimitExceededError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLMaxResourceLimitExceededError>
- Returns:
- GraphQLMaxResourceLimitExceededError
-
buildUnchecked
builds GraphQLMaxResourceLimitExceededError without checking for non-null required values- Returns:
- GraphQLMaxResourceLimitExceededError
-
of
factory method for an instance of GraphQLMaxResourceLimitExceededErrorBuilder- Returns:
- builder
-
of
public static GraphQLMaxResourceLimitExceededErrorBuilder of(GraphQLMaxResourceLimitExceededError template) create builder for GraphQLMaxResourceLimitExceededError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-