1 package org.openecomp.sdc.ci.tests.tosca.datatypes;
3 import org.yaml.snakeyaml.TypeDescription;
5 public class ToscaGroupPropertyDefinition {
7 public String min_vf_module_instances;
8 public String max_vf_module_instances;
9 public String vf_module_label;
10 public String vfc_list;
11 public String vf_module_type;
12 public String vf_module_description;
13 public String initial_count;
14 public String volume_group;
15 public String availability_zone_count;
17 public ToscaGroupPropertyDefinition() {
20 public String getMin_vf_module_instances() {
21 return min_vf_module_instances;
24 public void setMin_vf_module_instances(String min_vf_module_instances) {
25 this.min_vf_module_instances = min_vf_module_instances;
28 public String getMax_vf_module_instances() {
29 return max_vf_module_instances;
32 public void setMax_vf_module_instances(String max_vf_module_instances) {
33 this.max_vf_module_instances = max_vf_module_instances;
36 public String getVf_module_label() {
37 return vf_module_label;
40 public void setVf_module_label(String vf_module_label) {
41 this.vf_module_label = vf_module_label;
44 public String getVfc_list() {
48 public void setVfc_list(String vfc_list) {
49 this.vfc_list = vfc_list;
52 public String getVf_module_type() {
53 return vf_module_type;
56 public void setVf_module_type(String vf_module_type) {
57 this.vf_module_type = vf_module_type;
60 public String getVf_module_description() {
61 return vf_module_description;
64 public void setVf_module_description(String vf_module_description) {
65 this.vf_module_description = vf_module_description;
68 public String getInitial_count() {
72 public void setInitial_count(String initial_count) {
73 this.initial_count = initial_count;
76 public String getVolume_group() {
80 public void setVolume_group(String volume_group) {
81 this.volume_group = volume_group;
84 public String getAvailability_zone_count() {
85 return availability_zone_count;
88 public void setAvailability_zone_count(String availability_zone_count) {
89 this.availability_zone_count = availability_zone_count;
93 public String toString() {
94 return "ToscaGroupPropertyDefinition{" +
95 ", min_vf_module_instances='" + min_vf_module_instances + '\'' +
96 ", max_vf_module_instances='" + max_vf_module_instances + '\'' +
97 ", vf_module_label='" + vf_module_label + '\'' +
98 ", vfc_list='" + vfc_list + '\'' +
99 ", vf_module_type='" + vf_module_type + '\'' +
100 ", vf_module_description='" + vf_module_description + '\'' +
101 ", initial_count='" + initial_count + '\'' +
102 ", volume_group='" + volume_group + '\'' +
103 ", availability_zone_count='" + availability_zone_count + '\'' +
107 //gets Type description for Yaml snake
108 public static TypeDescription getTypeDescription(){
109 TypeDescription typeDescription = new TypeDescription(ToscaGroupPropertyDefinition.class);
110 return typeDescription;
114 public boolean equals(Object o) {
115 if (this == o) return true;
116 if (o == null || getClass() != o.getClass()) return false;
118 ToscaGroupPropertyDefinition that = (ToscaGroupPropertyDefinition) o;
120 if (min_vf_module_instances != null ? !min_vf_module_instances.equals(that.min_vf_module_instances) : that.min_vf_module_instances != null)
122 if (max_vf_module_instances != null ? !max_vf_module_instances.equals(that.max_vf_module_instances) : that.max_vf_module_instances != null)
124 if (vf_module_label != null ? !vf_module_label.equals(that.vf_module_label) : that.vf_module_label != null)
126 if (vfc_list != null ? !vfc_list.equals(that.vfc_list) : that.vfc_list != null) return false;
127 if (vf_module_type != null ? !vf_module_type.equals(that.vf_module_type) : that.vf_module_type != null)
129 if (vf_module_description != null ? !vf_module_description.equals(that.vf_module_description) : that.vf_module_description != null)
131 if (initial_count != null ? !initial_count.equals(that.initial_count) : that.initial_count != null)
133 if (volume_group != null ? !volume_group.equals(that.volume_group) : that.volume_group != null) return false;
134 return availability_zone_count != null ? availability_zone_count.equals(that.availability_zone_count) : that.availability_zone_count == null;
138 public int hashCode() {
139 int result = min_vf_module_instances != null ? min_vf_module_instances.hashCode() : 0;
140 result = 31 * result + (max_vf_module_instances != null ? max_vf_module_instances.hashCode() : 0);
141 result = 31 * result + (vf_module_label != null ? vf_module_label.hashCode() : 0);
142 result = 31 * result + (vfc_list != null ? vfc_list.hashCode() : 0);
143 result = 31 * result + (vf_module_type != null ? vf_module_type.hashCode() : 0);
144 result = 31 * result + (vf_module_description != null ? vf_module_description.hashCode() : 0);
145 result = 31 * result + (initial_count != null ? initial_count.hashCode() : 0);
146 result = 31 * result + (volume_group != null ? volume_group.hashCode() : 0);
147 result = 31 * result + (availability_zone_count != null ? availability_zone_count.hashCode() : 0);