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