Use Java declarations instead of Google Collections
[netvirt.git] / vpnservice / natservice / natservice-impl / src / main / java / org / opendaylight / netvirt / 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.netvirt.natservice.internal;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived;
12
13 public class NAPTEntryEvent {
14     private String ipAddress;
15     private int portNumber;
16     private Long routerId;
17     private Operation op;
18     private Protocol protocol;
19     private PacketReceived packetReceived;
20     private boolean pktProcessed;
21
22     public PacketReceived getPacketReceived() {
23         return packetReceived;
24     }
25
26     public boolean isPktProcessed() {
27         return pktProcessed;
28     }
29
30     public String getIpAddress() {
31         return ipAddress;
32     }
33
34     public int getPortNumber() {
35         return portNumber;
36     }
37
38     public Long getRouterId() {
39         return routerId;
40     }
41
42     public Operation getOperation() {
43         return op;
44     }
45
46     public Protocol getProtocol() {
47         return protocol;
48     }
49
50     NAPTEntryEvent(String ipAddress, int portNumber, Long routerId, Operation op, Protocol protocol,
51                    PacketReceived packetReceived, boolean pktProcessed) {
52         this.ipAddress = ipAddress;
53         this.portNumber = portNumber;
54         this.routerId = routerId;
55         this.op = op;
56         this.protocol = protocol;
57         this.packetReceived = packetReceived;
58         this.pktProcessed = pktProcessed;
59     }
60
61     public enum Operation {
62         ADD, DELETE
63     }
64
65     public enum Protocol {
66         TCP, UDP
67     }
68 }