2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.asdc.beans.tosca;
23 import org.onap.sdc.toscaparser.api.elements.constraints.*;
25 import java.util.List;
26 import java.util.ArrayList;
28 // TODO: Auto-generated Javadoc
37 /** The description. */
38 private String description;
41 private Object _default;
43 /** The entry schema. */
44 private Input entry_schema;
46 /** The constraints */
47 private List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
49 /** The required field. If not set, the default is true */
50 private boolean required = true;
52 /** Details the inputs template */
53 private String templateName;
54 private String templateUUID;
55 private String templateInvariantUUID;
56 private String templateCustomizationUUID;
59 * Instantiates a new input.
62 constraints = new ArrayList<org.onap.sdc.toscaparser.api.elements.constraints.Constraint>();
70 public String getType() {
77 * @param type the new type
79 public void setType(String type) {
83 * Gets the required field.
85 * @return the required field
87 public boolean getRequired() {
91 * Sets the required value.
93 * @param required the new required value
95 public void setRequired(boolean required) {
96 this.required = required;
99 * Gets the description.
101 * @return the description
103 public String getDescription() {
108 * Sets the description.
110 * @param description the new description
112 public void setDescription(String description) {
113 this.description = description;
119 * @return the default
121 public Object getDefault() {
128 * @param _default the new default
130 public void setDefault(Object _default) {
131 this._default = _default;
135 * Gets the entry schema.
137 * @return the entry schema
139 public Input getentry_schema() {
143 * Sets the entry schema.
145 * @param the entry schema
147 public void setentry_schema(Input s) {
148 this.entry_schema = s;
151 * Sets the constraints.
153 * @param c the new constraints
155 public void setConstraints(List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> c) {
156 this.constraints = c;
159 * Gets the constraints
161 * @return the constraints
163 public List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
168 * @see java.lang.Object#toString()
171 public String toString() {
172 return "type=" + type + ",description=" + description + ",default=" + _default;
175 public String getTemplateName() {
179 public void setTemplateName(String templateName) {
180 this.templateName = templateName;
183 public String getTemplateUUID() {
187 public void setTemplateUUID(String templateUUID) {
188 this.templateUUID = templateUUID;
191 public String getTemplateInvariantUUID() {
192 return templateInvariantUUID;
195 public void setTemplateInvariantUUID(String templateInvariantUUID) {
196 this.templateInvariantUUID = templateInvariantUUID;
199 public String getTemplateCustomizationUUID() {
200 return templateCustomizationUUID;
203 public void setTemplateCustomizationUUID(String templateCustomizationUUID) {
204 this.templateCustomizationUUID = templateCustomizationUUID;