BUG-6858: adapt to ise api, wire harvestAll to template-provider
[groupbasedpolicy.git] / sxp-integration / sxp-ise-adapter / src / main / java / org / opendaylight / groupbasedpolicy / sxp_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.sxp_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     private final String uuid;
23
24     /**
25      * @param sgt  value to hold
26      * @param name value to hold
27      * @param uuid
28      */
29     public SgtInfo(@Nonnull final Sgt sgt, @Nullable final String name, final String uuid) {
30         this.sgt = sgt;
31         this.name = name;
32         this.uuid = uuid;
33     }
34
35     /**
36      * @return sgt
37      */
38     public Sgt getSgt() {
39         return sgt;
40     }
41
42     /**
43      * @return name associated to sgt
44      */
45     public String getName() {
46         return name;
47     }
48
49     /**
50      * @return uuid of sgt
51      */
52     public String getUuid() {
53         return uuid;
54     }
55 }