aboutsummaryrefslogtreecommitdiffstats
path: root/integration-tests/src/test/java/org/openecomp/sdc/ci/tests/tosca/datatypes/ToscaGroupPropertyDefinition.java
blob: adab3fa5f87e30f2bfc4ee8dfda9a99a54db2262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*-
 * ============LICENSE_START=======================================================
 * SDC
 * ================================================================================
 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

package org.openecomp.sdc.ci.tests.tosca.datatypes;

import org.yaml.snakeyaml.TypeDescription;

public class ToscaGroupPropertyDefinition {

    public String min_vf_module_instances;
    public String max_vf_module_instances;
    public String vf_module_label;
    public String vfc_list;
    public String vf_module_type;
    public String vf_module_description;
    public String initial_count;
    public String volume_group;
    public String availability_zone_count;

    public ToscaGroupPropertyDefinition() {
    }

    public String getMin_vf_module_instances() {
        return min_vf_module_instances;
    }

    public void setMin_vf_module_instances(String min_vf_module_instances) {
        this.min_vf_module_instances = min_vf_module_instances;
    }

    public String getMax_vf_module_instances() {
        return max_vf_module_instances;
    }

    public void setMax_vf_module_instances(String max_vf_module_instances) {
        this.max_vf_module_instances = max_vf_module_instances;
    }

    public String getVf_module_label() {
        return vf_module_label;
    }

    public void setVf_module_label(String vf_module_label) {
        this.vf_module_label = vf_module_label;
    }

    public String getVfc_list() {
        return vfc_list;
    }

    public void setVfc_list(String vfc_list) {
        this.vfc_list = vfc_list;
    }

    public String getVf_module_type() {
        return vf_module_type;
    }

    public void setVf_module_type(String vf_module_type) {
        this.vf_module_type = vf_module_type;
    }

    public String getVf_module_description() {
        return vf_module_description;
    }

    public void setVf_module_description(String vf_module_description) {
        this.vf_module_description = vf_module_description;
    }

    public String getInitial_count() {
        return initial_count;
    }

    public void setInitial_count(String initial_count) {
        this.initial_count = initial_count;
    }

    public String getVolume_group() {
        return volume_group;
    }

    public void setVolume_group(String volume_group) {
        this.volume_group = volume_group;
    }

    public String getAvailability_zone_count() {
        return availability_zone_count;
    }

    public void setAvailability_zone_count(String availability_zone_count) {
        this.availability_zone_count = availability_zone_count;
    }

    @Override
    public String toString() {
        return "ToscaGroupPropertyDefinition{" +
                ", min_vf_module_instances='" + min_vf_module_instances + '\'' +
                ", max_vf_module_instances='" + max_vf_module_instances + '\'' +
                ", vf_module_label='" + vf_module_label + '\'' +
                ", vfc_list='" + vfc_list + '\'' +
                ", vf_module_type='" + vf_module_type + '\'' +
                ", vf_module_description='" + vf_module_description + '\'' +
                ", initial_count='" + initial_count + '\'' +
                ", volume_group='" + volume_group + '\'' +
                ", availability_zone_count='" + availability_zone_count + '\'' +
                '}';
    }

    //gets Type description for Yaml snake
    public static TypeDescription getTypeDescription(){
        TypeDescription typeDescription = new TypeDescription(ToscaGroupPropertyDefinition.class);
        return typeDescription;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ToscaGroupPropertyDefinition that = (ToscaGroupPropertyDefinition) o;

        if (min_vf_module_instances != null ? !min_vf_module_instances.equals(that.min_vf_module_instances) : that.min_vf_module_instances != null)
            return false;
        if (max_vf_module_instances != null ? !max_vf_module_instances.equals(that.max_vf_module_instances) : that.max_vf_module_instances != null)
            return false;
        if (vf_module_label != null ? !vf_module_label.equals(that.vf_module_label) : that.vf_module_label != null)
            return false;
        if (vfc_list != null ? !vfc_list.equals(that.vfc_list) : that.vfc_list != null) return false;
        if (vf_module_type != null ? !vf_module_type.equals(that.vf_module_type) : that.vf_module_type != null)
            return false;
        if (vf_module_description != null ? !vf_module_description.equals(that.vf_module_description) : that.vf_module_description != null)
            return false;
        if (initial_count != null ? !initial_count.equals(that.initial_count) : that.initial_count != null)
            return false;
        if (volume_group != null ? !volume_group.equals(that.volume_group) : that.volume_group != null) return false;
        return availability_zone_count != null ? availability_zone_count.equals(that.availability_zone_count) : that.availability_zone_count == null;
    }

    @Override
    public int hashCode() {
        int result = min_vf_module_instances != null ? min_vf_module_instances.hashCode() : 0;
        result = 31 * result + (max_vf_module_instances != null ? max_vf_module_instances.hashCode() : 0);
        result = 31 * result + (vf_module_label != null ? vf_module_label.hashCode() : 0);
        result = 31 * result + (vfc_list != null ? vfc_list.hashCode() : 0);
        result = 31 * result + (vf_module_type != null ? vf_module_type.hashCode() : 0);
        result = 31 * result + (vf_module_description != null ? vf_module_description.hashCode() : 0);
        result = 31 * result + (initial_count != null ? initial_count.hashCode() : 0);
        result = 31 * result + (volume_group != null ? volume_group.hashCode() : 0);
        result = 31 * result + (availability_zone_count != null ? availability_zone_count.hashCode() : 0);
        return result;
    }
}