+++ /dev/null
-/*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\r
- * \r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- * \r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- * \r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-package org.onap.ccsdk.features.model.data;\r
-\r
-import java.util.Date;\r
-import java.util.List;\r
-import com.fasterxml.jackson.annotation.JsonFormat;\r
-import com.fasterxml.jackson.annotation.JsonProperty;\r
-\r
-/**\r
- * ResourceAssignment.java Purpose: Provide ResourceAssignment Custom TOSCO Model POJO bean.\r
- *\r
- * @version 1.0\r
- */\r
-public class ResourceAssignment {\r
-\r
- private String name;\r
-\r
- @JsonProperty("property")\r
- private PropertyDefinition property;\r
-\r
- @JsonProperty("input-param")\r
- private Boolean inputParameter;\r
-\r
- @JsonProperty("dictionary-name")\r
- private String dictionaryName;\r
-\r
- @JsonProperty("dictionary-source")\r
- private String dictionarySource;\r
-\r
- @JsonProperty("dependencies")\r
- private List<String> dependencies;\r
-\r
- @JsonProperty("version")\r
- private int version;\r
-\r
- @JsonProperty("status")\r
- private String status;\r
-\r
- @JsonProperty("message")\r
- private String message;\r
-\r
- @JsonProperty("updated-date")\r
- @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")\r
- private Date updatedDate;\r
-\r
- @JsonProperty("updated-by")\r
- private String updatedBy;\r
-\r
- @Override\r
- public String toString() {\r
- StringBuilder builder = new StringBuilder("[");\r
- builder.append("name = " + name);\r
- builder.append(", source = " + dictionarySource);\r
- if (dependencies != null) {\r
- builder.append(", dependencies = " + dependencies);\r
- }\r
- builder.append("]");\r
- return builder.toString();\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public PropertyDefinition getProperty() {\r
- return property;\r
- }\r
-\r
- public void setProperty(PropertyDefinition property) {\r
- this.property = property;\r
- }\r
-\r
- public Boolean getInputParameter() {\r
- return inputParameter;\r
- }\r
-\r
- public void setInputParameter(Boolean inputParameter) {\r
- this.inputParameter = inputParameter;\r
- }\r
-\r
- public String getDictionaryName() {\r
- return dictionaryName;\r
- }\r
-\r
- public void setDictionaryName(String dictionaryName) {\r
- this.dictionaryName = dictionaryName;\r
- }\r
-\r
- public String getDictionarySource() {\r
- return dictionarySource;\r
- }\r
-\r
- public void setDictionarySource(String dictionarySource) {\r
- this.dictionarySource = dictionarySource;\r
- }\r
-\r
- public List<String> getDependencies() {\r
- return dependencies;\r
- }\r
-\r
- public void setDependencies(List<String> dependencies) {\r
- this.dependencies = dependencies;\r
- }\r
-\r
- public int getVersion() {\r
- return version;\r
- }\r
-\r
- public void setVersion(int version) {\r
- this.version = version;\r
- }\r
-\r
- public String getStatus() {\r
- return status;\r
- }\r
-\r
- public void setStatus(String status) {\r
- this.status = status;\r
- }\r
-\r
- public String getMessage() {\r
- return message;\r
- }\r
-\r
- public void setMessage(String message) {\r
- this.message = message;\r
- }\r
-\r
- public Date getUpdatedDate() {\r
- return updatedDate;\r
- }\r
-\r
- public void setUpdatedDate(Date updatedDate) {\r
- this.updatedDate = updatedDate;\r
- }\r
-\r
- public String getUpdatedBy() {\r
- return updatedBy;\r
- }\r
-\r
- public void setUpdatedBy(String updatedBy) {\r
- this.updatedBy = updatedBy;\r
- }\r
-\r
-}\r