java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.Link

@Generated("jsonschema2pojo") public class Link extends Object
Link

  • Constructor Details

    • Link

      public Link()
  • Method Details

    • getType

      public String getType()
      Type of link. Well-known values: `privacy_policy`, `terms_of_service`, `refund_policy`, `shipping_policy`, `faq`. Consumers SHOULD handle unknown values gracefully by displaying them using the `title` field or omitting the link. (Required)
    • setType

      public void setType(String type)
      Type of link. Well-known values: `privacy_policy`, `terms_of_service`, `refund_policy`, `shipping_policy`, `faq`. Consumers SHOULD handle unknown values gracefully by displaying them using the `title` field or omitting the link. (Required)
    • withType

      public Link withType(String type)
    • getUrl

      public URI getUrl()
      The actual URL pointing to the content to be displayed. (Required)
    • setUrl

      public void setUrl(URI url)
      The actual URL pointing to the content to be displayed. (Required)
    • withUrl

      public Link withUrl(URI url)
    • getTitle

      public String getTitle()
      Optional display text for the link. When provided, use this instead of generating from type.
    • setTitle

      public void setTitle(String title)
      Optional display text for the link. When provided, use this instead of generating from type.
    • withTitle

      public Link withTitle(String title)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • withAdditionalProperty

      public Link withAdditionalProperty(String name, Object value)
    • toString

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

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object