dev.crashteam.openapi.keanalytics.model.GetReportStateByJobId200Response 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 com.fasterxml.jackson.annotation.JsonTypeName;
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;
/**
* GetReportStateByJobId200Response
*/
@JsonTypeName("getReportStateByJobId_200_response")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
public class GetReportStateByJobId200Response {
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;
/**
* Default constructor
* @deprecated Use {@link GetReportStateByJobId200Response#GetReportStateByJobId200Response(String, UUID, String, Integer, String, OffsetDateTime)}
*/
@Deprecated
public GetReportStateByJobId200Response() {
super();
}
/**
* Constructor with only required parameters
*/
public GetReportStateByJobId200Response(String reportId, UUID jobId, String status, Integer interval, String reportType, OffsetDateTime createdAt) {
this.reportId = reportId;
this.jobId = jobId;
this.status = status;
this.interval = interval;
this.reportType = reportType;
this.createdAt = createdAt;
}
public GetReportStateByJobId200Response reportId(String reportId) {
this.reportId = reportId;
return this;
}
/**
* Идентификатор отчета
* @return reportId
*/
@NotNull
@Schema(name = "reportId", example = "61dc6a6a453cd26524fd42b4", description = "Идентификатор отчета", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("reportId")
public String getReportId() {
return reportId;
}
public void setReportId(String reportId) {
this.reportId = reportId;
}
public GetReportStateByJobId200Response jobId(UUID jobId) {
this.jobId = jobId;
return this;
}
/**
* Идентификатор асинхронной job
* @return jobId
*/
@NotNull @Valid
@Schema(name = "jobId", description = "Идентификатор асинхронной job", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("jobId")
public UUID getJobId() {
return jobId;
}
public void setJobId(UUID jobId) {
this.jobId = jobId;
}
public GetReportStateByJobId200Response status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
*/
@NotNull
@Schema(name = "status", example = "COMPLETED", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("status")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public GetReportStateByJobId200Response interval(Integer interval) {
this.interval = interval;
return this;
}
/**
* Get interval
* @return interval
*/
@NotNull
@Schema(name = "interval", example = "30", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("interval")
public Integer getInterval() {
return interval;
}
public void setInterval(Integer interval) {
this.interval = interval;
}
public GetReportStateByJobId200Response reportType(String reportType) {
this.reportType = reportType;
return this;
}
/**
* Get reportType
* @return reportType
*/
@NotNull
@Schema(name = "reportType", example = "SELLER", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("reportType")
public String getReportType() {
return reportType;
}
public void setReportType(String reportType) {
this.reportType = reportType;
}
public GetReportStateByJobId200Response createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
*/
@NotNull @Valid
@Schema(name = "createdAt", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("createdAt")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public GetReportStateByJobId200Response sellerLink(String sellerLink) {
this.sellerLink = sellerLink;
return this;
}
/**
* Уникальная ссылка на магазин продавца
* @return sellerLink
*/
@Schema(name = "sellerLink", example = "mimaximum", description = "Уникальная ссылка на магазин продавца", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("sellerLink")
public String getSellerLink() {
return sellerLink;
}
public void setSellerLink(String sellerLink) {
this.sellerLink = sellerLink;
}
public GetReportStateByJobId200Response 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;
}
GetReportStateByJobId200Response getReportStateByJobId200Response = (GetReportStateByJobId200Response) o;
return Objects.equals(this.reportId, getReportStateByJobId200Response.reportId) &&
Objects.equals(this.jobId, getReportStateByJobId200Response.jobId) &&
Objects.equals(this.status, getReportStateByJobId200Response.status) &&
Objects.equals(this.interval, getReportStateByJobId200Response.interval) &&
Objects.equals(this.reportType, getReportStateByJobId200Response.reportType) &&
Objects.equals(this.createdAt, getReportStateByJobId200Response.createdAt) &&
Objects.equals(this.sellerLink, getReportStateByJobId200Response.sellerLink) &&
Objects.equals(this.categoryId, getReportStateByJobId200Response.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 GetReportStateByJobId200Response {\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 ");
}
}