Class BusinessUnitLabelBuilder

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

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

     BusinessUnitLabel businessUnitLabel = BusinessUnitLabel.builder()
             .key("{key}")
             .name("{name}")
             .build()
 
  • Constructor Details

    • BusinessUnitLabelBuilder

      public BusinessUnitLabelBuilder()
  • Method Details

    • key

      public BusinessUnitLabelBuilder key(String key)

      User-defined unique identifier of the Business Unit.

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

      public BusinessUnitLabelBuilder name(String name)

      Name of the Business Unit.

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

      public String getKey()

      User-defined unique identifier of the Business Unit.

      Returns:
      key
    • getName

      public String getName()

      Name of the Business Unit.

      Returns:
      name
    • build

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

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

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

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