package org.hyperic.plugin.vrealize.automation.model.components; import java.util.HashMap; import java.util.Map; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.codehaus.jackson.annotate.JsonAnyGetter; import org.codehaus.jackson.annotate.JsonAnySetter; import org.codehaus.jackson.annotate.JsonIgnore; import org.codehaus.jackson.annotate.JsonProperty; import org.codehaus.jackson.annotate.JsonPropertyOrder; @JsonPropertyOrder({ "@type", "rel", "href" }) public class Link { @JsonProperty("@type") private String Type; @JsonProperty("rel") private String rel; @JsonProperty("href") private String href; @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); /** * * @return * The Type */ @JsonProperty("@type") public String getType() { return Type; } /** * * @param Type * The @type */ @JsonProperty("@type") public void setType(String Type) { this.Type = Type; } /** * * @return * The rel */ @JsonProperty("rel") public String getRel() { return rel; } /** * * @param rel * The rel */ @JsonProperty("rel") public void setRel(String rel) { this.rel = rel; } /** * * @return * The href */ @JsonProperty("href") public String getHref() { return href; } /** * * @param href * The href */ @JsonProperty("href") public void setHref(String href) { this.href = href; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } @Override public int hashCode() { return new HashCodeBuilder().append(Type).append(rel).append(href).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Link) == false) { return false; } Link rhs = ((Link) other); return new EqualsBuilder().append(Type, rhs.Type).append(rel, rhs.rel).append(href, rhs.href).append(additionalProperties, rhs.additionalProperties).isEquals(); } }