Model200.java 2.43 KB
Newer Older
EnesKarakas's avatar
EnesKarakas committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package io.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
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.*;

/**
 * Model200
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Model200 {

  @JsonProperty("location")
EnesKarakas's avatar
de    
EnesKarakas committed
22
  private Location location = new Location();
EnesKarakas's avatar
EnesKarakas committed
23
24

  @JsonProperty("current")
EnesKarakas's avatar
de    
EnesKarakas committed
25
  private Current current = new Current();
EnesKarakas's avatar
EnesKarakas committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110

  public Model200 location(Location location) {
    this.location = location;
    return this;
  }

  /**
   * Get location
   * 
   * @return location
   **/
  @Schema(description = "")
  @NotNull

  @Valid
  public Location getLocation() {
    return location;
  }

  public void setLocation(Location location) {
    this.location = location;
  }

  public Model200 current(Current current) {
    this.current = current;
    return this;
  }

  /**
   * Get current
   * 
   * @return current
   **/
  @Schema(description = "")
  @NotNull

  @Valid
  public Current getCurrent() {
    return current;
  }

  public void setCurrent(Current current) {
    this.current = current;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Model200 _200 = (Model200) o;
    return Objects.equals(this.location, _200.location) &&
        Objects.equals(this.current, _200.current);
  }

  @Override
  public int hashCode() {
    return Objects.hash(location, current);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Model200 {\n");

    sb.append("    location: ").append(toIndentedString(location)).append("\n");
    sb.append("    current: ").append(toIndentedString(current)).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    ");
  }
}