bp-gen code clone from cli repo
[dcaegen2/platform.git] / mod / bpgenerator / src / main / java / org / onap / blueprintgenerator / models / componentspec / Parameters.java
1 /**============LICENSE_START======================================================= 
2  org.onap.dcae 
3  ================================================================================ 
4  Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. 
5  ================================================================================ 
6  Licensed under the Apache License, Version 2.0 (the "License"); 
7  you may not use this file except in compliance with the License. 
8  You may obtain a copy of the License at 
9  
10       http://www.apache.org/licenses/LICENSE-2.0 
11  
12  Unless required by applicable law or agreed to in writing, software 
13  distributed under the License is distributed on an "AS IS" BASIS, 
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15  See the License for the specific language governing permissions and 
16  limitations under the License. 
17  ============LICENSE_END========================================================= 
18  
19  */
20
21 package org.onap.blueprintgenerator.models.componentspec;
22
23 import java.util.ArrayList;
24
25
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 import com.fasterxml.jackson.annotation.JsonInclude;
28 import com.fasterxml.jackson.annotation.JsonInclude.Include;
29
30 import lombok.AllArgsConstructor;
31 import lombok.Builder;
32 import lombok.Getter; import lombok.Setter;
33 import lombok.NoArgsConstructor;
34
35 // TODO: Auto-generated Javadoc
36 /**
37  * The Class Parameters.
38  */
39 @JsonIgnoreProperties(ignoreUnknown = true)
40
41 /* (non-Javadoc)
42  * @see java.lang.Object#toString()
43  */
44 @Getter @Setter
45
46 /* (non-Javadoc)
47  * @see java.lang.Object#toString()
48  */
49 /**
50  * Instantiates a new parameters.
51  */
52 @NoArgsConstructor
53
54 /**
55  * Instantiates a new parameters.
56  *
57  * @param name the name
58  * @param value the value
59  * @param description the description
60  * @param sourced_at_deployment the sourced at deployment
61  * @param designer_editable the designer editable
62  * @param policy_editable the policy editable
63  * @param required the required
64  * @param type the type
65  * @param policy_group the policy group
66  * @param policy_schema the policy schema
67  * @param entry_schema the entry schema
68  * @param constraints the constraints
69  */
70 @JsonInclude(value=Include.NON_NULL)
71 //Called in component Spec Object
72 public class Parameters {
73         
74         /** The name. */
75         private String name;
76         
77         /** The value. */
78         private Object value;
79         
80         /** The description. */
81         private String description;
82         
83         /** The sourced at deployment. */
84         private boolean sourced_at_deployment;
85         
86         /** The designer editable. */
87         private boolean designer_editable;
88         
89         /** The policy editable. */
90         private boolean policy_editable;
91         
92         /** The required. */
93         private boolean required;
94         
95         /** The type. */
96         private String type;
97         
98         /** The policy group. */
99         private String policy_group;
100         
101         /** The policy schema. */
102         private PolicySchemaObj[] policy_schema;
103         
104         /** The entry schema. */
105         private EntrySchemaObj[] entry_schema;
106         
107         /** The constraints. */
108         private ConstraintsObj[] constraints;
109 }