aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/model/Properties.java
blob: 6fecbed53f082b82d6b77cb20bf191968dac5c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
    }
}