First part of onap rename
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / openecomp / appc / flow / controller / data / Parameters.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
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.onap.appc.flow.controller.data;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24
25 public class Parameters {
26     
27
28     @JsonProperty("name")
29     private String paramName ;
30     
31     @JsonProperty("value")
32     private String paramValue ;
33     
34     
35     public String getParamValue() {
36         return paramValue;
37     }
38     public void setParamValue(String paramValue) {
39         this.paramValue = paramValue;
40     }
41     public String getParamName() {
42         return paramName;
43     }
44     public void setParamName(String paramName) {
45         this.paramName = paramName;
46     }
47     @Override
48     public String toString() {
49         return "Parameters [paramName=" + paramName + ", paramValue=" + paramValue + "]";
50     }
51     @Override
52     public int hashCode() {
53         final int prime = 31;
54         int result = 1;
55         result = prime * result + ((paramName == null) ? 0 : paramName.hashCode());
56         result = prime * result + ((paramValue == null) ? 0 : paramValue.hashCode());
57         return result;
58     }
59     @Override
60     public boolean equals(Object obj) {
61         if (this == obj)
62             return true;
63         if (obj == null)
64             return false;
65         if (getClass() != obj.getClass())
66             return false;
67         Parameters other = (Parameters) obj;
68         if (paramName == null) {
69             if (other.paramName != null)
70                 return false;
71         } else if (!paramName.equals(other.paramName))
72             return false;
73         if (paramValue == null) {
74             if (other.paramValue != null)
75                 return false;
76         } else if (!paramValue.equals(other.paramValue))
77             return false;
78         return true;
79     }
80     
81
82 }