2 * ============LICENSE_START=======================================================
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
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.vid.aai.model;
23 import com.fasterxml.jackson.annotation.JsonAnyGetter;
24 import com.fasterxml.jackson.annotation.JsonAnySetter;
25 import com.fasterxml.jackson.annotation.JsonProperty;
27 import java.util.HashMap;
30 public class Properties {
32 //properties for l-interface node-type
33 @JsonProperty("interface-name")
34 private String interfaceName;
36 @JsonProperty("interface-id")
37 private String interfaceId;
39 @JsonProperty("is-port-mirrored")
40 private Boolean isPortMirrored;
42 //properties for tenant node-type
43 @JsonProperty("tenant-id")
44 private String tenantId;
46 @JsonProperty("tenant-name")
47 private String tenantName;
49 //properties for cloud-region node-type
50 @JsonProperty("cloud-region-id")
51 private String cloudRegionId;
53 private Map<String, String> additionalProperties = new HashMap<>();
57 public String getInterfaceName() {
61 public String getInterfaceId() {
65 public Boolean getIsPortMirrored() {
66 return isPortMirrored;
69 public String getTenantId() {
73 public void setTenantId(String tenantId) {
74 this.tenantId = tenantId;
77 public String getTenantName() {
81 public void setTenantName(String tenantName) {
82 this.tenantName = tenantName;
85 public String getCloudRegionId() {
89 public void setCloudRegionId(String cloudRegionId) {
90 this.cloudRegionId = cloudRegionId;
94 public Map<String, String> getAdditionalProperties() {
95 return additionalProperties;
99 public void setAdditionalProperties(String name, String value) {
100 additionalProperties.put(name, value);