re base code
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / datatypes / ToscaServiceGroupsMetadataDefinition.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
22
23 import java.io.Serializable;
24
25 public class ToscaServiceGroupsMetadataDefinition implements Serializable {
26
27         public static final long serialVersionUID = -6373756459974949120L;
28
29         public String vfModuleModelName;
30         public String vfModuleModelInvariantUUID;
31         public String vfModuleModelCustomizationUUID;
32         public String vfModuleModelUUID;
33         public String vfModuleModelVersion;
34         
35         public ToscaServiceGroupsMetadataDefinition() {
36                 super();
37         }
38
39         public String getVfModuleModelName() {
40                 return vfModuleModelName;
41         }
42
43         public void setVfModuleModelName(String vfModuleModelName) {
44                 this.vfModuleModelName = vfModuleModelName;
45         }
46
47         public String getVfModuleModelInvariantUUID() {
48                 return vfModuleModelInvariantUUID;
49         }
50
51         public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) {
52                 this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID;
53         }
54
55         public String getVfModuleModelCustomizationUUID() {
56                 return vfModuleModelCustomizationUUID;
57         }
58
59         public void setVfModuleModelCustomizationUUID(String vfModuleModelCustomizationUUID) {
60                 this.vfModuleModelCustomizationUUID = vfModuleModelCustomizationUUID;
61         }
62
63         public String getVfModuleModelUUID() {
64                 return vfModuleModelUUID;
65         }
66
67         public void setVfModuleModelUUID(String vfModuleModelUUID) {
68                 this.vfModuleModelUUID = vfModuleModelUUID;
69         }
70
71         public String getVfModuleModelVersion() {
72                 return vfModuleModelVersion;
73         }
74
75         public void setVfModuleModelVersion(String vfModuleModelVersion) {
76                 this.vfModuleModelVersion = vfModuleModelVersion;
77         }
78
79         @Override
80         public String toString() {
81                 return "ToscaGroupsMetadataDefinition [vfModuleModelName=" + vfModuleModelName + ", vfModuleModelInvariantUUID=" + vfModuleModelInvariantUUID + ", vfModuleModelCustomizationUUID=" + vfModuleModelCustomizationUUID
82                                 + ", vfModuleModelUUID=" + vfModuleModelUUID + ", vfModuleModelVersion=" + vfModuleModelVersion + "]";
83         }
84
85         @Override
86         public boolean equals(Object o) {
87                 if (this == o) return true;
88                 if (!(o instanceof ToscaServiceGroupsMetadataDefinition)) return false;
89
90                 ToscaServiceGroupsMetadataDefinition that = (ToscaServiceGroupsMetadataDefinition) o;
91
92                 if (vfModuleModelName != null ? !vfModuleModelName.equals(that.vfModuleModelName) : that.vfModuleModelName != null)
93                         return false;
94                 if (!vfModuleModelInvariantUUID.equals(that.vfModuleModelInvariantUUID)) return false;
95                 if (vfModuleModelCustomizationUUID != null ? !vfModuleModelCustomizationUUID.equals(that.vfModuleModelCustomizationUUID) : that.vfModuleModelCustomizationUUID != null)
96                         return false;
97                 if (vfModuleModelUUID != null ? !vfModuleModelUUID.equals(that.vfModuleModelUUID) : that.vfModuleModelUUID != null)
98                         return false;
99                 return vfModuleModelVersion != null ? vfModuleModelVersion.equals(that.vfModuleModelVersion) : that.vfModuleModelVersion == null;
100         }
101
102         @Override
103         public int hashCode() {
104                 return vfModuleModelInvariantUUID.hashCode();
105         }
106 }