dev.crashteam.openapi.keanalytics.model.Report 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 java.time.OffsetDateTime;
import java.util.UUID;
import org.springframework.format.annotation.DateTimeFormat;
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 = "Report", description = "История изменений товара")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
public class Report {
private String reportId;
private UUID jobId;
private String status;
private Integer interval;
private String reportType;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private OffsetDateTime createdAt;
private String sellerLink;
private Long categoryId;
public Report reportId(String reportId) {
this.reportId = reportId;
return this;
}
/**
* Идентификатор отчета
* @return reportId
*/
@Schema(name = "reportId", example = "61dc6a6a453cd26524fd42b4", description = "Идентификатор отчета", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("reportId")
public String getReportId() {
return reportId;
}
public void setReportId(String reportId) {
this.reportId = reportId;
}
public Report jobId(UUID jobId) {
this.jobId = jobId;
return this;
}
/**
* Идентификатор асинхронной job
* @return jobId
*/
@Valid
@Schema(name = "jobId", description = "Идентификатор асинхронной job", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("jobId")
public UUID getJobId() {
return jobId;
}
public void setJobId(UUID jobId) {
this.jobId = jobId;
}
public Report status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
*/
@Schema(name = "status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("status")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Report interval(Integer interval) {
this.interval = interval;
return this;
}
/**
* Get interval
* @return interval
*/
@Schema(name = "interval", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("interval")
public Integer getInterval() {
return interval;
}
public void setInterval(Integer interval) {
this.interval = interval;
}
public Report reportType(String reportType) {
this.reportType = reportType;
return this;
}
/**
* Get reportType
* @return reportType
*/
@Schema(name = "reportType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("reportType")
public String getReportType() {
return reportType;
}
public void setReportType(String reportType) {
this.reportType = reportType;
}
public Report createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
*/
@Valid
@Schema(name = "createdAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("createdAt")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public Report sellerLink(String sellerLink) {
this.sellerLink = sellerLink;
return this;
}
/**
* Get sellerLink
* @return sellerLink
*/
@Schema(name = "sellerLink", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("sellerLink")
public String getSellerLink() {
return sellerLink;
}
public void setSellerLink(String sellerLink) {
this.sellerLink = sellerLink;
}
public Report categoryId(Long categoryId) {
this.categoryId = categoryId;
return this;
}
/**
* Идентификатор категории
* @return categoryId
*/
@Schema(name = "categoryId", accessMode = Schema.AccessMode.READ_ONLY, description = "Идентификатор категории", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("categoryId")
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Report report = (Report) o;
return Objects.equals(this.reportId, report.reportId) &&
Objects.equals(this.jobId, report.jobId) &&
Objects.equals(this.status, report.status) &&
Objects.equals(this.interval, report.interval) &&
Objects.equals(this.reportType, report.reportType) &&
Objects.equals(this.createdAt, report.createdAt) &&
Objects.equals(this.sellerLink, report.sellerLink) &&
Objects.equals(this.categoryId, report.categoryId);
}
@Override
public int hashCode() {
return Objects.hash(reportId, jobId, status, interval, reportType, createdAt, sellerLink, categoryId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Report {\n");
sb.append(" reportId: ").append(toIndentedString(reportId)).append("\n");
sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" interval: ").append(toIndentedString(interval)).append("\n");
sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" sellerLink: ").append(toIndentedString(sellerLink)).append("\n");
sb.append(" categoryId: ").append(toIndentedString(categoryId)).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 ");
}
}