Class ProductLink


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class ProductLink
    extends Object
    Product association
    • Constructor Detail

      • ProductLink

        public ProductLink()
    • Method Detail

      • getType

        @Nonnull
        public String getType()
        Product link type. Merchants can define custom types in addition to the predefined values. - `VARIANT_OF` link type must be specified to establish a connection to the configurable product SKU. - `IN_BUNDLE` link type must be specified to establish a connection to the bundle product SKU.
        Returns:
        type
      • setType

        public void setType​(String type)
      • getSku

        @Nonnull
        public String getSku()
        Product SKU
        Returns:
        sku
      • setSku

        public void setSku​(String sku)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to ProductLink
      • fromJson

        public static ProductLink fromJson​(String jsonString)
                                    throws IOException
        Create an instance of ProductLink given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ProductLink
        Throws:
        IOException - if the JSON string is invalid with respect to ProductLink
      • toJson

        public String toJson()
        Convert an instance of ProductLink to an JSON string
        Returns:
        JSON string