Class StateChangeKeyActionBuilder

java.lang.Object
com.commercetools.api.models.state.StateChangeKeyActionBuilder
All Implemented Interfaces:
Builder<StateChangeKeyAction>

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

     StateChangeKeyAction stateChangeKeyAction = StateChangeKeyAction.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • StateChangeKeyActionBuilder

      public StateChangeKeyActionBuilder()
  • Method Details

    • key

      New value to set. Must not be empty.

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

      public String getKey()

      New value to set. Must not be empty.

      Returns:
      key
    • build

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

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

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

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