Class ResourceSizeLimitExceededErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ResourceSizeLimitExceededErrorBuilder
- All Implemented Interfaces:
Builder<ResourceSizeLimitExceededError>
public class ResourceSizeLimitExceededErrorBuilder
extends Object
implements Builder<ResourceSizeLimitExceededError>
ResourceSizeLimitExceededErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceSizeLimitExceededError resourceSizeLimitExceededError = ResourceSizeLimitExceededError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ResourceSizeLimitExceededError with checking for non-null required valuesbuilds ResourceSizeLimitExceededError without checking for non-null required values"The resource size exceeds the maximal allowed size of 16 MB."
Error-specific additional fields."The resource size exceeds the maximal allowed size of 16 MB."
of()
factory method for an instance of ResourceSizeLimitExceededErrorBuilderof
(ResourceSizeLimitExceededError template) create builder for ResourceSizeLimitExceededError instanceError-specific additional fields.
-
Constructor Details
-
ResourceSizeLimitExceededErrorBuilder
public ResourceSizeLimitExceededErrorBuilder()
-
-
Method Details
-
message
"The resource size exceeds the maximal allowed size of 16 MB."
- 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
-
getMessage
"The resource size exceeds the maximal allowed size of 16 MB."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds ResourceSizeLimitExceededError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceSizeLimitExceededError>
- Returns:
- ResourceSizeLimitExceededError
-
buildUnchecked
builds ResourceSizeLimitExceededError without checking for non-null required values- Returns:
- ResourceSizeLimitExceededError
-
of
factory method for an instance of ResourceSizeLimitExceededErrorBuilder- Returns:
- builder
-
of
create builder for ResourceSizeLimitExceededError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-