777439521fb8937a4d0a53c9c72db8b801aef226
[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 org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadData;
10 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloaddataPreloadData;
11 import org.springframework.validation.annotation.Validated;
12 import javax.validation.Valid;
13 import javax.validation.constraints.*;
14
15 /**
16  * GenericResourceApiPreloadmodelinformationPreloadList
17  */
18 @Validated
19 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
20 @JsonRootName("preload-list")
21 public class GenericResourceApiPreloadmodelinformationPreloadList   {
22   @JsonProperty("preload-data")
23   private GenericResourceApiPreloaddataPreloadData preloadData = null;
24
25   @JsonProperty("preload-type")
26   private String preloadType = null;
27
28   @JsonProperty("preload-id")
29   private String preloadId = null;
30
31   public GenericResourceApiPreloadmodelinformationPreloadList preloadData(GenericResourceApiPreloaddataPreloadData preloadData) {
32     this.preloadData = preloadData;
33     return this;
34   }
35
36   /**
37    * Get preloadData
38    * @return preloadData
39   **/
40   @ApiModelProperty(value = "")
41
42   @Valid
43
44   public GenericResourceApiPreloaddataPreloadData getPreloadData() {
45     return preloadData;
46   }
47
48   public void setPreloadData(GenericResourceApiPreloaddataPreloadData preloadData) {
49     this.preloadData = preloadData;
50   }
51
52   public GenericResourceApiPreloadmodelinformationPreloadList preloadType(String preloadType) {
53     this.preloadType = preloadType;
54     return this;
55   }
56
57   /**
58    * network or vf-module
59    * @return preloadType
60   **/
61   @ApiModelProperty(value = "network or vf-module")
62
63
64   public String getPreloadType() {
65     return preloadType;
66   }
67
68   public void setPreloadType(String preloadType) {
69     this.preloadType = preloadType;
70   }
71
72   public GenericResourceApiPreloadmodelinformationPreloadList preloadId(String preloadId) {
73     this.preloadId = preloadId;
74     return this;
75   }
76
77   /**
78    * vf-module-name or network name
79    * @return preloadId
80   **/
81   @ApiModelProperty(value = "vf-module-name or network name")
82
83
84   public String getPreloadId() {
85     return preloadId;
86   }
87
88   public void setPreloadId(String preloadId) {
89     this.preloadId = preloadId;
90   }
91
92
93   @Override
94   public boolean equals(java.lang.Object o) {
95     if (this == o) {
96       return true;
97     }
98     if (o == null || getClass() != o.getClass()) {
99       return false;
100     }
101     GenericResourceApiPreloadmodelinformationPreloadList genericResourceApiPreloadmodelinformationPreloadList = (GenericResourceApiPreloadmodelinformationPreloadList) o;
102     return Objects.equals(this.preloadData, genericResourceApiPreloadmodelinformationPreloadList.preloadData) &&
103         Objects.equals(this.preloadType, genericResourceApiPreloadmodelinformationPreloadList.preloadType) &&
104         Objects.equals(this.preloadId, genericResourceApiPreloadmodelinformationPreloadList.preloadId);
105   }
106
107   @Override
108   public int hashCode() {
109     return Objects.hash(preloadData, preloadType, preloadId);
110   }
111
112   @Override
113   public String toString() {
114     StringBuilder sb = new StringBuilder();
115     sb.append("class GenericResourceApiPreloadmodelinformationPreloadList {\n");
116     
117     sb.append("    preloadData: ").append(toIndentedString(preloadData)).append("\n");
118     sb.append("    preloadType: ").append(toIndentedString(preloadType)).append("\n");
119     sb.append("    preloadId: ").append(toIndentedString(preloadId)).append("\n");
120     sb.append("}");
121     return sb.toString();
122   }
123
124   /**
125    * Convert the given object to string with each line indented by 4 spaces
126    * (except the first line).
127    */
128   private String toIndentedString(java.lang.Object o) {
129     if (o == null) {
130       return "null";
131     }
132     return o.toString().replace("\n", "\n    ");
133   }
134 }
135