2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
23 import java.io.Serializable;
25 public class ToscaServiceGroupsMetadataDefinition implements Serializable {
27 public static final long serialVersionUID = -6373756459974949120L;
29 public String vfModuleModelName;
30 public String vfModuleModelInvariantUUID;
31 public String vfModuleModelCustomizationUUID;
32 public String vfModuleModelUUID;
33 public String vfModuleModelVersion;
35 public ToscaServiceGroupsMetadataDefinition() {
39 public String getVfModuleModelName() {
40 return vfModuleModelName;
43 public void setVfModuleModelName(String vfModuleModelName) {
44 this.vfModuleModelName = vfModuleModelName;
47 public String getVfModuleModelInvariantUUID() {
48 return vfModuleModelInvariantUUID;
51 public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) {
52 this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID;
55 public String getVfModuleModelCustomizationUUID() {
56 return vfModuleModelCustomizationUUID;
59 public void setVfModuleModelCustomizationUUID(String vfModuleModelCustomizationUUID) {
60 this.vfModuleModelCustomizationUUID = vfModuleModelCustomizationUUID;
63 public String getVfModuleModelUUID() {
64 return vfModuleModelUUID;
67 public void setVfModuleModelUUID(String vfModuleModelUUID) {
68 this.vfModuleModelUUID = vfModuleModelUUID;
71 public String getVfModuleModelVersion() {
72 return vfModuleModelVersion;
75 public void setVfModuleModelVersion(String vfModuleModelVersion) {
76 this.vfModuleModelVersion = vfModuleModelVersion;
80 public String toString() {
81 return "ToscaGroupsMetadataDefinition [vfModuleModelName=" + vfModuleModelName + ", vfModuleModelInvariantUUID=" + vfModuleModelInvariantUUID + ", vfModuleModelCustomizationUUID=" + vfModuleModelCustomizationUUID
82 + ", vfModuleModelUUID=" + vfModuleModelUUID + ", vfModuleModelVersion=" + vfModuleModelVersion + "]";
86 public boolean equals(Object o) {
87 if (this == o) return true;
88 if (!(o instanceof ToscaServiceGroupsMetadataDefinition)) return false;
90 ToscaServiceGroupsMetadataDefinition that = (ToscaServiceGroupsMetadataDefinition) o;
92 if (vfModuleModelName != null ? !vfModuleModelName.equals(that.vfModuleModelName) : that.vfModuleModelName != null)
94 if (!vfModuleModelInvariantUUID.equals(that.vfModuleModelInvariantUUID)) return false;
95 if (vfModuleModelCustomizationUUID != null ? !vfModuleModelCustomizationUUID.equals(that.vfModuleModelCustomizationUUID) : that.vfModuleModelCustomizationUUID != null)
97 if (vfModuleModelUUID != null ? !vfModuleModelUUID.equals(that.vfModuleModelUUID) : that.vfModuleModelUUID != null)
99 return vfModuleModelVersion != null ? vfModuleModelVersion.equals(that.vfModuleModelVersion) : that.vfModuleModelVersion == null;
103 public int hashCode() {
104 return vfModuleModelInvariantUUID.hashCode();