BUG-6650: ep-sgt/ip, propose initial sxp-ep-provider
[groupbasedpolicy.git] / sxp-integration / groupbasedpolicy-ise-adapter / src / main / java / org / opendaylight / groupbasedpolicy / gbp_ise_adapter / impl / SgtInfo.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.groupbasedpolicy.gbp_ise_adapter.impl;
10
11 import javax.annotation.Nonnull;
12 import javax.annotation.Nullable;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.database.rev160308.Sgt;
14
15 /**
16  * Purpose: simple holder for {@link Sgt} and name
17  */
18 public class SgtInfo {
19
20     private final Sgt sgt;
21     private final String name;
22
23     /**
24      * @param sgt  value to hold
25      * @param name value to hold
26      */
27     public SgtInfo(@Nonnull final Sgt sgt, @Nullable final String name) {
28         this.sgt = sgt;
29         this.name = name;
30     }
31
32     /**
33      * @return sgt
34      */
35     public Sgt getSgt() {
36         return sgt;
37     }
38
39     /**
40      * @return name associated to sgt
41      */
42     public String getName() {
43         return name;
44     }
45 }