6b2f39ecaac395cef1ac0c1481a7362788b5a605
[vid.git] / vid-app-common / src / main / java / org / onap / vid / asdc / beans / tosca / Input.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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 package org.onap.vid.asdc.beans.tosca;
22
23 import org.onap.sdc.toscaparser.api.elements.constraints.*;
24
25 import java.util.List;
26 import java.util.ArrayList;
27
28 // TODO: Auto-generated Javadoc
29 /**
30  * The Class Input.
31  */
32 public class Input {
33
34         /** The type. */
35         private String type;
36         
37         /** The description. */
38         private String description;
39         
40         /** The default. */
41         private Object _default;
42         
43         /** The entry schema. */
44         private Input entry_schema;
45         
46         /** The constraints */
47         private List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
48         
49         /** The required field. If not set, the default is true */
50         private boolean required = true;
51         
52         /** Details the inputs template */
53         private String templateName;
54         private String templateUUID;
55         private String templateInvariantUUID;
56         private String templateCustomizationUUID;
57         
58         /**
59          * Instantiates a new input.
60          */
61         public Input() {
62                 constraints = new ArrayList<org.onap.sdc.toscaparser.api.elements.constraints.Constraint>();
63         }
64         
65         /**
66          * Gets the type.
67          *
68          * @return the type
69          */
70         public String getType() {
71                 return type;
72         }
73         
74         /**
75          * Sets the type.
76          *
77          * @param type the new type
78          */
79         public void setType(String type) {
80                 this.type = type;
81         }
82         /**
83          * Gets the required field.
84          *
85          * @return the required field
86          */
87         public boolean getRequired() {
88                 return required;
89         }
90         /**
91          * Sets the required value.
92          *
93          * @param required the new required value
94          */
95         public void setRequired(boolean required) {
96                 this.required = required;
97         }
98         /**
99          * Gets the description.
100          *
101          * @return the description
102          */
103         public String getDescription() {
104                 return description;
105         }
106         
107         /**
108          * Sets the description.
109          *
110          * @param description the new description
111          */
112         public void setDescription(String description) {
113                 this.description = description;
114         }
115         
116         /**
117          * Gets the default.
118          *
119          * @return the default
120          */
121         public Object getDefault() {
122                 return _default;
123         }
124         
125         /**
126          * Sets the default.
127          *
128          * @param _default the new default
129          */
130         public void setDefault(Object _default) {
131                 this._default = _default;
132         }
133         
134         /**
135          * Gets the entry schema.
136          *
137          * @return the entry schema
138          */
139         public Input getentry_schema() {
140                 return entry_schema;
141         }
142         /**
143          * Sets the entry schema.
144          *
145          * @param the entry schema
146          */
147         public void setentry_schema(Input s) {
148                 this.entry_schema = s;
149         }
150         /**
151          * Sets the constraints.
152          *
153          * @param c the new constraints
154          */
155         public void setConstraints(List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> c) {
156                 this.constraints = c;
157         }
158         /**
159          * Gets the constraints
160          *
161          * @return the constraints
162          */
163         public List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
164                 return constraints;
165         }
166         
167         /* (non-Javadoc)
168          * @see java.lang.Object#toString()
169          */
170         @Override
171         public String toString() {
172                 return "type=" + type + ",description=" + description + ",default=" + _default;
173         }
174
175     public String getTemplateName() {
176         return templateName;
177     }
178
179     public void setTemplateName(String templateName) {
180         this.templateName = templateName;
181     }
182
183     public String getTemplateUUID() {
184         return templateUUID;
185     }
186
187     public void setTemplateUUID(String templateUUID) {
188         this.templateUUID = templateUUID;
189     }
190
191     public String getTemplateInvariantUUID() {
192         return templateInvariantUUID;
193     }
194
195     public void setTemplateInvariantUUID(String templateInvariantUUID) {
196         this.templateInvariantUUID = templateInvariantUUID;
197     }
198
199     public String getTemplateCustomizationUUID() {
200         return templateCustomizationUUID;
201     }
202
203     public void setTemplateCustomizationUUID(String templateCustomizationUUID) {
204         this.templateCustomizationUUID = templateCustomizationUUID;
205     }
206 }