d6efbc68512c4fee517c611c1b5f804ed217cdec
[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.springframework.validation.annotation.Validated;
10 import javax.validation.Valid;
11 import javax.validation.constraints.*;
12
13 /**
14  * GenericResourceApiOnapmodelinformationOnapModelInformation
15  */
16 @Validated
17 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-26T09:20:20.871-04:00")
18 @JsonRootName("onap-model-information")
19 public class GenericResourceApiOnapmodelinformationOnapModelInformation   {
20   @JsonProperty("model-name")
21   private String modelName = null;
22
23   @JsonProperty("model-version")
24   private String modelVersion = null;
25
26   @JsonProperty("model-customization-uuid")
27   private String modelCustomizationUuid = null;
28
29   @JsonProperty("model-uuid")
30   private String modelUuid = null;
31
32   @JsonProperty("model-invariant-uuid")
33   private String modelInvariantUuid = null;
34
35   public GenericResourceApiOnapmodelinformationOnapModelInformation modelName(String modelName) {
36     this.modelName = modelName;
37     return this;
38   }
39
40   /**
41    * Get modelName
42    * @return modelName
43   **/
44   @ApiModelProperty(value = "")
45
46
47   public String getModelName() {
48     return modelName;
49   }
50
51   public void setModelName(String modelName) {
52     this.modelName = modelName;
53   }
54
55   public GenericResourceApiOnapmodelinformationOnapModelInformation modelVersion(String modelVersion) {
56     this.modelVersion = modelVersion;
57     return this;
58   }
59
60   /**
61    * Get modelVersion
62    * @return modelVersion
63   **/
64   @ApiModelProperty(value = "")
65
66
67   public String getModelVersion() {
68     return modelVersion;
69   }
70
71   public void setModelVersion(String modelVersion) {
72     this.modelVersion = modelVersion;
73   }
74
75   public GenericResourceApiOnapmodelinformationOnapModelInformation modelCustomizationUuid(String modelCustomizationUuid) {
76     this.modelCustomizationUuid = modelCustomizationUuid;
77     return this;
78   }
79
80   /**
81    * customized resource for use within a given service.Would not be present at the service level but would be present for the resource level
82    * @return modelCustomizationUuid
83   **/
84   @ApiModelProperty(value = "customized resource for use within a given service.Would not be present at the service level but would be present for the resource level")
85
86
87   public String getModelCustomizationUuid() {
88     return modelCustomizationUuid;
89   }
90
91   public void setModelCustomizationUuid(String modelCustomizationUuid) {
92     this.modelCustomizationUuid = modelCustomizationUuid;
93   }
94
95   public GenericResourceApiOnapmodelinformationOnapModelInformation modelUuid(String modelUuid) {
96     this.modelUuid = modelUuid;
97     return this;
98   }
99
100   /**
101    * identifies the uuid for this service or resource, which is version specific
102    * @return modelUuid
103   **/
104   @ApiModelProperty(value = "identifies the uuid for this service or resource, which is version specific")
105
106
107   public String getModelUuid() {
108     return modelUuid;
109   }
110
111   public void setModelUuid(String modelUuid) {
112     this.modelUuid = modelUuid;
113   }
114
115   public GenericResourceApiOnapmodelinformationOnapModelInformation modelInvariantUuid(String modelInvariantUuid) {
116     this.modelInvariantUuid = modelInvariantUuid;
117     return this;
118   }
119
120   /**
121    * identifies the invariant uuid for this service or resource
122    * @return modelInvariantUuid
123   **/
124   @ApiModelProperty(value = "identifies the invariant uuid for this service or resource")
125
126
127   public String getModelInvariantUuid() {
128     return modelInvariantUuid;
129   }
130
131   public void setModelInvariantUuid(String modelInvariantUuid) {
132     this.modelInvariantUuid = modelInvariantUuid;
133   }
134
135
136   @Override
137   public boolean equals(java.lang.Object o) {
138     if (this == o) {
139       return true;
140     }
141     if (o == null || getClass() != o.getClass()) {
142       return false;
143     }
144     GenericResourceApiOnapmodelinformationOnapModelInformation genericResourceApiOnapmodelinformationOnapModelInformation = (GenericResourceApiOnapmodelinformationOnapModelInformation) o;
145     return Objects.equals(this.modelName, genericResourceApiOnapmodelinformationOnapModelInformation.modelName) &&
146         Objects.equals(this.modelVersion, genericResourceApiOnapmodelinformationOnapModelInformation.modelVersion) &&
147         Objects.equals(this.modelCustomizationUuid, genericResourceApiOnapmodelinformationOnapModelInformation.modelCustomizationUuid) &&
148         Objects.equals(this.modelUuid, genericResourceApiOnapmodelinformationOnapModelInformation.modelUuid) &&
149         Objects.equals(this.modelInvariantUuid, genericResourceApiOnapmodelinformationOnapModelInformation.modelInvariantUuid);
150   }
151
152   @Override
153   public int hashCode() {
154     return Objects.hash(modelName, modelVersion, modelCustomizationUuid, modelUuid, modelInvariantUuid);
155   }
156
157   @Override
158   public String toString() {
159     StringBuilder sb = new StringBuilder();
160     sb.append("class GenericResourceApiOnapmodelinformationOnapModelInformation {\n");
161     
162     sb.append("    modelName: ").append(toIndentedString(modelName)).append("\n");
163     sb.append("    modelVersion: ").append(toIndentedString(modelVersion)).append("\n");
164     sb.append("    modelCustomizationUuid: ").append(toIndentedString(modelCustomizationUuid)).append("\n");
165     sb.append("    modelUuid: ").append(toIndentedString(modelUuid)).append("\n");
166     sb.append("    modelInvariantUuid: ").append(toIndentedString(modelInvariantUuid)).append("\n");
167     sb.append("}");
168     return sb.toString();
169   }
170
171   /**
172    * Convert the given object to string with each line indented by 4 spaces
173    * (except the first line).
174    */
175   private String toIndentedString(java.lang.Object o) {
176     if (o == null) {
177       return "null";
178     }
179     return o.toString().replace("\n", "\n    ");
180   }
181 }
182