1 package org.rundeck.api.domain;
2
3 import java.io.Serializable;
4
5
6
7
8
9
10
11 public class ConfigProperty implements Serializable {
12
13 private static final long serialVersionUID = 1L;
14 private String key;
15 private String value;
16
17 public ConfigProperty() {
18 }
19
20 public ConfigProperty(String key, String value) {
21 this.key = key;
22 this.value = value;
23 }
24
25 public String getKey() {
26 return key;
27 }
28
29 public void setKey(String key) {
30 this.key = key;
31 }
32
33 public String getValue() {
34 return value;
35 }
36
37 public void setValue(String value) {
38 this.value = value;
39 }
40
41 @Override
42 public boolean equals(Object o) {
43 if (this == o) return true;
44 if (!(o instanceof ConfigProperty)) return false;
45
46 ConfigProperty that = (ConfigProperty) o;
47
48 if (!key.equals(that.key)) return false;
49 if (!value.equals(that.value)) return false;
50
51 return true;
52 }
53
54 @Override
55 public int hashCode() {
56 int result = key.hashCode();
57 result = 31 * result + value.hashCode();
58 return result;
59 }
60
61 @Override
62 public String toString() {
63 return "ConfigProperty{" +
64 "key='" + key + '\'' +
65 ", value='" + value + '\'' +
66 '}';
67 }
68 }