Class MaxResourceLimitExceededErrorBuilder
java.lang.Object
com.commercetools.api.models.error.MaxResourceLimitExceededErrorBuilder
- All Implemented Interfaces:
Builder<MaxResourceLimitExceededError>
public class MaxResourceLimitExceededErrorBuilder
extends Object
implements Builder<MaxResourceLimitExceededError>
MaxResourceLimitExceededErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MaxResourceLimitExceededError maxResourceLimitExceededError = MaxResourceLimitExceededError.builder()
.message("{message}")
.exceededResource(ReferenceTypeId.APPROVAL_FLOW)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds MaxResourceLimitExceededError with checking for non-null required valuesbuilds MaxResourceLimitExceededError 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)."You have exceeded the limit of $limit resources of type $resourceTypeId."
Error-specific additional fields."You have exceeded the limit of $limit resources of type $resourceTypeId."
of()
factory method for an instance of MaxResourceLimitExceededErrorBuilderof
(MaxResourceLimitExceededError template) create builder for MaxResourceLimitExceededError instanceError-specific additional fields.
-
Constructor Details
-
MaxResourceLimitExceededErrorBuilder
public MaxResourceLimitExceededErrorBuilder()
-
-
Method Details
-
message
"You have exceeded the limit of $limit resources of type $resourceTypeId."
- 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
-
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
-
getMessage
"You have exceeded the limit of $limit resources of type $resourceTypeId."
- Returns:
- message
-
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 MaxResourceLimitExceededError with checking for non-null required values- Specified by:
build
in interfaceBuilder<MaxResourceLimitExceededError>
- Returns:
- MaxResourceLimitExceededError
-
buildUnchecked
builds MaxResourceLimitExceededError without checking for non-null required values- Returns:
- MaxResourceLimitExceededError
-
of
factory method for an instance of MaxResourceLimitExceededErrorBuilder- Returns:
- builder
-
of
create builder for MaxResourceLimitExceededError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-