@@ -22,15 +22,17 @@ public class APIDeviceCleanupConfiguration extends APIEntity {
2222
2323 private Long createdById ;
2424
25- private APIDevice . OsType osType = APIDevice . OsType . ANDROID ;
25+ private String description ;
2626
27- private Date lastModificationTime ;
27+ private String discriminator ;
2828
2929 private Boolean enabled ;
3030
3131 private Boolean global ;
3232
33- private String discriminator ;
33+ private Date lastModificationTime ;
34+
35+ private APIDevice .OsType osType = APIDevice .OsType .ANDROID ;
3436
3537 // For cluster use. Not included in hashCode or equals.
3638 @ JsonInclude (JsonInclude .Include .NON_NULL )
@@ -42,7 +44,8 @@ public APIDeviceCleanupConfiguration() {
4244 @ SuppressWarnings ("squid:S107" )
4345 public APIDeviceCleanupConfiguration (
4446 Long id , String content , Boolean enabled , LocalDateTime createTime , String createdByEmail , Long createdById ,
45- APIDevice .OsType osType , LocalDateTime lastModificationTime , String discriminator , Boolean global ) {
47+ APIDevice .OsType osType , LocalDateTime lastModificationTime , String discriminator , Boolean global ,
48+ String description ) {
4649 super (id );
4750 this .content = content ;
4851 this .enabled = enabled ;
@@ -53,6 +56,7 @@ public APIDeviceCleanupConfiguration(
5356 this .lastModificationTime = TimeConverter .toDate (lastModificationTime );
5457 this .global = global ;
5558 this .discriminator = discriminator ;
59+ this .description = description ;
5660 }
5761
5862 public String getContent () {
@@ -135,6 +139,14 @@ public void setForceRestore(Boolean forceRestore) {
135139 this .forceRestore = forceRestore ;
136140 }
137141
142+ public String getDescription () {
143+ return description ;
144+ }
145+
146+ public void setDescription (String description ) {
147+ this .description = description ;
148+ }
149+
138150 @ Override
139151 @ JsonIgnore
140152 public <T extends APIEntity > void clone (T from ) {
@@ -150,6 +162,7 @@ public <T extends APIEntity> void clone(T from) {
150162 this .global = deviceCleanupConfiguration .global ;
151163 this .discriminator = deviceCleanupConfiguration .discriminator ;
152164 this .forceRestore = deviceCleanupConfiguration .forceRestore ;
165+ this .description = deviceCleanupConfiguration .description ;
153166 }
154167
155168 @ Override
@@ -169,13 +182,14 @@ public boolean equals(Object o) {
169182 Objects .equals (lastModificationTime , that .lastModificationTime ) &&
170183 Objects .equals (enabled , that .enabled ) &&
171184 Objects .equals (global , that .global ) &&
172- Objects .equals (discriminator , that .discriminator );
185+ Objects .equals (discriminator , that .discriminator ) &&
186+ Objects .equals (description , that .description );
173187 }
174188
175189 @ Override
176190 public int hashCode () {
177191 return Objects
178192 .hash (content , createTime , createdByEmail , createdById , osType , lastModificationTime , enabled ,
179- global , discriminator );
193+ global , discriminator , description );
180194 }
181195}
0 commit comments