117 lines
3.4 KiB
Java
117 lines
3.4 KiB
Java
package com.muse.dto;
|
|
|
|
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.LocalDate;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.lang.Nullable;
|
|
import java.io.Serializable;
|
|
import java.time.OffsetDateTime;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.*;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import java.util.*;
|
|
import jakarta.annotation.Generated;
|
|
|
|
/**
|
|
* 时间范围(安全事件和用量导出必填)
|
|
*/
|
|
|
|
@Schema(name = "AccountExportTaskCreate_dateRange", description = "时间范围(安全事件和用量导出必填)")
|
|
@JsonTypeName("AccountExportTaskCreate_dateRange")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class AccountExportTaskCreateDateRange implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
|
private @Nullable LocalDate startDate;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
|
private @Nullable LocalDate endDate;
|
|
|
|
public AccountExportTaskCreateDateRange startDate(@Nullable LocalDate startDate) {
|
|
this.startDate = startDate;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get startDate
|
|
* @return startDate
|
|
*/
|
|
@Valid
|
|
@Schema(name = "startDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("startDate")
|
|
public @Nullable LocalDate getStartDate() {
|
|
return startDate;
|
|
}
|
|
|
|
@JsonProperty("startDate")
|
|
public void setStartDate(@Nullable LocalDate startDate) {
|
|
this.startDate = startDate;
|
|
}
|
|
|
|
public AccountExportTaskCreateDateRange endDate(@Nullable LocalDate endDate) {
|
|
this.endDate = endDate;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get endDate
|
|
* @return endDate
|
|
*/
|
|
@Valid
|
|
@Schema(name = "endDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("endDate")
|
|
public @Nullable LocalDate getEndDate() {
|
|
return endDate;
|
|
}
|
|
|
|
@JsonProperty("endDate")
|
|
public void setEndDate(@Nullable LocalDate endDate) {
|
|
this.endDate = endDate;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AccountExportTaskCreateDateRange accountExportTaskCreateDateRange = (AccountExportTaskCreateDateRange) o;
|
|
return Objects.equals(this.startDate, accountExportTaskCreateDateRange.startDate) &&
|
|
Objects.equals(this.endDate, accountExportTaskCreateDateRange.endDate);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(startDate, endDate);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AccountExportTaskCreateDateRange {\n");
|
|
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
|
|
sb.append(" endDate: ").append(toIndentedString(endDate)).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(@Nullable Object o) {
|
|
return o == null ? "null" : o.toString().replace("\n", "\n ");
|
|
}
|
|
}
|
|
|