Interface VariantSkuSetMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface VariantSkuSetMessagePayload extends MessagePayload

Generated after a successful Set SKU update action.


Example to create an instance using the builder pattern

     VariantSkuSetMessagePayload variantSkuSetMessagePayload = VariantSkuSetMessagePayload.builder()
             .staged(true)
             .build()
 
  • Field Details

    • VARIANT_SKU_SET

      static final String VARIANT_SKU_SET
      discriminator value for VariantSkuSetMessagePayload
      See Also:
  • Method Details

    • getSku

      String getSku()

      The SKU that was set on the Variant.

      Returns:
      sku
    • getOldSku

      String getOldSku()

      The previous SKU of the Variant.

      Returns:
      oldSku
    • getStaged

      @NotNull @NotNull Boolean getStaged()

      Whether the update was only applied to the staged Variant.

      Returns:
      staged
    • setSku

      void setSku(String sku)

      The SKU that was set on the Variant.

      Parameters:
      sku - value to be set
    • setOldSku

      void setOldSku(String oldSku)

      The previous SKU of the Variant.

      Parameters:
      oldSku - value to be set
    • setStaged

      void setStaged(Boolean staged)

      Whether the update was only applied to the staged Variant.

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of VariantSkuSetMessagePayload
    • of

      factory method to create a shallow copy VariantSkuSetMessagePayload
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface MessagePayload
    • deepCopy

      @Nullable static VariantSkuSetMessagePayload deepCopy(@Nullable VariantSkuSetMessagePayload template)
      factory method to create a deep copy of VariantSkuSetMessagePayload
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for VariantSkuSetMessagePayload
      Returns:
      builder
    • builder

      create builder for VariantSkuSetMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantSkuSetMessagePayload

      default <T> T withVariantSkuSetMessagePayload(Function<VariantSkuSetMessagePayload,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<VariantSkuSetMessagePayload> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference