1- /*
2- * MIT License
3- *
4- * Copyright (c) 2024 Hydrologic Engineering Center
5- *
6- * Permission is hereby granted, free of charge, to any person obtaining a copy
7- * of this software and associated documentation files (the "Software"), to deal
8- * in the Software without restriction, including without limitation the rights
9- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10- * copies of the Software, and to permit persons to whom the Software is
11- * furnished to do so, subject to the following conditions:
12- *
13- * The above copyright notice and this permission notice shall be included in all
14- * copies or substantial portions of the Software.
15- *
16- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22- * SOFTWARE.
23- */
24-
251package mil .army .usace .hec .cwms .radar .client .model ;
262
27- import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
283import com .fasterxml .jackson .annotation .JsonProperty ;
29- import jakarta .annotation .Generated ;
30- import jakarta .validation .Valid ;
31-
4+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
325import java .math .BigDecimal ;
336import java .util .Objects ;
347
358/**
369 * AssignedTimeSeries
3710 */
3811@ JsonIgnoreProperties (ignoreUnknown = true )
39- @ Generated (value = "io.swagger.codegen.v3.generators.java.SpringCodegen" , date = "2022-08-09T09:29:33.859-07:00[America/Los_Angeles]" )
12+ @ jakarta .annotation .Generated (value = "io.swagger.codegen.v3.generators.java.SpringCodegen" ,
13+ date = "2024-12-06T12:43:40.669367400-08:00[America/Los_Angeles]" )
4014public class AssignedTimeSeries {
15+
16+ @ JsonProperty ("office-id" )
17+ private String officeId = null ;
18+
4119 @ JsonProperty ("timeseries-id" )
4220 private String timeseriesId = null ;
4321
@@ -47,23 +25,30 @@ public class AssignedTimeSeries {
4725 @ JsonProperty ("alias-id" )
4826 private String aliasId = null ;
4927
50- @ JsonProperty ("ref-ts -id" )
28+ @ JsonProperty ("refTs -id" )
5129 private String refTsId = null ;
5230
5331 @ JsonProperty ("attribute" )
5432 private Integer attribute = null ;
5533
34+ public AssignedTimeSeries officeId (String officeId ) {
35+ this .officeId = officeId ;
36+ return this ;
37+ }
38+
39+ public String getOfficeId () {
40+ return officeId ;
41+ }
42+
43+ public void setOfficeId (String officeId ) {
44+ this .officeId = officeId ;
45+ }
46+
5647 public AssignedTimeSeries timeseriesId (String timeseriesId ) {
5748 this .timeseriesId = timeseriesId ;
5849 return this ;
5950 }
6051
61- /**
62- * Get timeseriesId
63- *
64- * @return timeseriesId
65- **/
66-
6752 public String getTimeseriesId () {
6853 return timeseriesId ;
6954 }
@@ -77,13 +62,6 @@ public AssignedTimeSeries tsCode(BigDecimal tsCode) {
7762 return this ;
7863 }
7964
80- /**
81- * Get tsCode
82- *
83- * @return tsCode
84- **/
85-
86- @ Valid
8765 public BigDecimal getTsCode () {
8866 return tsCode ;
8967 }
@@ -97,12 +75,6 @@ public AssignedTimeSeries aliasId(String aliasId) {
9775 return this ;
9876 }
9977
100- /**
101- * Get aliasId
102- *
103- * @return aliasId
104- **/
105-
10678 public String getAliasId () {
10779 return aliasId ;
10880 }
@@ -116,12 +88,6 @@ public AssignedTimeSeries refTsId(String refTsId) {
11688 return this ;
11789 }
11890
119- /**
120- * Get refTsId
121- *
122- * @return refTsId
123- **/
124-
12591 public String getRefTsId () {
12692 return refTsId ;
12793 }
@@ -135,12 +101,6 @@ public AssignedTimeSeries attribute(Integer attribute) {
135101 return this ;
136102 }
137103
138- /**
139- * Get attribute
140- *
141- * @return attribute
142- **/
143-
144104 public Integer getAttribute () {
145105 return attribute ;
146106 }
@@ -149,36 +109,46 @@ public void setAttribute(Integer attribute) {
149109 this .attribute = attribute ;
150110 }
151111
152-
153112 @ Override
154- public boolean equals (Object o ) {
113+ public boolean equals (java . lang . Object o ) {
155114 if (this == o ) {
156115 return true ;
157116 }
158117 if (o == null || getClass () != o .getClass ()) {
159118 return false ;
160119 }
161120 AssignedTimeSeries assignedTimeSeries = (AssignedTimeSeries ) o ;
162- return this .timeseriesId == null || assignedTimeSeries .timeseriesId == null ?
163- Objects .equals (this .timeseriesId , assignedTimeSeries .timeseriesId ) :
164- this .timeseriesId .equalsIgnoreCase (assignedTimeSeries .timeseriesId ) && Objects .equals (this .tsCode , assignedTimeSeries .tsCode ) &&
165- this .aliasId == null || assignedTimeSeries .aliasId == null ? Objects .equals (this .aliasId , assignedTimeSeries .aliasId ) :
166- this .aliasId .equalsIgnoreCase (assignedTimeSeries .aliasId ) && this .refTsId == null || assignedTimeSeries .refTsId == null ?
167- Objects .equals (this .refTsId , assignedTimeSeries .refTsId ) :
168- this .refTsId .equalsIgnoreCase (assignedTimeSeries .refTsId ) && Objects .equals (this .attribute , assignedTimeSeries .attribute );
121+ return this .officeId == null || assignedTimeSeries .officeId == null
122+ ? Objects .equals (this .officeId , assignedTimeSeries .officeId )
123+ : this .officeId .equalsIgnoreCase (assignedTimeSeries .officeId )
124+ && this .timeseriesId == null || assignedTimeSeries .timeseriesId == null
125+ ? Objects .equals (this .timeseriesId , assignedTimeSeries .timeseriesId )
126+ : this .timeseriesId .equalsIgnoreCase (assignedTimeSeries .timeseriesId )
127+ && Objects .equals (this .tsCode , assignedTimeSeries .tsCode )
128+ && this .aliasId == null || assignedTimeSeries .aliasId == null
129+ ? Objects .equals (this .aliasId , assignedTimeSeries .aliasId )
130+ : this .aliasId .equalsIgnoreCase (assignedTimeSeries .aliasId )
131+ && this .refTsId == null || assignedTimeSeries .refTsId == null
132+ ? Objects .equals (this .refTsId , assignedTimeSeries .refTsId )
133+ : this .refTsId .equalsIgnoreCase (assignedTimeSeries .refTsId )
134+ && Objects .equals (this .attribute , assignedTimeSeries .attribute )
135+ ;
169136 }
170137
171138 @ Override
172139 public int hashCode () {
173- return Objects .hash (timeseriesId == null ? 0 : timeseriesId .toLowerCase (), tsCode , aliasId == null ? 0 : aliasId .toLowerCase (),
174- refTsId == null ? 0 : refTsId .toLowerCase (), attribute );
140+ return Objects .hash (officeId == null ? 0 : officeId .toLowerCase (),
141+ timeseriesId == null ? 0 : timeseriesId .toLowerCase (), tsCode ,
142+ aliasId == null ? 0 : aliasId .toLowerCase (),
143+ refTsId == null ? 0 : refTsId .toLowerCase (), attribute );
175144 }
176145
177146 @ Override
178147 public String toString () {
179148 StringBuilder sb = new StringBuilder ();
180149 sb .append ("class AssignedTimeSeries {\n " );
181150
151+ sb .append (" officeId: " ).append (toIndentedString (officeId )).append ("\n " );
182152 sb .append (" timeseriesId: " ).append (toIndentedString (timeseriesId )).append ("\n " );
183153 sb .append (" tsCode: " ).append (toIndentedString (tsCode )).append ("\n " );
184154 sb .append (" aliasId: " ).append (toIndentedString (aliasId )).append ("\n " );
0 commit comments