2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
3 * Modifications Copyright © 2018 IBM.
\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
9 * http://www.apache.org/licenses/LICENSE-2.0
\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
18 package org.onap.ccsdk.features.model.data;
\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
26 * ResourceAssignment.java Purpose: Provide ResourceAssignment Custom TOSCO Model POJO bean.
\r
30 public class ResourceAssignment {
\r
32 private String name;
\r
34 @JsonProperty("property")
\r
35 private PropertyDefinition property;
\r
37 @JsonProperty("input-param")
\r
38 private Boolean inputParameter;
\r
40 @JsonProperty("dictionary-name")
\r
41 private String dictionaryName;
\r
43 @JsonProperty("dictionary-source")
\r
44 private String dictionarySource;
\r
46 @JsonProperty("dependencies")
\r
47 private List<String> dependencies;
\r
49 @JsonProperty("version")
\r
50 private int version;
\r
52 @JsonProperty("status")
\r
53 private String status;
\r
55 @JsonProperty("message")
\r
56 private String message;
\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
62 @JsonProperty("updated-by")
\r
63 private String updatedBy;
\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
73 builder.append("]");
\r
74 return builder.toString();
\r
77 public String getName() {
\r
81 public void setName(String name) {
\r
85 public PropertyDefinition getProperty() {
\r
89 public void setProperty(PropertyDefinition property) {
\r
90 this.property = property;
\r
93 public Boolean getInputParameter() {
\r
94 return inputParameter;
\r
97 public void setInputParameter(Boolean inputParameter) {
\r
98 this.inputParameter = inputParameter;
\r
101 public String getDictionaryName() {
\r
102 return dictionaryName;
\r
105 public void setDictionaryName(String dictionaryName) {
\r
106 this.dictionaryName = dictionaryName;
\r
109 public String getDictionarySource() {
\r
110 return dictionarySource;
\r
113 public void setDictionarySource(String dictionarySource) {
\r
114 this.dictionarySource = dictionarySource;
\r
117 public List<String> getDependencies() {
\r
118 return dependencies;
\r
121 public void setDependencies(List<String> dependencies) {
\r
122 this.dependencies = dependencies;
\r
125 public int getVersion() {
\r
129 public void setVersion(int version) {
\r
130 this.version = version;
\r
133 public String getStatus() {
\r
137 public void setStatus(String status) {
\r
138 this.status = status;
\r
141 public String getMessage() {
\r
145 public void setMessage(String message) {
\r
146 this.message = message;
\r
149 public Date getUpdatedDate() {
\r
150 return updatedDate;
\r
153 public void setUpdatedDate(Date updatedDate) {
\r
154 this.updatedDate = updatedDate;
\r
157 public String getUpdatedBy() {
\r
161 public void setUpdatedBy(String updatedBy) {
\r
162 this.updatedBy = updatedBy;
\r