fix imports after model update in honeycomb/VBD
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / commands / lisp / dom / HmacKeyDom.java
1 /*
2  * Copyright (c) 2017 Cisco Systems. 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.renderer.vpp.commands.lisp.dom;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.HmacKeyType;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.hmac.key.grouping.HmacKey;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.hmac.key.grouping.HmacKeyBuilder;
14
15 /**
16  * Created by Shakib Ahmed on 3/21/17.
17  */
18 public class HmacKeyDom implements CommandModel {
19
20     private HmacKeyType keyType;
21     private String key;
22
23     public HmacKeyType getKeyType() {
24         return keyType;
25     }
26
27     public void setKeyType(HmacKeyType keyType) {
28         this.keyType = keyType;
29     }
30
31     public String getKey() {
32         return key;
33     }
34
35     public void setKey(String key) {
36         this.key = key;
37     }
38
39     @Override
40     public HmacKey getSALObject() {
41         return new HmacKeyBuilder()
42                     .setKeyType(keyType)
43                     .setKey(key).build();
44     }
45 }