4045483ec5ba7e16a5838657084080b1eec82dea
[ccsdk/sli.git] /
1 package org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110;
2 import org.opendaylight.yangtools.yang.binding.DataObject;
3 import org.opendaylight.yangtools.yang.common.QName;
4 import java.util.List;
5 import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.execute.graph.input.SliParameter;
6 import org.opendaylight.yangtools.yang.binding.Augmentable;
7
8 /**
9  * <p>This class represents the following YANG schema fragment defined in module <b>SLI-API</b>
10  * <pre>
11  * container input {
12  *     leaf module-name {
13  *         type string;
14  *     }
15  *     leaf rpc-name {
16  *         type string;
17  *     }
18  *     leaf mode {
19  *         type enumeration;
20  *     }
21  *     list sli-parameter {
22  *         key "parameter-name"
23  *         leaf parameter-name {
24  *             type string;
25  *         }
26  *         leaf int-value {
27  *             type int32;
28  *         }
29  *         leaf string-value {
30  *             type string;
31  *         }
32  *         leaf boolean-value {
33  *             type boolean;
34  *         }
35  *         uses parameter-setting;
36  *     }
37  * }
38  * </pre>
39  * The schema path to identify an instance is
40  * <i>SLI-API/execute-graph/input</i>
41  *
42  * <p>To create instances of this class use {@link org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.ExecuteGraphInputBuilder}.
43  * @see org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.ExecuteGraphInputBuilder
44  *
45  */
46 public interface ExecuteGraphInput
47     extends
48     DataObject,
49     Augmentable<org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.ExecuteGraphInput>
50 {
51
52
53     public enum Mode {
54         Sync(0, "sync"),
55         
56         Async(1, "async")
57         ;
58     
59     
60         java.lang.String name;
61         int value;
62         private static final java.util.Map<java.lang.Integer, Mode> VALUE_MAP;
63     
64         static {
65             final com.google.common.collect.ImmutableMap.Builder<java.lang.Integer, Mode> b = com.google.common.collect.ImmutableMap.builder();
66             for (Mode enumItem : Mode.values())
67             {
68                 b.put(enumItem.value, enumItem);
69             }
70     
71             VALUE_MAP = b.build();
72         }
73     
74         private Mode(int value, java.lang.String name) {
75             this.value = value;
76             this.name = name;
77         }
78     
79         /**
80          * Returns the name of the enumeration item as it is specified in the input yang.
81          *
82          * @return the name of the enumeration item as it is specified in the input yang
83          */
84         public java.lang.String getName() {
85             return name;
86         }
87     
88         /**
89          * @return integer value
90          */
91         public int getIntValue() {
92             return value;
93         }
94     
95         /**
96          * @param valueArg
97          * @return corresponding Mode item
98          */
99         public static Mode forValue(int valueArg) {
100             return VALUE_MAP.get(valueArg);
101         }
102     }
103
104     public static final QName QNAME = org.opendaylight.yangtools.yang.common.QName.create("org:onap:ccsdk:sli:core:sliapi",
105         "2016-11-10", "input").intern();
106
107     /**
108      * @return <code>java.lang.String</code> <code>moduleName</code>, or <code>null</code> if not present
109      */
110     java.lang.String getModuleName();
111     
112     /**
113      * @return <code>java.lang.String</code> <code>rpcName</code>, or <code>null</code> if not present
114      */
115     java.lang.String getRpcName();
116     
117     /**
118      * @return <code>org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.ExecuteGraphInput.Mode</code> <code>mode</code>, or <code>null</code> if not present
119      */
120     Mode getMode();
121     
122     /**
123      * @return <code>java.util.List</code> <code>sliParameter</code>, or <code>null</code> if not present
124      */
125     List<SliParameter> getSliParameter();
126
127 }
128