dev.crashteam.openapi.keanalytics.model.AdditionalTimePromoCodeAllOf 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 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;
/**
* AdditionalTimePromoCodeAllOf
*/
@JsonTypeName("AdditionalTimePromoCode_allOf")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
public class AdditionalTimePromoCodeAllOf {
private Integer additionalDays;
/**
* Default constructor
* @deprecated Use {@link AdditionalTimePromoCodeAllOf#AdditionalTimePromoCodeAllOf(Integer)}
*/
@Deprecated
public AdditionalTimePromoCodeAllOf() {
super();
}
/**
* Constructor with only required parameters
*/
public AdditionalTimePromoCodeAllOf(Integer additionalDays) {
this.additionalDays = additionalDays;
}
public AdditionalTimePromoCodeAllOf additionalDays(Integer additionalDays) {
this.additionalDays = additionalDays;
return this;
}
/**
* Дополнительные дни добавляемые при покупке
* minimum: 1
* @return additionalDays
*/
@NotNull @Min(1)
@Schema(name = "additionalDays", description = "Дополнительные дни добавляемые при покупке", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("additionalDays")
public Integer getAdditionalDays() {
return additionalDays;
}
public void setAdditionalDays(Integer additionalDays) {
this.additionalDays = additionalDays;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalTimePromoCodeAllOf additionalTimePromoCodeAllOf = (AdditionalTimePromoCodeAllOf) o;
return Objects.equals(this.additionalDays, additionalTimePromoCodeAllOf.additionalDays);
}
@Override
public int hashCode() {
return Objects.hash(additionalDays);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalTimePromoCodeAllOf {\n");
sb.append(" additionalDays: ").append(toIndentedString(additionalDays)).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 ");
}
}