Class StringLabelBuilder

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

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

     StringLabel stringLabel = StringLabel.builder()
             .value("{value}")
             .build()
 
  • Constructor Details

    • StringLabelBuilder

      public StringLabelBuilder()
  • Method Details

    • value

      public StringLabelBuilder value(String value)

      Changed value.

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

      public String getValue()

      Changed value.

      Returns:
      value
    • build

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

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

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

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