org.onap migration
[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.openecomp.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.openecomp.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         /**
53          * Instantiates a new input.
54          */
55         public Input() {
56                 constraints = new ArrayList<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint>();
57         }
58         
59         /**
60          * Gets the type.
61          *
62          * @return the type
63          */
64         public String getType() {
65                 return type;
66         }
67         
68         /**
69          * Sets the type.
70          *
71          * @param type the new type
72          */
73         public void setType(String type) {
74                 this.type = type;
75         }
76         /**
77          * Gets the required field.
78          *
79          * @return the required field
80          */
81         public boolean getRequired() {
82                 return required;
83         }
84         /**
85          * Sets the required value.
86          *
87          * @param required the new required value
88          */
89         public void setRequired(boolean required) {
90                 this.required = required;
91         }
92         /**
93          * Gets the description.
94          *
95          * @return the description
96          */
97         public String getDescription() {
98                 return description;
99         }
100         
101         /**
102          * Sets the description.
103          *
104          * @param description the new description
105          */
106         public void setDescription(String description) {
107                 this.description = description;
108         }
109         
110         /**
111          * Gets the default.
112          *
113          * @return the default
114          */
115         public Object getDefault() {
116                 return _default;
117         }
118         
119         /**
120          * Sets the default.
121          *
122          * @param _default the new default
123          */
124         public void setDefault(Object _default) {
125                 this._default = _default;
126         }
127         
128         /**
129          * Gets the entry schema.
130          *
131          * @return the entry schema
132          */
133         public Input getentry_schema() {
134                 return entry_schema;
135         }
136         /**
137          * Sets the entry schema.
138          *
139          * @param the entry schema
140          */
141         public void setentry_schema(Input s) {
142                 this.entry_schema = s;
143         }
144         /**
145          * Sets the constraints.
146          *
147          * @param c the new constraints
148          */
149         public void setConstraints(List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> c) {
150                 this.constraints = c;
151         }
152         /**
153          * Gets the constraints
154          *
155          * @return the constraints
156          */
157         public List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
158                 return constraints;
159         }
160         
161         /* (non-Javadoc)
162          * @see java.lang.Object#toString()
163          */
164         @Override
165         public String toString() {
166                 return "type=" + type + ",description=" + description + ",default=" + _default;
167         }
168 }