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

     ExtensionNoResponseError extensionNoResponseError = ExtensionNoResponseError.builder()
             .message("{message}")
             .extensionId("{extensionId}")
             .build()
 
  • Constructor Details

    • ExtensionNoResponseErrorBuilder

      public ExtensionNoResponseErrorBuilder()
  • Method Details

    • message

      public ExtensionNoResponseErrorBuilder message(String 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

      public ExtensionNoResponseErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • extensionId

      public ExtensionNoResponseErrorBuilder extensionId(String extensionId)

      Unique identifier of the API Extension.

      Parameters:
      extensionId - value to be set
      Returns:
      Builder
    • extensionKey

      public ExtensionNoResponseErrorBuilder extensionKey(@Nullable String extensionKey)

      User-defined unique identifier of the API Extension, if available.

      Parameters:
      extensionKey - value to be set
      Returns:
      Builder
    • getMessage

      public String getMessage()

      "Extension did not respond in time."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • getExtensionId

      public String getExtensionId()

      Unique identifier of the API Extension.

      Returns:
      extensionId
    • getExtensionKey

      @Nullable public String getExtensionKey()

      User-defined unique identifier of the API Extension, if available.

      Returns:
      extensionKey
    • build

      public ExtensionNoResponseError build()
      builds ExtensionNoResponseError with checking for non-null required values
      Specified by:
      build in interface Builder<ExtensionNoResponseError>
      Returns:
      ExtensionNoResponseError
    • buildUnchecked

      public ExtensionNoResponseError buildUnchecked()
      builds ExtensionNoResponseError without checking for non-null required values
      Returns:
      ExtensionNoResponseError
    • of

      public static ExtensionNoResponseErrorBuilder 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