Class ProductRelationship

java.lang.Object
de.hybris.platform.tuawebservicesresources.v2.dto.ProductRelationship

@Validated @Generated(value="de.hybris.platform.tuawebservicesresources.swagger.TmaCodegen", date="2022-10-21T20:35:04.698Z") public class ProductRelationship extends Object
Linked products to the one instantiate, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful
  • Constructor Details

    • ProductRelationship

      public ProductRelationship()
  • Method Details

    • relationshipType

      public ProductRelationship relationshipType(String relationshipType)
    • getRelationshipType

      @NotNull public @NotNull String getRelationshipType()
      Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful
      Returns:
      relationshipType
    • setRelationshipType

      public void setRelationshipType(String relationshipType)
    • product

      public ProductRelationship product(ProductRefOrValue product)
    • getProduct

      @NotNull @Valid public @NotNull @Valid ProductRefOrValue getProduct()
      Get product
      Returns:
      product
    • setProduct

      public void setProduct(ProductRefOrValue product)
    • atbaseType

      public ProductRelationship atbaseType(String atbaseType)
    • getAtbaseType

      public String getAtbaseType()
      When sub-classing, this defines the super-class
      Returns:
      atbaseType
    • setAtbaseType

      public void setAtbaseType(String atbaseType)
    • atschemaLocation

      public ProductRelationship atschemaLocation(String atschemaLocation)
    • getAtschemaLocation

      public String getAtschemaLocation()
      A URI to a JSON-Schema file that defines additional attributes and relationships
      Returns:
      atschemaLocation
    • setAtschemaLocation

      public void setAtschemaLocation(String atschemaLocation)
    • attype

      public ProductRelationship attype(String attype)
    • getAttype

      public String getAttype()
      When sub-classing, this defines the sub-class entity name
      Returns:
      attype
    • setAttype

      public void setAttype(String attype)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object