Test many POJOs getters/setters
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / Properties.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 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.vid.aai.model;
22
23 import com.fasterxml.jackson.annotation.JsonAnyGetter;
24 import com.fasterxml.jackson.annotation.JsonAnySetter;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import java.util.HashMap;
27 import java.util.Map;
28
29 public class Properties {
30
31     //properties for l-interface node-type
32     @JsonProperty("interface-name")
33     private String interfaceName;
34
35     @JsonProperty("interface-id")
36     private String interfaceId;
37
38     @JsonProperty("is-port-mirrored")
39     private Boolean isPortMirrored;
40
41     //properties for tenant node-type
42     @JsonProperty("tenant-id")
43     private String tenantId;
44
45     @JsonProperty("tenant-name")
46     private String tenantName;
47
48     //properties for cloud-region node-type
49     @JsonProperty("cloud-region-id")
50     private String cloudRegionId;
51
52     private Map<String, String> additionalProperties = new HashMap<>();
53
54     public Properties(){}
55
56     public String getInterfaceName() {
57         return interfaceName;
58     }
59
60     public void setInterfaceName(String interfaceName) {
61         this.interfaceName = interfaceName;
62     }
63
64     public String getInterfaceId() {
65         return interfaceId;
66     }
67
68     public void setInterfaceId(String interfaceId) {
69         this.interfaceId = interfaceId;
70     }
71
72     public Boolean getIsPortMirrored() {
73         return isPortMirrored;
74     }
75
76     public void setPortMirrored(Boolean portMirrored) {
77         isPortMirrored = portMirrored;
78     }
79
80     public String getTenantId() {
81         return tenantId;
82     }
83
84     public void setTenantId(String tenantId) {
85         this.tenantId = tenantId;
86     }
87
88     public String getTenantName() {
89         return tenantName;
90     }
91
92     public void setTenantName(String tenantName) {
93         this.tenantName = tenantName;
94     }
95
96     public String getCloudRegionId() {
97         return cloudRegionId;
98     }
99
100     public void setCloudRegionId(String cloudRegionId) {
101         this.cloudRegionId = cloudRegionId;
102     }
103
104     @JsonAnyGetter
105     public Map<String, String> getAdditionalProperties() {
106         return additionalProperties;
107     }
108
109     @JsonAnySetter
110     public void setAdditionalProperties(String name, String value) {
111         additionalProperties.put(name, value);
112     }
113 }