com.bitmovin.api.model.Link Maven / Gradle / Ivy
The newest version!
package com.bitmovin.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* Link
*/
public class Link {
@JsonProperty("href")
private String href;
@JsonProperty("title")
private String title;
/**
* webpage target URL
* @return href
**/
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
/**
* Short description of the linked page
* @return title
**/
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Link link = (Link) o;
return Objects.equals(this.href, link.href) &&
Objects.equals(this.title, link.title);
}
@Override
public int hashCode() {
return Objects.hash(href, title);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Link {\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}