package io.swagger.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import io.swagger.v3.oas.annotations.media.Schema; import org.springframework.validation.annotation.Validated; import javax.validation.Valid; import javax.validation.constraints.*; /** * HourCondition */ @Validated @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @JsonInclude(Include.NON_NULL) public class HourCondition { @JsonProperty("time_epoch") private Integer hourly_timeEpoch = null; @JsonProperty("time") private String hourly_time = null; @JsonProperty("temp_c") private Float hourly_tempC = null; @JsonProperty("temp_f") private Float hourly_tempF = null; @JsonProperty("is_day") private Integer hourly_isDay = null; @JsonProperty("wind_mph") private Float hourly_windMph = null; @JsonProperty("wind_kph") private Float hourly_windKph = null; @JsonProperty("wind_degree") private Integer hourly_windDegree = null; @JsonProperty("wind_dir") private String hourly_windDir = null; @JsonProperty("pressure_mb") private Float hourly_pressureMb = null; @JsonProperty("pressure_in") private Float hourly_pressureIn = null; @JsonProperty("precip_mm") private Float hourly_precipMm = null; @JsonProperty("precip_in") private Float hourly_precipIn = null; @JsonProperty("humidity") private Integer hourly_humidity = null; @JsonProperty("cloud") private Integer hourly_cloud = null; @JsonProperty("feelslike_c") private Float hourly_feelslikeC = null; @JsonProperty("feelslike_f") private Float hourly_feelslikeF = null; @JsonProperty("windchill_c") private Float hourly_windchillC = null; @JsonProperty("windchill_f") private Float hourly_windchillF = null; @JsonProperty("heatindex_c") private Float hourly_heatindexC = null; @JsonProperty("heatindex_f") private Float hourly_heatindexF = null; @JsonProperty("dewpoint_c") private Float hourly_dewpointC = null; @JsonProperty("dewpoint_f") private Float hourly_dewpointF = null; @JsonProperty("will_it_rain") private Integer hourly_willItRain = null; @JsonProperty("chance_of_rain") private Integer hourly_chanceOfRain = null; @JsonProperty("will_it_snow") private Integer hourly_willItSnow = null; @JsonProperty("chance_of_snow") private Integer hourly_chanceOfSnow = null; @JsonProperty("vis_km") private Float hourly_visKm = null; @JsonProperty("vis_miles") private Float hourly_visMiles = null; @JsonProperty("gust_mph") private Float hourly_gustMph = null; @JsonProperty("gust_kph") private Float hourly_gustKph = null; @JsonProperty("uv") private Float hourly_uv = null; public HourCondition hourly_timeEpoch(Integer hourly_timeEpoch) { this.hourly_timeEpoch = hourly_timeEpoch; return this; } /** * Get hourly_timeEpoch * * @return hourly_timeEpoch **/ @Schema(description = "") @NotNull public Integer getHourly_TimeEpoch() { return hourly_timeEpoch; } public void setHourly_TimeEpoch(Integer hourly_timeEpoch) { this.hourly_timeEpoch = hourly_timeEpoch; } public HourCondition hourly_time(String hourly_time) { this.hourly_time = hourly_time; return this; } /** * Get hourly_time * * @return hourly_time **/ @Schema(description = "") @NotNull public String getHourly_Time() { return hourly_time; } public void setHourly_Time(String hourly_time) { this.hourly_time = hourly_time; } public HourCondition hourly_tempC(Float hourly_tempC) { this.hourly_tempC = hourly_tempC; return this; } /** * Get hourly_tempC * * @return hourly_tempC **/ @Schema(description = "") @NotNull public Float getHourly_TempC() { return hourly_tempC; } public void setHourly_TempC(Float hourly_tempC) { this.hourly_tempC = hourly_tempC; } public HourCondition hourly_tempF(Float hourly_tempF) { this.hourly_tempF = hourly_tempF; return this; } /** * Get hourly_tempF * * @return hourly_tempF **/ @Schema(description = "") @NotNull public Float getHourly_TempF() { return hourly_tempF; } public void setHourly_TempF(Float hourly_tempF) { this.hourly_tempF = hourly_tempF; } public HourCondition hourly_isDay(Integer hourly_isDay) { this.hourly_isDay = hourly_isDay; return this; } /** * Get hourly_isDay * * @return hourly_isDay **/ @Schema(description = "") @NotNull public Integer getHourly_IsDay() { return hourly_isDay; } public void setHourly_IsDay(Integer hourly_isDay) { this.hourly_isDay = hourly_isDay; } public HourCondition hourly_windMph(Float hourly_windMph) { this.hourly_windMph = hourly_windMph; return this; } /** * Get hourly_windMph * * @return hourly_windMph **/ @Schema(description = "") @NotNull public Float getHourly_WindMph() { return hourly_windMph; } public void setHourly_WindMph(Float hourly_windMph) { this.hourly_windMph = hourly_windMph; } public HourCondition hourly_windKph(Float hourly_windKph) { this.hourly_windKph = hourly_windKph; return this; } /** * Get hourly_windKph * * @return hourly_windKph **/ @Schema(description = "") @NotNull public Float getHourly_WindKph() { return hourly_windKph; } public void setHourly_WindKph(Float hourly_windKph) { this.hourly_windKph = hourly_windKph; } public HourCondition hourly_windDegree(Integer hourly_windDegree) { this.hourly_windDegree = hourly_windDegree; return this; } /** * Get hourly_windDegree * * @return hourly_windDegree **/ @Schema(description = "") @NotNull public Integer getHourly_WindDegree() { return hourly_windDegree; } public void setHourly_WindDegree(Integer hourly_windDegree) { this.hourly_windDegree = hourly_windDegree; } public HourCondition hourly_windDir(String hourly_windDir) { this.hourly_windDir = hourly_windDir; return this; } /** * Get hourly_windDir * * @return hourly_windDir **/ @Schema(description = "") @NotNull public String getHourly_WindDir() { return hourly_windDir; } public void setHourly_WindDir(String hourly_windDir) { this.hourly_windDir = hourly_windDir; } public HourCondition hourly_pressureMb(Float hourly_pressureMb) { this.hourly_pressureMb = hourly_pressureMb; return this; } /** * Get hourly_pressureMb * * @return hourly_pressureMb **/ @Schema(description = "") @NotNull public Float getHourly_PressureMb() { return hourly_pressureMb; } public void setHourly_PressureMb(Float hourly_pressureMb) { this.hourly_pressureMb = hourly_pressureMb; } public HourCondition hourly_pressureIn(Float hourly_pressureIn) { this.hourly_pressureIn = hourly_pressureIn; return this; } /** * Get hourly_pressureIn * * @return hourly_pressureIn **/ @Schema(description = "") @NotNull public Float getHourly_PressureIn() { return hourly_pressureIn; } public void setHourly_PressureIn(Float hourly_pressureIn) { this.hourly_pressureIn = hourly_pressureIn; } public HourCondition hourly_precipMm(Float hourly_precipMm) { this.hourly_precipMm = hourly_precipMm; return this; } /** * Get hourly_precipMm * * @return hourly_precipMm **/ @Schema(description = "") @NotNull public Float getHourly_PrecipMm() { return hourly_precipMm; } public void setHourly_PrecipMm(Float hourly_precipMm) { this.hourly_precipMm = hourly_precipMm; } public HourCondition hourly_precipIn(Float hourly_precipIn) { this.hourly_precipIn = hourly_precipIn; return this; } /** * Get hourly_precipIn * * @return hourly_precipIn **/ @Schema(description = "") @NotNull public Float getHourly_PrecipIn() { return hourly_precipIn; } public void setHourly_PrecipIn(Float hourly_precipIn) { this.hourly_precipIn = hourly_precipIn; } public HourCondition hourly_humidity(Integer hourly_humidity) { this.hourly_humidity = hourly_humidity; return this; } /** * Get hourly_humidity * * @return hourly_humidity **/ @Schema(description = "") @NotNull public Integer getHourly_Humidity() { return hourly_humidity; } public void setHourly_Humidity(Integer hourly_humidity) { this.hourly_humidity = hourly_humidity; } public HourCondition hourly_cloud(Integer hourly_cloud) { this.hourly_cloud = hourly_cloud; return this; } /** * Get hourly_cloud * * @return hourly_cloud **/ @Schema(description = "") @NotNull public Integer getHourly_Cloud() { return hourly_cloud; } public void setHourly_Cloud(Integer hourly_cloud) { this.hourly_cloud = hourly_cloud; } public HourCondition hourly_feelslikeC(Float hourly_feelslikeC) { this.hourly_feelslikeC = hourly_feelslikeC; return this; } /** * Get hourly_feelslikeC * * @return hourly_feelslikeC **/ @Schema(description = "") @NotNull public Float getHourly_FeelslikeC() { return hourly_feelslikeC; } public void setHourly_FeelslikeC(Float hourly_feelslikeC) { this.hourly_feelslikeC = hourly_feelslikeC; } public HourCondition hourly_feelslikeF(Float hourly_feelslikeF) { this.hourly_feelslikeF = hourly_feelslikeF; return this; } /** * Get hourly_feelslikeF * * @return hourly_feelslikeF **/ @Schema(description = "") @NotNull public Float getHourly_FeelslikeF() { return hourly_feelslikeF; } public void setHourly_FeelslikeF(Float hourly_feelslikeF) { this.hourly_feelslikeF = hourly_feelslikeF; } public HourCondition hourly_windchillC(Float hourly_windchillC) { this.hourly_windchillC = hourly_windchillC; return this; } /** * Get hourly_windchillC * * @return hourly_windchillC **/ @Schema(description = "") @NotNull public Float getHourly_WindchillC() { return hourly_windchillC; } public void setHourly_WindchillC(Float hourly_windchillC) { this.hourly_windchillC = hourly_windchillC; } public HourCondition hourly_windchillF(Float hourly_windchillF) { this.hourly_windchillF = hourly_windchillF; return this; } /** * Get hourly_windchillF * * @return hourly_windchillF **/ @Schema(description = "") @NotNull public Float getHourly_WindchillF() { return hourly_windchillF; } public void setHourly_WindchillF(Float hourly_windchillF) { this.hourly_windchillF = hourly_windchillF; } public HourCondition hourly_heatindexC(Float hourly_heatindexC) { this.hourly_heatindexC = hourly_heatindexC; return this; } /** * Get hourly_heatindexC * * @return hourly_heatindexC **/ @Schema(description = "") @NotNull public Float getHourly_HeatindexC() { return hourly_heatindexC; } public void setHourly_HeatindexC(Float hourly_heatindexC) { this.hourly_heatindexC = hourly_heatindexC; } public HourCondition hourly_heatindexF(Float hourly_heatindexF) { this.hourly_heatindexF = hourly_heatindexF; return this; } /** * Get hourly_heatindexF * * @return hourly_heatindexF **/ @Schema(description = "") @NotNull public Float getHourly_HeatindexF() { return hourly_heatindexF; } public void setHourly_HeatindexF(Float hourly_heatindexF) { this.hourly_heatindexF = hourly_heatindexF; } public HourCondition hourly_dewpointC(Float hourly_dewpointC) { this.hourly_dewpointC = hourly_dewpointC; return this; } /** * Get hourly_dewpointC * * @return hourly_dewpointC **/ @Schema(description = "") @NotNull public Float getHourly_DewpointC() { return hourly_dewpointC; } public void setHourly_DewpointC(Float hourly_dewpointC) { this.hourly_dewpointC = hourly_dewpointC; } public HourCondition hourly_dewpointF(Float hourly_dewpointF) { this.hourly_dewpointF = hourly_dewpointF; return this; } /** * Get hourly_dewpointF * * @return hourly_dewpointF **/ @Schema(description = "") @NotNull public Float getHourly_DewpointF() { return hourly_dewpointF; } public void setHourly_DewpointF(Float hourly_dewpointF) { this.hourly_dewpointF = hourly_dewpointF; } public HourCondition hourly_willItRain(Integer hourly_willItRain) { this.hourly_willItRain = hourly_willItRain; return this; } /** * Get hourly_willItRain * * @return hourly_willItRain **/ @Schema(description = "") @NotNull public Integer getHourly_WillItRain() { return hourly_willItRain; } public void setHourly_WillItRain(Integer hourly_willItRain) { this.hourly_willItRain = hourly_willItRain; } public HourCondition hourly_chanceOfRain(Integer hourly_chanceOfRain) { this.hourly_chanceOfRain = hourly_chanceOfRain; return this; } /** * Get hourly_chanceOfRain * * @return hourly_chanceOfRain **/ @Schema(description = "") @NotNull public Integer getHourly_ChanceOfRain() { return hourly_chanceOfRain; } public void setHourly_ChanceOfRain(Integer hourly_chanceOfRain) { this.hourly_chanceOfRain = hourly_chanceOfRain; } public HourCondition hourly_willItSnow(Integer hourly_willItSnow) { this.hourly_willItSnow = hourly_willItSnow; return this; } /** * Get hourly_willItSnow * * @return hourly_willItSnow **/ @Schema(description = "") @NotNull public Integer getHourly_WillItSnow() { return hourly_willItSnow; } public void setHourly_WillItSnow(Integer hourly_willItSnow) { this.hourly_willItSnow = hourly_willItSnow; } public HourCondition hourly_chanceOfSnow(Integer hourly_chanceOfSnow) { this.hourly_chanceOfSnow = hourly_chanceOfSnow; return this; } /** * Get hourly_chanceOfSnow * * @return hourly_chanceOfSnow **/ @Schema(description = "") @NotNull public Integer getHourly_ChanceOfSnow() { return hourly_chanceOfSnow; } public void setHourly_ChanceOfSnow(Integer hourly_chanceOfSnow) { this.hourly_chanceOfSnow = hourly_chanceOfSnow; } public HourCondition hourly_visKm(Float hourly_visKm) { this.hourly_visKm = hourly_visKm; return this; } /** * Get hourly_visKm * * @return hourly_visKm **/ @Schema(description = "") @NotNull public Float getHourly_VisKm() { return hourly_visKm; } public void setHourly_VisKm(Float hourly_visKm) { this.hourly_visKm = hourly_visKm; } public HourCondition hourly_visMiles(Float hourly_visMiles) { this.hourly_visMiles = hourly_visMiles; return this; } /** * Get hourly_visMiles * * @return hourly_visMiles **/ @Schema(description = "") @NotNull public Float getHourly_VisMiles() { return hourly_visMiles; } public void setHourly_VisMiles(Float hourly_visMiles) { this.hourly_visMiles = hourly_visMiles; } public HourCondition hourly_gustMph(Float hourly_gustMph) { this.hourly_gustMph = hourly_gustMph; return this; } /** * Get hourly_gustMph * * @return hourly_gustMph **/ @Schema(description = "") @NotNull public Float getHourly_GustMph() { return hourly_gustMph; } public void setHourly_GustMph(Float hourly_gustMph) { this.hourly_gustMph = hourly_gustMph; } public HourCondition hourly_gustKph(Float hourly_gustKph) { this.hourly_gustKph = hourly_gustKph; return this; } /** * Get hourly_gustKph * * @return hourly_gustKph **/ @Schema(description = "") @NotNull public Float getHourly_GustKph() { return hourly_gustKph; } public void setHourly_GustKph(Float hourly_gustKph) { this.hourly_gustKph = hourly_gustKph; } public HourCondition hourly_uv(Float hourly_uv) { this.hourly_uv = hourly_uv; return this; } /** * Get hourly_uv * * @return hourly_uv **/ @Schema(description = "") @NotNull public Float getHourly_Uv() { return hourly_uv; } public void setHourly_Uv(Float hourly_uv) { this.hourly_uv = hourly_uv; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } HourCondition hourCondition = (HourCondition) o; return Objects.equals(this.hourly_timeEpoch, hourCondition.hourly_timeEpoch) && Objects.equals(this.hourly_time, hourCondition.hourly_time) && Objects.equals(this.hourly_tempC, hourCondition.hourly_tempC) && Objects.equals(this.hourly_tempF, hourCondition.hourly_tempF) && Objects.equals(this.hourly_isDay, hourCondition.hourly_isDay) && Objects.equals(this.hourly_windMph, hourCondition.hourly_windMph) && Objects.equals(this.hourly_windKph, hourCondition.hourly_windKph) && Objects.equals(this.hourly_windDegree, hourCondition.hourly_windDegree) && Objects.equals(this.hourly_windDir, hourCondition.hourly_windDir) && Objects.equals(this.hourly_pressureMb, hourCondition.hourly_pressureMb) && Objects.equals(this.hourly_pressureIn, hourCondition.hourly_pressureIn) && Objects.equals(this.hourly_precipMm, hourCondition.hourly_precipMm) && Objects.equals(this.hourly_precipIn, hourCondition.hourly_precipIn) && Objects.equals(this.hourly_humidity, hourCondition.hourly_humidity) && Objects.equals(this.hourly_cloud, hourCondition.hourly_cloud) && Objects.equals(this.hourly_feelslikeC, hourCondition.hourly_feelslikeC) && Objects.equals(this.hourly_feelslikeF, hourCondition.hourly_feelslikeF) && Objects.equals(this.hourly_windchillC, hourCondition.hourly_windchillC) && Objects.equals(this.hourly_windchillF, hourCondition.hourly_windchillF) && Objects.equals(this.hourly_heatindexC, hourCondition.hourly_heatindexC) && Objects.equals(this.hourly_heatindexF, hourCondition.hourly_heatindexF) && Objects.equals(this.hourly_dewpointC, hourCondition.hourly_dewpointC) && Objects.equals(this.hourly_dewpointF, hourCondition.hourly_dewpointF) && Objects.equals(this.hourly_willItRain, hourCondition.hourly_willItRain) && Objects.equals(this.hourly_chanceOfRain, hourCondition.hourly_chanceOfRain) && Objects.equals(this.hourly_willItSnow, hourCondition.hourly_willItSnow) && Objects.equals(this.hourly_chanceOfSnow, hourCondition.hourly_chanceOfSnow) && Objects.equals(this.hourly_visKm, hourCondition.hourly_visKm) && Objects.equals(this.hourly_visMiles, hourCondition.hourly_visMiles) && Objects.equals(this.hourly_gustMph, hourCondition.hourly_gustMph) && Objects.equals(this.hourly_gustKph, hourCondition.hourly_gustKph) && Objects.equals(this.hourly_uv, hourCondition.hourly_uv); } @Override public int hashCode() { return Objects.hash(hourly_timeEpoch, hourly_time, hourly_tempC, hourly_tempF, hourly_isDay, hourly_windMph, hourly_windKph, hourly_windDegree, hourly_windDir, hourly_pressureMb, hourly_pressureIn, hourly_precipMm, hourly_precipIn, hourly_humidity, hourly_cloud, hourly_feelslikeC, hourly_feelslikeF, hourly_windchillC, hourly_windchillF, hourly_heatindexC, hourly_heatindexF, hourly_dewpointC, hourly_dewpointF, hourly_willItRain, hourly_chanceOfRain, hourly_willItSnow, hourly_chanceOfSnow, hourly_visKm, hourly_visMiles, hourly_gustMph, hourly_gustKph, hourly_uv); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HourCondition {\n"); sb.append(" hourly_timeEpoch: ").append(toIndentedString(hourly_timeEpoch)).append("\n"); sb.append(" hourly_time: ").append(toIndentedString(hourly_time)).append("\n"); sb.append(" hourly_tempC: ").append(toIndentedString(hourly_tempC)).append("\n"); sb.append(" hourly_tempF: ").append(toIndentedString(hourly_tempF)).append("\n"); sb.append(" hourly_isDay: ").append(toIndentedString(hourly_isDay)).append("\n"); sb.append(" hourly_windMph: ").append(toIndentedString(hourly_windMph)).append("\n"); sb.append(" hourly_windKph: ").append(toIndentedString(hourly_windKph)).append("\n"); sb.append(" hourly_windDegree: ").append(toIndentedString(hourly_windDegree)).append("\n"); sb.append(" hourly_windDir: ").append(toIndentedString(hourly_windDir)).append("\n"); sb.append(" hourly_pressureMb: ").append(toIndentedString(hourly_pressureMb)).append("\n"); sb.append(" hourly_pressureIn: ").append(toIndentedString(hourly_pressureIn)).append("\n"); sb.append(" hourly_precipMm: ").append(toIndentedString(hourly_precipMm)).append("\n"); sb.append(" hourly_precipIn: ").append(toIndentedString(hourly_precipIn)).append("\n"); sb.append(" hourly_humidity: ").append(toIndentedString(hourly_humidity)).append("\n"); sb.append(" hourly_cloud: ").append(toIndentedString(hourly_cloud)).append("\n"); sb.append(" hourly_feelslikeC: ").append(toIndentedString(hourly_feelslikeC)).append("\n"); sb.append(" hourly_feelslikeF: ").append(toIndentedString(hourly_feelslikeF)).append("\n"); sb.append(" hourly_windchillC: ").append(toIndentedString(hourly_windchillC)).append("\n"); sb.append(" hourly_windchillF: ").append(toIndentedString(hourly_windchillF)).append("\n"); sb.append(" hourly_heatindexC: ").append(toIndentedString(hourly_heatindexC)).append("\n"); sb.append(" hourly_heatindexF: ").append(toIndentedString(hourly_heatindexF)).append("\n"); sb.append(" hourly_dewpointC: ").append(toIndentedString(hourly_dewpointC)).append("\n"); sb.append(" hourly_dewpointF: ").append(toIndentedString(hourly_dewpointF)).append("\n"); sb.append(" hourly_willItRain: ").append(toIndentedString(hourly_willItRain)).append("\n"); sb.append(" hourly_chanceOfRain: ").append(toIndentedString(hourly_chanceOfRain)).append("\n"); sb.append(" hourly_willItSnow: ").append(toIndentedString(hourly_willItSnow)).append("\n"); sb.append(" hourly_chanceOfSnow: ").append(toIndentedString(hourly_chanceOfSnow)).append("\n"); sb.append(" hourly_visKm: ").append(toIndentedString(hourly_visKm)).append("\n"); sb.append(" hourly_visMiles: ").append(toIndentedString(hourly_visMiles)).append("\n"); sb.append(" hourly_gustMph: ").append(toIndentedString(hourly_gustMph)).append("\n"); sb.append(" hourly_gustKph: ").append(toIndentedString(hourly_gustKph)).append("\n"); sb.append(" hourly_uv: ").append(toIndentedString(hourly_uv)).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(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }