Class AgentOutOfScopeErrorBuilder

java.lang.Object
com.commercetools.api.models.agent.AgentOutOfScopeErrorBuilder
All Implemented Interfaces:
Builder<AgentOutOfScopeError>

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

     AgentOutOfScopeError agentOutOfScopeError = AgentOutOfScopeError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • AgentOutOfScopeErrorBuilder

      public AgentOutOfScopeErrorBuilder()
  • Method Details

    • message

      public AgentOutOfScopeErrorBuilder message(String message)

      Plain text description of the error.

      Parameters:
      message - value to be set
      Returns:
      Builder
    • values

      public AgentOutOfScopeErrorBuilder values(Map<String,Object> values)

      Error-specific additional fields.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public AgentOutOfScopeErrorBuilder 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 of the error.

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

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