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.onap.appc.flow.controller.data;
23 import com.fasterxml.jackson.annotation.JsonProperty;
25 public class PrecheckOption {
28 @JsonProperty("pre-transaction-id")
29 private int pTransactionID ;
31 @JsonProperty("param-name")
32 private String paramName ;
35 @JsonProperty("param-value")
36 private String paramValue ;
41 public int getpTransactionID() {
42 return pTransactionID;
45 public void setpTransactionID(int pTransactionID) {
46 this.pTransactionID = pTransactionID;
49 public String getParamName() {
53 public void setParamName(String paramName) {
54 this.paramName = paramName;
57 public String getParamValue() {
61 public void setParamValue(String paramValue) {
62 this.paramValue = paramValue;
68 public String toString() {
69 return "PrecheckOption [pTransactionID=" + pTransactionID + ", paramName=" + paramName + ", paramValue="
70 + paramValue + ", rule=" + rule + "]";
74 public String getRule() {
78 public void setRule(String rule) {
83 public int hashCode() {
86 result = prime * result + this.pTransactionID;
87 result = prime * result + this.paramName.hashCode();
88 result = prime * result + this.paramValue.hashCode();
89 result = prime * result + this.rule.hashCode();
94 public boolean equals(Object obj) {
99 if (getClass() != obj.getClass())
101 PrecheckOption other = (PrecheckOption) obj;
102 if (pTransactionID != other.pTransactionID)
104 if (paramName == null) {
105 if (other.paramName != null)
107 } else if (!paramName.equals(other.paramName))
109 if (paramValue == null) {
110 if (other.paramValue != null)
112 } else if (!paramValue.equals(other.paramValue))
114 if (rule != other.rule)