dev.crashteam.openapi.keanalytics.model.Seller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-ke-analytics Show documentation
Show all versions of openapi-ke-analytics Show documentation
Generates jar artifact containing compiled openapi classes based on generated openapi yaml files
The newest version!
package dev.crashteam.openapi.keanalytics.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.*;
import javax.annotation.Generated;
/**
* Данные магазина продавца
*/
@Schema(name = "Seller", description = "Данные магазина продавца")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
public class Seller {
private String title;
private String link;
private Long accountId;
public Seller title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
*/
@Schema(name = "title", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Seller link(String link) {
this.link = link;
return this;
}
/**
* Get link
* @return link
*/
@Schema(name = "link", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("link")
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
public Seller accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
* @return accountId
*/
@Schema(name = "accountId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("accountId")
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Seller seller = (Seller) o;
return Objects.equals(this.title, seller.title) &&
Objects.equals(this.link, seller.link) &&
Objects.equals(this.accountId, seller.accountId);
}
@Override
public int hashCode() {
return Objects.hash(title, link, accountId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Seller {\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" link: ").append(toIndentedString(link)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}