Class ExternalOAuthFailedErrorBuilder

java.lang.Object
com.commercetools.api.models.error.ExternalOAuthFailedErrorBuilder
All Implemented Interfaces:
Builder<ExternalOAuthFailedError>

public class ExternalOAuthFailedErrorBuilder extends Object implements Builder<ExternalOAuthFailedError>
ExternalOAuthFailedErrorBuilder
Example to create an instance using the builder pattern

     ExternalOAuthFailedError externalOAuthFailedError = ExternalOAuthFailedError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • ExternalOAuthFailedErrorBuilder

      public ExternalOAuthFailedErrorBuilder()
  • Method Details

    • message

      public ExternalOAuthFailedErrorBuilder message(String message)

      Plain text description detailing the external OAuth error. For example, "External OAuth 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 ExternalOAuthFailedErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      Plain text description detailing the external OAuth error. For example, "External OAuth did not respond in time.".

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

      public static ExternalOAuthFailedErrorBuilder of()
      factory method for an instance of ExternalOAuthFailedErrorBuilder
      Returns:
      builder
    • of

      create builder for ExternalOAuthFailedError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder