Class CategorySetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.category.CategorySetKeyActionBuilder
All Implemented Interfaces:
Builder<CategorySetKeyAction>

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

     CategorySetKeyAction categorySetKeyAction = CategorySetKeyAction.builder()
             .build()
 
  • Constructor Details

    • CategorySetKeyActionBuilder

      public CategorySetKeyActionBuilder()
  • Method Details

    • key

      Value to set. If empty, any existing value will be removed.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      @Nullable public String getKey()

      Value to set. If empty, any existing value will be removed.

      Returns:
      key
    • build

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

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

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

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