Astro.java 4.65 KB
Newer Older
EnesKarakas's avatar
EnesKarakas committed
1
2
3
4
5
package io.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
EnesKarakas's avatar
de    
EnesKarakas committed
6
7
8
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

EnesKarakas's avatar
EnesKarakas committed
9
10
11
12
13
14
15
16
17
18
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * Astro
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
EnesKarakas's avatar
de    
EnesKarakas committed
19
@JsonInclude(Include.NON_NULL)
EnesKarakas's avatar
EnesKarakas committed
20

EnesKarakas's avatar
de    
EnesKarakas committed
21
public class Astro {
EnesKarakas's avatar
EnesKarakas committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  @JsonProperty("sunrise")
  private String sunrise = null;

  @JsonProperty("sunset")
  private String sunset = null;

  @JsonProperty("moonrise")
  private String moonrise = null;

  @JsonProperty("moonset")
  private String moonset = null;

  @JsonProperty("moon_phase")
  private String moonPhase = null;

  @JsonProperty("moon_illumination")
  private String moonIllumination = null;

  public Astro sunrise(String sunrise) {
    this.sunrise = sunrise;
    return this;
  }

  /**
   * Get sunrise
EnesKarakas's avatar
de    
EnesKarakas committed
47
   * 
EnesKarakas's avatar
EnesKarakas committed
48
49
50
   * @return sunrise
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
51
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
52

EnesKarakas's avatar
de    
EnesKarakas committed
53
  public String getSunrise() {
EnesKarakas's avatar
EnesKarakas committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    return sunrise;
  }

  public void setSunrise(String sunrise) {
    this.sunrise = sunrise;
  }

  public Astro sunset(String sunset) {
    this.sunset = sunset;
    return this;
  }

  /**
   * Get sunset
EnesKarakas's avatar
de    
EnesKarakas committed
68
   * 
EnesKarakas's avatar
EnesKarakas committed
69
70
71
   * @return sunset
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
72
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
73

EnesKarakas's avatar
de    
EnesKarakas committed
74
  public String getSunset() {
EnesKarakas's avatar
EnesKarakas committed
75
76
77
78
79
80
81
82
83
84
85
86
87
88
    return sunset;
  }

  public void setSunset(String sunset) {
    this.sunset = sunset;
  }

  public Astro moonrise(String moonrise) {
    this.moonrise = moonrise;
    return this;
  }

  /**
   * Get moonrise
EnesKarakas's avatar
de    
EnesKarakas committed
89
   * 
EnesKarakas's avatar
EnesKarakas committed
90
91
92
   * @return moonrise
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
93
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
94

EnesKarakas's avatar
de    
EnesKarakas committed
95
  public String getMoonrise() {
EnesKarakas's avatar
EnesKarakas committed
96
97
98
99
100
101
102
103
104
105
106
107
108
109
    return moonrise;
  }

  public void setMoonrise(String moonrise) {
    this.moonrise = moonrise;
  }

  public Astro moonset(String moonset) {
    this.moonset = moonset;
    return this;
  }

  /**
   * Get moonset
EnesKarakas's avatar
de    
EnesKarakas committed
110
   * 
EnesKarakas's avatar
EnesKarakas committed
111
112
113
   * @return moonset
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
114
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
115

EnesKarakas's avatar
de    
EnesKarakas committed
116
  public String getMoonset() {
EnesKarakas's avatar
EnesKarakas committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
    return moonset;
  }

  public void setMoonset(String moonset) {
    this.moonset = moonset;
  }

  public Astro moonPhase(String moonPhase) {
    this.moonPhase = moonPhase;
    return this;
  }

  /**
   * Get moonPhase
EnesKarakas's avatar
de    
EnesKarakas committed
131
   * 
EnesKarakas's avatar
EnesKarakas committed
132
133
134
   * @return moonPhase
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
135
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
136

EnesKarakas's avatar
de    
EnesKarakas committed
137
  public String getMoonPhase() {
EnesKarakas's avatar
EnesKarakas committed
138
139
140
141
142
143
144
145
146
147
148
149
150
151
    return moonPhase;
  }

  public void setMoonPhase(String moonPhase) {
    this.moonPhase = moonPhase;
  }

  public Astro moonIllumination(String moonIllumination) {
    this.moonIllumination = moonIllumination;
    return this;
  }

  /**
   * Get moonIllumination
EnesKarakas's avatar
de    
EnesKarakas committed
152
   * 
EnesKarakas's avatar
EnesKarakas committed
153
154
155
   * @return moonIllumination
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
156
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
157

EnesKarakas's avatar
de    
EnesKarakas committed
158
  public String getMoonIllumination() {
EnesKarakas's avatar
EnesKarakas committed
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
    return moonIllumination;
  }

  public void setMoonIllumination(String moonIllumination) {
    this.moonIllumination = moonIllumination;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Astro astro = (Astro) o;
    return Objects.equals(this.sunrise, astro.sunrise) &&
        Objects.equals(this.sunset, astro.sunset) &&
        Objects.equals(this.moonrise, astro.moonrise) &&
        Objects.equals(this.moonset, astro.moonset) &&
        Objects.equals(this.moonPhase, astro.moonPhase) &&
        Objects.equals(this.moonIllumination, astro.moonIllumination);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sunrise, sunset, moonrise, moonset, moonPhase, moonIllumination);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Astro {\n");
EnesKarakas's avatar
de    
EnesKarakas committed
192

EnesKarakas's avatar
EnesKarakas committed
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
    sb.append("    sunrise: ").append(toIndentedString(sunrise)).append("\n");
    sb.append("    sunset: ").append(toIndentedString(sunset)).append("\n");
    sb.append("    moonrise: ").append(toIndentedString(moonrise)).append("\n");
    sb.append("    moonset: ").append(toIndentedString(moonset)).append("\n");
    sb.append("    moonPhase: ").append(toIndentedString(moonPhase)).append("\n");
    sb.append("    moonIllumination: ").append(toIndentedString(moonIllumination)).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    ");
  }
}