Merge "Natservice module bug fixes"
[vpnservice.git] / natservice / natservice-impl / src / main / java / org / opendaylight / vpnservice / natservice / internal / NAPTEntryEvent.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.vpnservice.natservice.internal;
10
11
12 public class NAPTEntryEvent {
13     private String ipAddress;
14     private int portNumber;
15     private Long routerId;
16     private Operation op;
17     private Protocol protocol;
18
19     public String getIpAddress() {
20         return ipAddress;
21     }
22
23     public int getPortNumber() {
24         return portNumber;
25     }
26
27     public Long getRouterId() {
28         return routerId;
29     }
30
31     public Operation getOperation() {
32         return op;
33     }
34
35     public Protocol getProtocol() {
36         return protocol;
37     }
38
39     NAPTEntryEvent(String ipAddress, int portNumber, Long routerId, Operation op, Protocol protocol){
40         this.ipAddress = ipAddress;
41         this.portNumber = portNumber;
42         this.routerId = routerId;
43         this.op = op;
44         this.protocol = protocol;
45     }
46
47     public enum Operation{
48         ADD, DELETE;
49     }
50
51     public enum Protocol{
52         TCP, UDP;
53     }
54 }