/
AllOfObjectWithDiscriminatorFirstProperty.java
109 lines (91 loc) · 3.03 KB
/
AllOfObjectWithDiscriminatorFirstProperty.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
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
package saint.cheshire.specifications.spring_boot_openapi_generation.v1_0_0.server.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
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;
/**
* AllOfObjectWithDiscriminatorFirstProperty
*/
@lombok.Builder(toBuilder = true)
@lombok.RequiredArgsConstructor
@lombok.AllArgsConstructor
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2023-11-19T15:45:21.742670500+03:00[Europe/Moscow]")
public class AllOfObjectWithDiscriminatorFirstProperty {
private String propertyType;
private String someProperty;
public AllOfObjectWithDiscriminatorFirstProperty propertyType(String propertyType) {
this.propertyType = propertyType;
return this;
}
/**
* Get propertyType
* @return propertyType
*/
@NotNull
@Schema(name = "propertyType", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("propertyType")
public String getPropertyType() {
return propertyType;
}
public void setPropertyType(String propertyType) {
this.propertyType = propertyType;
}
public AllOfObjectWithDiscriminatorFirstProperty someProperty(String someProperty) {
this.someProperty = someProperty;
return this;
}
/**
* Get someProperty
* @return someProperty
*/
@NotNull
@Schema(name = "someProperty", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("someProperty")
public String getSomeProperty() {
return someProperty;
}
public void setSomeProperty(String someProperty) {
this.someProperty = someProperty;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AllOfObjectWithDiscriminatorFirstProperty allOfObjectWithDiscriminatorFirstProperty = (AllOfObjectWithDiscriminatorFirstProperty) o;
return Objects.equals(this.propertyType, allOfObjectWithDiscriminatorFirstProperty.propertyType) &&
Objects.equals(this.someProperty, allOfObjectWithDiscriminatorFirstProperty.someProperty);
}
@Override
public int hashCode() {
return Objects.hash(propertyType, someProperty);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AllOfObjectWithDiscriminatorFirstProperty {\n");
sb.append(" propertyType: ").append(toIndentedString(propertyType)).append("\n");
sb.append(" someProperty: ").append(toIndentedString(someProperty)).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 ");
}
}