Class ProductSpecification

java.lang.Object
com.liferay.headless.commerce.machine.learning.dto.v1_0.ProductSpecification
All Implemented Interfaces:
Serializable

@Generated("") public class ProductSpecification extends Object implements Serializable
See Also:
Generated:
  • Field Details

    • id

      protected Long id
    • optionCategoryId

      protected Long optionCategoryId
    • specificationKey

      @NotEmpty protected @NotEmpty String specificationKey
    • value

      @NotNull protected @NotNull Map<String,String> value
    • xClassName

      public String xClassName
  • Constructor Details

    • ProductSpecification

      public ProductSpecification()
  • Method Details

    • toDTO

      public static ProductSpecification toDTO(String json)
    • unsafeToDTO

      public static ProductSpecification unsafeToDTO(String json)
    • getId

      @DecimalMin("0") public @DecimalMin("0") Long getId()
    • setId

      public void setId(Long id)
    • setId

      public void setId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> idUnsafeSupplier)
    • getOptionCategoryId

      @DecimalMin("0") public @DecimalMin("0") Long getOptionCategoryId()
    • setOptionCategoryId

      public void setOptionCategoryId(Long optionCategoryId)
    • setOptionCategoryId

      public void setOptionCategoryId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> optionCategoryIdUnsafeSupplier)
    • getSpecificationKey

      public String getSpecificationKey()
    • setSpecificationKey

      public void setSpecificationKey(String specificationKey)
    • setSpecificationKey

      public void setSpecificationKey(com.liferay.petra.function.UnsafeSupplier<String,Exception> specificationKeyUnsafeSupplier)
    • getValue

      @Valid public @Valid Map<String,String> getValue()
    • setValue

      public void setValue(Map<String,String> value)
    • setValue

      public void setValue(com.liferay.petra.function.UnsafeSupplier<Map<String,String>,Exception> valueUnsafeSupplier)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object