d4a6d65b78c246cc3ef3d582e1065186dc52fa17
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / openecomp / appc / flow / controller / interfaceData / VnfInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
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  * ============LICENSE_END=========================================================
19  */
20
21 //
22 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
23 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
24 // Any modifications to this file will be lost upon recompilation of the source schema. 
25 // Generated on: 2017.07.31 at 10:30:39 AM EDT 
26 //
27
28
29 package org.onap.appc.flow.controller.interfaceData;
30
31 import java.util.ArrayList;
32 import java.util.List;
33
34 import javax.xml.bind.annotation.XmlAccessType;
35 import javax.xml.bind.annotation.XmlAccessorType;
36 import javax.xml.bind.annotation.XmlElement;
37 import javax.xml.bind.annotation.XmlRootElement;
38 import javax.xml.bind.annotation.XmlType;
39
40 import com.fasterxml.jackson.annotation.JsonProperty;
41
42
43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "", propOrder = {
45     "vnfId",
46     "vnfName",
47     "vnfType",
48     "vm"
49 })
50 @XmlRootElement(name = "vnf-info")
51 public class VnfInfo {
52
53     @XmlElement(name = "vnf-id", required = true)
54     @JsonProperty("vnf-id")
55     protected String vnfId;
56     @XmlElement(name = "vnf-name", required = true)
57     @JsonProperty("vnf-name")
58     protected String vnfName;
59     @XmlElement(name = "vnf-type", required = true)
60     @JsonProperty("vnf-type")
61     protected String vnfType;
62     @JsonProperty("vm")
63     protected List<Vm> vm;
64
65     /**
66      * Gets the value of the vnfId property.
67      * 
68      * @return
69      *     possible object is
70      *     {@link String }
71      *     
72      */
73     public String getVnfId() {
74         return vnfId;
75     }
76
77     /**
78      * Sets the value of the vnfId property.
79      * 
80      * @param value
81      *     allowed object is
82      *     {@link String }
83      *     
84      */
85     public void setVnfId(String value) {
86         this.vnfId = value;
87     }
88
89     /**
90      * Gets the value of the vnfName property.
91      * 
92      * @return
93      *     possible object is
94      *     {@link String }
95      *     
96      */
97     public String getVnfName() {
98         return vnfName;
99     }
100
101     /**
102      * Sets the value of the vnfName property.
103      * 
104      * @param value
105      *     allowed object is
106      *     {@link String }
107      *     
108      */
109     public void setVnfName(String value) {
110         this.vnfName = value;
111     }
112
113     /**
114      * Gets the value of the vnfType property.
115      * 
116      * @return
117      *     possible object is
118      *     {@link String }
119      *     
120      */
121     public String getVnfType() {
122         return vnfType;
123     }
124
125     /**
126      * Sets the value of the vnfType property.
127      * 
128      * @param value
129      *     allowed object is
130      *     {@link String }
131      *     
132      */
133     public void setVnfType(String value) {
134         this.vnfType = value;
135     }
136
137     /**
138      * Gets the value of the vm property.
139      * 
140      * <p>
141      * This accessor method returns a reference to the live list,
142      * not a snapshot. Therefore any modification you make to the
143      * returned list will be present inside the JAXB object.
144      * This is why there is not a <CODE>set</CODE> method for the vm property.
145      * 
146      * <p>
147      * For example, to add a new item, do as follows:
148      * <pre>
149      *    getVm().add(newItem);
150      * </pre>
151      * 
152      * 
153      * <p>
154      * Objects of the following type(s) are allowed in the list
155      * {@link Vm }
156      * 
157      * 
158      */
159     public List<Vm> getVm() {
160         if (vm == null) {
161             vm = new ArrayList<Vm>();
162         }
163         return this.vm;
164     }
165
166     @Override
167     public String toString() {
168         return "VnfInfo [vnfId=" + vnfId + ", vnfName=" + vnfName
169                 + ", vnfType=" + vnfType + ", vm=" + vm + "]";
170     }
171
172 }