2 * Copyright © 2017-2018 AT&T Intellectual Property.
\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
8 * http://www.apache.org/licenses/LICENSE-2.0
\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
17 package org.onap.ccsdk.apps.controllerblueprints.resource.dict;
\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
23 import java.util.Date;
\r
24 import java.util.List;
\r
27 * ResourceAssignment.java Purpose: Provide ResourceAssignment Custom TOSCO Model POJO bean.
\r
29 * @author Brinda Santh
\r
32 public class ResourceAssignment {
\r
34 private String name;
\r
36 @JsonProperty("property")
\r
37 private PropertyDefinition property;
\r
39 @JsonProperty("input-param")
\r
40 private Boolean inputParameter;
\r
42 @JsonProperty("dictionary-name")
\r
43 private String dictionaryName;
\r
45 @JsonProperty("dictionary-source")
\r
46 private String dictionarySource;
\r
48 @JsonProperty("dependencies")
\r
49 private List<String> dependencies;
\r
51 @JsonProperty("version")
\r
52 private int version;
\r
54 @JsonProperty("status")
\r
55 private String status;
\r
57 @JsonProperty("message")
\r
58 private String message;
\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
64 @JsonProperty("updated-by")
\r
65 private String updatedBy;
\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
75 builder.append("]");
\r
76 return builder.toString();
\r
79 public String getName() {
\r
83 public void setName(String name) {
\r
87 public PropertyDefinition getProperty() {
\r
91 public void setProperty(PropertyDefinition property) {
\r
92 this.property = property;
\r
95 public Boolean getInputParameter() {
\r
96 return inputParameter;
\r
99 public void setInputParameter(Boolean inputParameter) {
\r
100 this.inputParameter = inputParameter;
\r
103 public String getDictionaryName() {
\r
104 return dictionaryName;
\r
107 public void setDictionaryName(String dictionaryName) {
\r
108 this.dictionaryName = dictionaryName;
\r
111 public String getDictionarySource() {
\r
112 return dictionarySource;
\r
115 public void setDictionarySource(String dictionarySource) {
\r
116 this.dictionarySource = dictionarySource;
\r
119 public List<String> getDependencies() {
\r
120 return dependencies;
\r
123 public void setDependencies(List<String> dependencies) {
\r
124 this.dependencies = dependencies;
\r
127 public int getVersion() {
\r
131 public void setVersion(int version) {
\r
132 this.version = version;
\r
135 public String getStatus() {
\r
139 public void setStatus(String status) {
\r
140 this.status = status;
\r
143 public String getMessage() {
\r
147 public void setMessage(String message) {
\r
148 this.message = message;
\r
151 public Date getUpdatedDate() {
\r
152 return updatedDate;
\r
155 public void setUpdatedDate(Date updatedDate) {
\r
156 this.updatedDate = updatedDate;
\r
159 public String getUpdatedBy() {
\r
163 public void setUpdatedBy(String updatedBy) {
\r
164 this.updatedBy = updatedBy;
\r