Class ShoppingListSetSlugActionBuilder

java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListSetSlugActionBuilder
All Implemented Interfaces:
Builder<ShoppingListSetSlugAction>

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

     ShoppingListSetSlugAction shoppingListSetSlugAction = ShoppingListSetSlugAction.builder()
             .build()
 
  • Constructor Details

    • ShoppingListSetSlugActionBuilder

      public ShoppingListSetSlugActionBuilder()
  • Method Details

    • slug

      Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern ^[A-Za-z0-9_-]{2,256}+$

      Parameters:
      builder - function to build the slug value
      Returns:
      Builder
    • withSlug

      Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern ^[A-Za-z0-9_-]{2,256}+$

      Parameters:
      builder - function to build the slug value
      Returns:
      Builder
    • slug

      Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern ^[A-Za-z0-9_-]{2,256}+$

      Parameters:
      slug - value to be set
      Returns:
      Builder
    • getSlug

      @Nullable public LocalizedString getSlug()

      Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern ^[A-Za-z0-9_-]{2,256}+$

      Returns:
      slug
    • build

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

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

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

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