aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java
new file mode 100644
index 00000000..6fecbed5
--- /dev/null
+++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java
@@ -0,0 +1,33 @@
+package org.onap.vid.aai.model;
+
+import org.codehaus.jackson.annotate.JsonIgnoreProperties;
+import org.codehaus.jackson.annotate.JsonProperty;
+
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Properties {
+
+ private final String interfaceName;
+ private final String interfaceId;
+ private final Boolean isPortMirrored;
+
+ public Properties(
+ @JsonProperty("interface-name") String interfaceName,
+ @JsonProperty("interface-id") String interfaceId,
+ @JsonProperty("is-port-mirrored") Boolean isPortMirrored) {
+ this.interfaceName = interfaceName;
+ this.interfaceId = interfaceId;
+ this.isPortMirrored = isPortMirrored;
+ }
+
+ public String getInterfaceName() {
+ return interfaceName;
+ }
+
+ public String getInterfaceId() {
+ return interfaceId;
+ }
+
+ public Boolean getIsPortMirrored() {
+ return isPortMirrored;
+ }
+}