Class ChangeSubscriptionBuilder

java.lang.Object
com.commercetools.api.models.subscription.ChangeSubscriptionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ChangeSubscription>

public class ChangeSubscriptionBuilder extends Object implements io.vrap.rmf.base.client.Builder<ChangeSubscription>
ChangeSubscriptionBuilder
Example to create an instance using the builder pattern

     ChangeSubscription changeSubscription = ChangeSubscription.builder()
             .resourceTypeId(ChangeSubscriptionResourceTypeId.APPROVAL_FLOW)
             .build()
 
  • Constructor Details

    • ChangeSubscriptionBuilder

      public ChangeSubscriptionBuilder()
  • Method Details

    • resourceTypeId

      public ChangeSubscriptionBuilder resourceTypeId(ChangeSubscriptionResourceTypeId resourceTypeId)

      Unique identifier for the type of resource, for example, cart.

      Parameters:
      resourceTypeId - value to be set
      Returns:
      Builder
    • getResourceTypeId

      public ChangeSubscriptionResourceTypeId getResourceTypeId()

      Unique identifier for the type of resource, for example, cart.

      Returns:
      resourceTypeId
    • build

      public ChangeSubscription build()
      builds ChangeSubscription with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ChangeSubscription>
      Returns:
      ChangeSubscription
    • buildUnchecked

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

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

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