Class ContentTooLargeErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ContentTooLargeErrorBuilder
- All Implemented Interfaces:
Builder<ContentTooLargeError>
ContentTooLargeErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ContentTooLargeError contentTooLargeError = ContentTooLargeError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ContentTooLargeError with checking for non-null required valuesbuilds ContentTooLargeError without checking for non-null required values"Content too large."
Error-specific additional fields."Content too large."
static ContentTooLargeErrorBuilder
of()
factory method for an instance of ContentTooLargeErrorBuilderstatic ContentTooLargeErrorBuilder
of
(ContentTooLargeError template) create builder for ContentTooLargeError instanceError-specific additional fields.
-
Constructor Details
-
ContentTooLargeErrorBuilder
public ContentTooLargeErrorBuilder()
-
-
Method Details
-
message
"Content too large."
- 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
"Content too large."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds ContentTooLargeError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ContentTooLargeError>
- Returns:
- ContentTooLargeError
-
buildUnchecked
builds ContentTooLargeError without checking for non-null required values- Returns:
- ContentTooLargeError
-
of
factory method for an instance of ContentTooLargeErrorBuilder- Returns:
- builder
-
of
create builder for ContentTooLargeError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-