Class PayloadNotIncludedBuilder

java.lang.Object
com.commercetools.api.models.subscription.PayloadNotIncludedBuilder
All Implemented Interfaces:
Builder<PayloadNotIncluded>

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

     PayloadNotIncluded payloadNotIncluded = PayloadNotIncluded.builder()
             .reason("{reason}")
             .payloadType("{payloadType}")
             .build()
 
  • Constructor Details

    • PayloadNotIncludedBuilder

      public PayloadNotIncludedBuilder()
  • Method Details

    • reason

      public PayloadNotIncludedBuilder reason(String reason)

      Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.

      Parameters:
      reason - value to be set
      Returns:
      Builder
    • payloadType

      public PayloadNotIncludedBuilder payloadType(String payloadType)

      Value of the type field in the original payload.

      Parameters:
      payloadType - value to be set
      Returns:
      Builder
    • getReason

      public String getReason()

      Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.

      Returns:
      reason
    • getPayloadType

      public String getPayloadType()

      Value of the type field in the original payload.

      Returns:
      payloadType
    • build

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

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

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

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