ee21c109c02b41b008782bb74c460899e0852aa2
[appc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * =============================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
20  * ============LICENSE_END=========================================================
21  */
22 //
23 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
24 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
25 // Any modifications to this file will be lost upon recompilation of the source schema.
26 // Generated on: 2017.07.31 at 10:30:39 AM EDT
27 //
28
29
30 package org.onap.appc.flow.controller.interfaceData;
31
32 import java.util.ArrayList;
33 import java.util.List;
34
35 import javax.xml.bind.annotation.XmlAccessType;
36 import javax.xml.bind.annotation.XmlAccessorType;
37 import javax.xml.bind.annotation.XmlElement;
38 import javax.xml.bind.annotation.XmlRootElement;
39 import javax.xml.bind.annotation.XmlType;
40
41 import com.fasterxml.jackson.annotation.JsonProperty;
42
43
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "", propOrder = {
46     "vnfId",
47     "vnfName",
48     "vnfType",
49     "vm"
50 })
51 @XmlRootElement(name = "vnf-info")
52 public class VnfInfo {
53
54     @XmlElement(name = "vnf-id", required = true)
55     @JsonProperty("vnf-id")
56     protected String vnfId;
57     @XmlElement(name = "vnf-name", required = true)
58     @JsonProperty("vnf-name")
59     protected String vnfName;
60     @XmlElement(name = "vnf-type", required = true)
61     @JsonProperty("vnf-type")
62     protected String vnfType;
63     @JsonProperty("vm")
64     protected List<Vm> vm;
65
66     /**
67      * Gets the value of the vnfId property.
68      *
69      * @return
70      *     possible object is
71      *     {@link String }
72      *
73      */
74     public String getVnfId() {
75         return vnfId;
76     }
77
78     /**
79      * Sets the value of the vnfId property.
80      *
81      * @param value
82      *     allowed object is
83      *     {@link String }
84      *
85      */
86     public void setVnfId(String value) {
87         this.vnfId = value;
88     }
89
90     /**
91      * Gets the value of the vnfName property.
92      *
93      * @return
94      *     possible object is
95      *     {@link String }
96      *
97      */
98     public String getVnfName() {
99         return vnfName;
100     }
101
102     /**
103      * Sets the value of the vnfName property.
104      *
105      * @param value
106      *     allowed object is
107      *     {@link String }
108      *
109      */
110     public void setVnfName(String value) {
111         this.vnfName = value;
112     }
113
114     /**
115      * Gets the value of the vnfType property.
116      *
117      * @return
118      *     possible object is
119      *     {@link String }
120      *
121      */
122     public String getVnfType() {
123         return vnfType;
124     }
125
126     /**
127      * Sets the value of the vnfType property.
128      *
129      * @param value
130      *     allowed object is
131      *     {@link String }
132      *
133      */
134     public void setVnfType(String value) {
135         this.vnfType = value;
136     }
137
138     /**
139      * Gets the value of the vm property.
140      *
141      * <p>
142      * This accessor method returns a reference to the live list,
143      * not a snapshot. Therefore any modification you make to the
144      * returned list will be present inside the JAXB object.
145      * This is why there is not a <CODE>set</CODE> method for the vm property.
146      *
147      * <p>
148      * For example, to add a new item, do as follows:
149      * <pre>
150      *    getVm().add(newItem);
151      * </pre>
152      *
153      *
154      * <p>
155      * Objects of the following type(s) are allowed in the list
156      * {@link Vm }
157      *
158      *
159      */
160     public List<Vm> getVm() {
161         if (vm == null) {
162             vm = new ArrayList<Vm>();
163         }
164         return this.vm;
165     }
166
167     @Override
168     public String toString() {
169         return "VnfInfo [vnfId=" + vnfId + ", vnfName=" + vnfName
170                 + ", vnfType=" + vnfType + ", vm=" + vm + "]";
171     }
172
173 }