Class ProductRelationship

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

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