Class ExtensionNoResponseErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ExtensionNoResponseErrorBuilder
- All Implemented Interfaces:
Builder<ExtensionNoResponseError>
public class ExtensionNoResponseErrorBuilder
extends Object
implements Builder<ExtensionNoResponseError>
ExtensionNoResponseErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionNoResponseError extensionNoResponseError = ExtensionNoResponseError.builder()
.message("{message}")
.extensionId("{extensionId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ExtensionNoResponseError with checking for non-null required valuesbuilds ExtensionNoResponseError without checking for non-null required valuesextensionId
(String extensionId) Unique identifier of the API Extension.extensionKey
(String extensionKey) User-defined unique identifier of the API Extension, if available.Unique identifier of the API Extension.User-defined unique identifier of the API Extension, if available."Extension did not respond in time."
Error-specific additional fields."Extension did not respond in time."
of()
factory method for an instance of ExtensionNoResponseErrorBuilderof
(ExtensionNoResponseError template) create builder for ExtensionNoResponseError instanceError-specific additional fields.
-
Constructor Details
-
ExtensionNoResponseErrorBuilder
public ExtensionNoResponseErrorBuilder()
-
-
Method Details
-
message
"Extension did not respond in time."
- 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
-
extensionId
Unique identifier of the API Extension.
- Parameters:
extensionId
- value to be set- Returns:
- Builder
-
extensionKey
User-defined unique identifier of the API Extension, if available.
- Parameters:
extensionKey
- value to be set- Returns:
- Builder
-
getMessage
"Extension did not respond in time."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getExtensionId
Unique identifier of the API Extension.
- Returns:
- extensionId
-
getExtensionKey
User-defined unique identifier of the API Extension, if available.
- Returns:
- extensionKey
-
build
builds ExtensionNoResponseError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExtensionNoResponseError>
- Returns:
- ExtensionNoResponseError
-
buildUnchecked
builds ExtensionNoResponseError without checking for non-null required values- Returns:
- ExtensionNoResponseError
-
of
factory method for an instance of ExtensionNoResponseErrorBuilder- Returns:
- builder
-
of
create builder for ExtensionNoResponseError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-