Class CustomObjectLabelBuilder

java.lang.Object
com.commercetools.history.models.label.CustomObjectLabelBuilder
All Implemented Interfaces:
Builder<CustomObjectLabel>

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

     CustomObjectLabel customObjectLabel = CustomObjectLabel.builder()
             .key("{key}")
             .container("{container}")
             .build()
 
  • Constructor Details

    • CustomObjectLabelBuilder

      public CustomObjectLabelBuilder()
  • Method Details

    • key

      public CustomObjectLabelBuilder key(String key)

      User-defined unique identifier of the CustomObject within the defined container.

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

      public CustomObjectLabelBuilder container(String container)

      Namespace to group Custom Objects.

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

      public String getKey()

      User-defined unique identifier of the CustomObject within the defined container.

      Returns:
      key
    • getContainer

      public String getContainer()

      Namespace to group Custom Objects.

      Returns:
      container
    • build

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

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

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

      public static CustomObjectLabelBuilder of(CustomObjectLabel template)
      create builder for CustomObjectLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder