0ccf73f59cb9440b63dcaa8a54cfed993fd3eef6
[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
27 import java.util.HashMap;
28 import java.util.Map;
29
30 public class Properties {
31
32     //properties for l-interface node-type
33     @JsonProperty("interface-name")
34     private String interfaceName;
35
36     @JsonProperty("interface-id")
37     private String interfaceId;
38
39     @JsonProperty("is-port-mirrored")
40     private Boolean isPortMirrored;
41
42     //properties for tenant node-type
43     @JsonProperty("tenant-id")
44     private String tenantId;
45
46     @JsonProperty("tenant-name")
47     private String tenantName;
48
49     //properties for cloud-region node-type
50     @JsonProperty("cloud-region-id")
51     private String cloudRegionId;
52
53     private Map<String, String> additionalProperties = new HashMap<>();
54
55     public Properties(){}
56
57     public String getInterfaceName() {
58         return interfaceName;
59     }
60
61     public String getInterfaceId() {
62         return interfaceId;
63     }
64
65     public Boolean getIsPortMirrored() {
66         return isPortMirrored;
67     }
68
69     public String getTenantId() {
70         return tenantId;
71     }
72
73     public void setTenantId(String tenantId) {
74         this.tenantId = tenantId;
75     }
76
77     public String getTenantName() {
78         return tenantName;
79     }
80
81     public void setTenantName(String tenantName) {
82         this.tenantName = tenantName;
83     }
84
85     public String getCloudRegionId() {
86         return cloudRegionId;
87     }
88
89     public void setCloudRegionId(String cloudRegionId) {
90         this.cloudRegionId = cloudRegionId;
91     }
92
93     @JsonAnyGetter
94     public Map<String, String> getAdditionalProperties() {
95         return additionalProperties;
96     }
97
98     @JsonAnySetter
99     public void setAdditionalProperties(String name, String value) {
100         additionalProperties.put(name, value);
101     }
102 }