c9b443b279b21007daa75ceca313648e90a0e8b1
[sdnc/apps.git] /
1 package org.onap.sdnc.apps.ms.gra.swagger.model;
2
3 import java.util.Objects;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonRootName;
6 import com.fasterxml.jackson.annotation.JsonCreator;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import java.util.ArrayList;
10 import java.util.List;
11 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadmodelinformationPreloadList;
12 import org.springframework.validation.annotation.Validated;
13 import javax.validation.Valid;
14 import javax.validation.constraints.*;
15
16 /**
17  * GenericResourceApiPreloadModelInformation
18  */
19 @Validated
20 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
21 @JsonRootName("preload-information")
22 public class GenericResourceApiPreloadModelInformation   {
23   @JsonProperty("preload-list")
24   @Valid
25   private List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList = null;
26
27   public GenericResourceApiPreloadModelInformation preloadList(List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList) {
28     this.preloadList = preloadList;
29     return this;
30   }
31
32   public GenericResourceApiPreloadModelInformation addPreloadListItem(GenericResourceApiPreloadmodelinformationPreloadList preloadListItem) {
33     if (this.preloadList == null) {
34       this.preloadList = new ArrayList<>();
35     }
36     this.preloadList.add(preloadListItem);
37     return this;
38   }
39
40   /**
41    * Get preloadList
42    * @return preloadList
43   **/
44   @ApiModelProperty(value = "")
45
46   @Valid
47
48   public List<GenericResourceApiPreloadmodelinformationPreloadList> getPreloadList() {
49     return preloadList;
50   }
51
52   public void setPreloadList(List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList) {
53     this.preloadList = preloadList;
54   }
55
56
57   @Override
58   public boolean equals(java.lang.Object o) {
59     if (this == o) {
60       return true;
61     }
62     if (o == null || getClass() != o.getClass()) {
63       return false;
64     }
65     GenericResourceApiPreloadModelInformation genericResourceApiPreloadModelInformation = (GenericResourceApiPreloadModelInformation) o;
66     return Objects.equals(this.preloadList, genericResourceApiPreloadModelInformation.preloadList);
67   }
68
69   @Override
70   public int hashCode() {
71     return Objects.hash(preloadList);
72   }
73
74   @Override
75   public String toString() {
76     StringBuilder sb = new StringBuilder();
77     sb.append("class GenericResourceApiPreloadModelInformation {\n");
78     
79     sb.append("    preloadList: ").append(toIndentedString(preloadList)).append("\n");
80     sb.append("}");
81     return sb.toString();
82   }
83
84   /**
85    * Convert the given object to string with each line indented by 4 spaces
86    * (except the first line).
87    */
88   private String toIndentedString(java.lang.Object o) {
89     if (o == null) {
90       return "null";
91     }
92     return o.toString().replace("\n", "\n    ");
93   }
94 }
95