Class ProductExternalId


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

      • ProductExternalId

        public ProductExternalId()
    • Method Detail

      • getId

        @Nonnull
        public String getId()
        External ID of the product.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getOrigin

        @Nonnull
        public String getOrigin()
        External ID origin. Specifies the system that generated the external ID, such as Adobe Commerce, Google Product Ratings, etc.
        Returns:
        origin
      • setOrigin

        public void setOrigin​(String origin)
      • 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 ProductExternalId
      • fromJson

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

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