001package com.identityworksllc.iiq.common.plugin.vo;
002
003import com.fasterxml.jackson.annotation.JsonAutoDetect;
004import com.fasterxml.jackson.annotation.JsonProperty;
005
006/**
007 * An object implementing the HATEOAS REST standard's link concept
008 */
009@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
010public class Link {
011
012    /**
013     * The external URL linking this object to another object
014     */
015    private String href;
016
017    /**
018     * The type of relationship (e.g., self, parent, user)
019     */
020    private String rel;
021
022    @JsonProperty
023    public String getHref() {
024        return href;
025    }
026
027    @JsonProperty
028    public String getRel() {
029        return rel;
030    }
031
032    public void setHref(String href) {
033        this.href = href;
034    }
035
036    public void setRel(String rel) {
037        this.rel = rel;
038    }
039
040}