Class CloudEventsFormatBuilder

java.lang.Object
com.commercetools.api.models.subscription.CloudEventsFormatBuilder
All Implemented Interfaces:
Builder<CloudEventsFormat>
Direct Known Subclasses:
DeliveryCloudEventsFormatBuilder

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

     CloudEventsFormat cloudEventsFormat = CloudEventsFormat.builder()
             .cloudEventsVersion("{cloudEventsVersion}")
             .build()
 
  • Constructor Details

    • CloudEventsFormatBuilder

      public CloudEventsFormatBuilder()
  • Method Details

    • cloudEventsVersion

      public CloudEventsFormatBuilder cloudEventsVersion(String cloudEventsVersion)
      set the value to the cloudEventsVersion
      Parameters:
      cloudEventsVersion - value to be set
      Returns:
      Builder
    • getCloudEventsVersion

      public String getCloudEventsVersion()
      value of cloudEventsVersion}
      Returns:
      cloudEventsVersion
    • build

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

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

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

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