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.
19 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
20 * ============LICENSE_END=========================================================
22 package org.onap.appc.flow.controller.data;
24 import com.fasterxml.jackson.annotation.JsonProperty;
26 public class PrecheckOption {
29 @JsonProperty("pre-transaction-id")
30 private int pTransactionID;
32 @JsonProperty("param-name")
33 private String paramName;
36 @JsonProperty("param-value")
37 private String paramValue;
42 public int getpTransactionID() {
43 return pTransactionID;
46 public void setpTransactionID(int pTransactionID) {
47 this.pTransactionID = pTransactionID;
50 public String getParamName() {
54 public void setParamName(String paramName) {
55 this.paramName = paramName;
58 public String getParamValue() {
62 public void setParamValue(String paramValue) {
63 this.paramValue = paramValue;
67 public String toString() {
68 return "PrecheckOption [pTransactionID=" + pTransactionID + ", paramName=" + paramName + ", paramValue="
69 + paramValue + ", rule=" + rule + "]";
72 public String getRule() {
76 public void setRule(String rule) {
81 public int hashCode() {
84 result = prime * result + this.pTransactionID;
85 result = prime * result + this.paramName.hashCode();
86 result = prime * result + this.paramValue.hashCode();
87 result = prime * result + this.rule.hashCode();
92 public boolean equals(Object obj) {
97 if (getClass() != obj.getClass())
99 PrecheckOption other = (PrecheckOption) obj;
100 if (pTransactionID != other.pTransactionID)
102 if (paramName == null) {
103 if (other.paramName != null)
105 } else if (!paramName.equals(other.paramName))
107 if (paramValue == null) {
108 if (other.paramValue != null)
110 } else if (!paramValue.equals(other.paramValue))
112 if (rule != other.rule)