Class PlatformFormatBuilder

java.lang.Object
com.commercetools.api.models.subscription.PlatformFormatBuilder
All Implemented Interfaces:
Builder<PlatformFormat>
Direct Known Subclasses:
DeliveryPlatformFormatBuilder

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

     PlatformFormat platformFormat = PlatformFormat.builder()
             .build()
 
  • Constructor Details

    • PlatformFormatBuilder

      public PlatformFormatBuilder()
  • Method Details

    • build

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

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

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

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