Fix OSGi wiring issues
[ccsdk/features.git] / blueprints-processor / plugin / model-provider / src / main / java / org / onap / ccsdk / config / model / data / ResourceAssignment.java
1 /*\r
2  * Copyright © 2017-2018 AT&T Intellectual Property.\r
3  * Modifications Copyright © 2018 IBM.\r
4  * \r
5  * Licensed under the Apache License, Version 2.0 (the "License");\r
6  * you may not use this file except in compliance with the License.\r
7  * You may obtain a copy of the License at\r
8  * \r
9  * http://www.apache.org/licenses/LICENSE-2.0\r
10  * \r
11  * Unless required by applicable law or agreed to in writing, software\r
12  * distributed under the License is distributed on an "AS IS" BASIS,\r
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14  * See the License for the specific language governing permissions and\r
15  * limitations under the License.\r
16  */\r
17 \r
18 package org.onap.ccsdk.config.model.data;\r
19 \r
20 import java.util.Date;\r
21 import java.util.List;\r
22 import com.fasterxml.jackson.annotation.JsonFormat;\r
23 import com.fasterxml.jackson.annotation.JsonProperty;\r
24 \r
25 /**\r
26  * ResourceAssignment.java Purpose: Provide ResourceAssignment Custom TOSCO Model POJO bean.\r
27  *\r
28  * @version 1.0\r
29  */\r
30 public class ResourceAssignment {\r
31 \r
32     private String name;\r
33 \r
34     @JsonProperty("property")\r
35     private PropertyDefinition property;\r
36 \r
37     @JsonProperty("input-param")\r
38     private Boolean inputParameter;\r
39 \r
40     @JsonProperty("dictionary-name")\r
41     private String dictionaryName;\r
42 \r
43     @JsonProperty("dictionary-source")\r
44     private String dictionarySource;\r
45 \r
46     @JsonProperty("dependencies")\r
47     private List<String> dependencies;\r
48 \r
49     @JsonProperty("version")\r
50     private int version;\r
51 \r
52     @JsonProperty("status")\r
53     private String status;\r
54 \r
55     @JsonProperty("message")\r
56     private String message;\r
57 \r
58     @JsonProperty("updated-date")\r
59     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy hh:mm:ss")\r
60     private Date updatedDate;\r
61 \r
62     @JsonProperty("updated-by")\r
63     private String updatedBy;\r
64 \r
65     @Override\r
66     public String toString() {\r
67         StringBuilder builder = new StringBuilder("[");\r
68         builder.append("name = " + name);\r
69         builder.append(", source = " + dictionarySource);\r
70         if (dependencies != null) {\r
71             builder.append(", dependencies = " + dependencies);\r
72         }\r
73         builder.append("]");\r
74         return builder.toString();\r
75     }\r
76 \r
77     public String getName() {\r
78         return name;\r
79     }\r
80 \r
81     public void setName(String name) {\r
82         this.name = name;\r
83     }\r
84 \r
85     public PropertyDefinition getProperty() {\r
86         return property;\r
87     }\r
88 \r
89     public void setProperty(PropertyDefinition property) {\r
90         this.property = property;\r
91     }\r
92 \r
93     public Boolean getInputParameter() {\r
94         return inputParameter;\r
95     }\r
96 \r
97     public void setInputParameter(Boolean inputParameter) {\r
98         this.inputParameter = inputParameter;\r
99     }\r
100 \r
101     public String getDictionaryName() {\r
102         return dictionaryName;\r
103     }\r
104 \r
105     public void setDictionaryName(String dictionaryName) {\r
106         this.dictionaryName = dictionaryName;\r
107     }\r
108 \r
109     public String getDictionarySource() {\r
110         return dictionarySource;\r
111     }\r
112 \r
113     public void setDictionarySource(String dictionarySource) {\r
114         this.dictionarySource = dictionarySource;\r
115     }\r
116 \r
117     public List<String> getDependencies() {\r
118         return dependencies;\r
119     }\r
120 \r
121     public void setDependencies(List<String> dependencies) {\r
122         this.dependencies = dependencies;\r
123     }\r
124 \r
125     public int getVersion() {\r
126         return version;\r
127     }\r
128 \r
129     public void setVersion(int version) {\r
130         this.version = version;\r
131     }\r
132 \r
133     public String getStatus() {\r
134         return status;\r
135     }\r
136 \r
137     public void setStatus(String status) {\r
138         this.status = status;\r
139     }\r
140 \r
141     public String getMessage() {\r
142         return message;\r
143     }\r
144 \r
145     public void setMessage(String message) {\r
146         this.message = message;\r
147     }\r
148 \r
149     public Date getUpdatedDate() {\r
150         return updatedDate;\r
151     }\r
152 \r
153     public void setUpdatedDate(Date updatedDate) {\r
154         this.updatedDate = updatedDate;\r
155     }\r
156 \r
157     public String getUpdatedBy() {\r
158         return updatedBy;\r
159     }\r
160 \r
161     public void setUpdatedBy(String updatedBy) {\r
162         this.updatedBy = updatedBy;\r
163     }\r
164 \r
165 }\r