2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.vid.asdc.beans.tosca;
\r
23 import org.openecomp.sdc.toscaparser.api.elements.constraints.*;
\r
25 import java.util.List;
\r
26 import java.util.ArrayList;
\r
28 // TODO: Auto-generated Javadoc
\r
32 public class Input {
\r
35 private String type;
\r
37 /** The description. */
\r
38 private String description;
\r
41 private Object _default;
\r
43 /** The entry schema. */
\r
44 private Input entry_schema;
\r
46 /** The constraints */
\r
47 private List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
\r
49 /** The required field. If not set, the default is true */
\r
50 private boolean required = true;
\r
53 * Instantiates a new input.
\r
56 constraints = new ArrayList<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint>();
\r
64 public String getType() {
\r
71 * @param type the new type
\r
73 public void setType(String type) {
\r
77 * Gets the required field.
\r
79 * @return the required field
\r
81 public boolean getRequired() {
\r
85 * Sets the required value.
\r
87 * @param required the new required value
\r
89 public void setRequired(boolean required) {
\r
90 this.required = required;
\r
93 * Gets the description.
\r
95 * @return the description
\r
97 public String getDescription() {
\r
102 * Sets the description.
\r
104 * @param description the new description
\r
106 public void setDescription(String description) {
\r
107 this.description = description;
\r
111 * Gets the default.
\r
113 * @return the default
\r
115 public Object getDefault() {
\r
120 * Sets the default.
\r
122 * @param _default the new default
\r
124 public void setDefault(Object _default) {
\r
125 this._default = _default;
\r
129 * Gets the entry schema.
\r
131 * @return the entry schema
\r
133 public Input getentry_schema() {
\r
134 return entry_schema;
\r
137 * Sets the entry schema.
\r
139 * @param the entry schema
\r
141 public void setentry_schema(Input s) {
\r
142 this.entry_schema = s;
\r
145 * Sets the constraints.
\r
147 * @param c the new constraints
\r
149 public void setConstraints(List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> c) {
\r
150 this.constraints = c;
\r
153 * Gets the constraints
\r
155 * @return the constraints
\r
157 public List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
\r
158 return constraints;
\r
162 * @see java.lang.Object#toString()
\r
165 public String toString() {
\r
166 return "type=" + type + ",description=" + description + ",default=" + _default;
\r