com.kibocommerce.sdk.fulfillment.model.Link Maven / Gradle / Ivy
The newest version!
/*
* Kibo Fulfillment API - Production Profile
* REST API backing the Kibo Fulfiller User Interface
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.kibocommerce.sdk.fulfillment.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.kibocommerce.sdk.fulfillment.model.LinkRelation;
import com.kibocommerce.sdk.fulfillment.model.UriTemplate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Link
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class Link {
public static final String SERIALIZED_NAME_DEPRECATION = "deprecation";
@SerializedName(SERIALIZED_NAME_DEPRECATION)
private String deprecation;
public static final String SERIALIZED_NAME_HREF = "href";
@SerializedName(SERIALIZED_NAME_HREF)
private String href;
public static final String SERIALIZED_NAME_HREFLANG = "hreflang";
@SerializedName(SERIALIZED_NAME_HREFLANG)
private String hreflang;
public static final String SERIALIZED_NAME_MEDIA = "media";
@SerializedName(SERIALIZED_NAME_MEDIA)
private String media;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_PROFILE = "profile";
@SerializedName(SERIALIZED_NAME_PROFILE)
private String profile;
public static final String SERIALIZED_NAME_REL = "rel";
@SerializedName(SERIALIZED_NAME_REL)
private LinkRelation rel = null;
public static final String SERIALIZED_NAME_TEMPLATE = "template";
@SerializedName(SERIALIZED_NAME_TEMPLATE)
private UriTemplate template = null;
public static final String SERIALIZED_NAME_TEMPLATED = "templated";
@SerializedName(SERIALIZED_NAME_TEMPLATED)
private Boolean templated;
public static final String SERIALIZED_NAME_TITLE = "title";
@SerializedName(SERIALIZED_NAME_TITLE)
private String title;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
public Link deprecation(String deprecation) {
this.deprecation = deprecation;
return this;
}
/**
* Get deprecation
* @return deprecation
**/
@ApiModelProperty(value = "")
public String getDeprecation() {
return deprecation;
}
public void setDeprecation(String deprecation) {
this.deprecation = deprecation;
}
public Link href(String href) {
this.href = href;
return this;
}
/**
* Get href
* @return href
**/
@ApiModelProperty(value = "")
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
public Link hreflang(String hreflang) {
this.hreflang = hreflang;
return this;
}
/**
* Get hreflang
* @return hreflang
**/
@ApiModelProperty(value = "")
public String getHreflang() {
return hreflang;
}
public void setHreflang(String hreflang) {
this.hreflang = hreflang;
}
public Link media(String media) {
this.media = media;
return this;
}
/**
* Get media
* @return media
**/
@ApiModelProperty(value = "")
public String getMedia() {
return media;
}
public void setMedia(String media) {
this.media = media;
}
public Link name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Link profile(String profile) {
this.profile = profile;
return this;
}
/**
* Get profile
* @return profile
**/
@ApiModelProperty(value = "")
public String getProfile() {
return profile;
}
public void setProfile(String profile) {
this.profile = profile;
}
public Link rel(LinkRelation rel) {
this.rel = rel;
return this;
}
/**
* Get rel
* @return rel
**/
@ApiModelProperty(value = "")
public LinkRelation getRel() {
return rel;
}
public void setRel(LinkRelation rel) {
this.rel = rel;
}
public Link template(UriTemplate template) {
this.template = template;
return this;
}
/**
* Get template
* @return template
**/
@ApiModelProperty(value = "")
public UriTemplate getTemplate() {
return template;
}
public void setTemplate(UriTemplate template) {
this.template = template;
}
public Link templated(Boolean templated) {
this.templated = templated;
return this;
}
/**
* Get templated
* @return templated
**/
@ApiModelProperty(value = "")
public Boolean getTemplated() {
return templated;
}
public void setTemplated(Boolean templated) {
this.templated = templated;
}
public Link title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@ApiModelProperty(value = "")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Link type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@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.deprecation, link.deprecation) &&
Objects.equals(this.href, link.href) &&
Objects.equals(this.hreflang, link.hreflang) &&
Objects.equals(this.media, link.media) &&
Objects.equals(this.name, link.name) &&
Objects.equals(this.profile, link.profile) &&
Objects.equals(this.rel, link.rel) &&
Objects.equals(this.template, link.template) &&
Objects.equals(this.templated, link.templated) &&
Objects.equals(this.title, link.title) &&
Objects.equals(this.type, link.type);
}
@Override
public int hashCode() {
return Objects.hash(deprecation, href, hreflang, media, name, profile, rel, template, templated, title, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Link {\n");
sb.append(" deprecation: ").append(toIndentedString(deprecation)).append("\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" hreflang: ").append(toIndentedString(hreflang)).append("\n");
sb.append(" media: ").append(toIndentedString(media)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" profile: ").append(toIndentedString(profile)).append("\n");
sb.append(" rel: ").append(toIndentedString(rel)).append("\n");
sb.append(" template: ").append(toIndentedString(template)).append("\n");
sb.append(" templated: ").append(toIndentedString(templated)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy