Class AgentProductsNotFoundWarningBuilder

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

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

     AgentProductsNotFoundWarning agentProductsNotFoundWarning = AgentProductsNotFoundWarning.builder()
             .message("{message}")
             .plusProducts(productsBuilder -> productsBuilder)
             .build()
 
  • Constructor Details

    • AgentProductsNotFoundWarningBuilder

      public AgentProductsNotFoundWarningBuilder()
  • Method Details

    • message

      public AgentProductsNotFoundWarningBuilder message(String message)

      Plain text description of the unmatched Products.

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

      public AgentProductsNotFoundWarningBuilder products(String... products)

      Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.

      Parameters:
      products - value to be set
      Returns:
      Builder
    • products

      public AgentProductsNotFoundWarningBuilder products(List<String> products)

      Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.

      Parameters:
      products - value to be set
      Returns:
      Builder
    • plusProducts

      public AgentProductsNotFoundWarningBuilder plusProducts(String... products)

      Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.

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

      public String getMessage()

      Plain text description of the unmatched Products.

      Returns:
      message
    • getProducts

      public List<String> getProducts()

      Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.

      Returns:
      products
    • build

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

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

      factory method for an instance of AgentProductsNotFoundWarningBuilder
      Returns:
      builder
    • of

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