Class ZoneSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.zone.ZoneSetKeyActionBuilder
All Implemented Interfaces:
Builder<ZoneSetKeyAction>

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

     ZoneSetKeyAction zoneSetKeyAction = ZoneSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • ZoneSetKeyActionBuilder

      public ZoneSetKeyActionBuilder()
  • Method Details

    • key

      If key is absent or null, the existing key, if any, will be removed.

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

      @Nullable public String getKey()

      If key is absent or null, the existing key, if any, will be removed.

      Returns:
      key
    • build

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

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

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

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