2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.components.distribution.engine;
23 import java.util.List;
25 import org.openecomp.sdc.be.model.ComponentInstance;
27 public class JsonContainerResourceInstance {
28 private String resourceInstanceName, resourceName, resourceVersion, resoucreType, resourceUUID, resourceInvariantUUID, resourceCustomizationUUID, category, subcategory;
29 private List<ArtifactInfoImpl> artifacts;
31 public JsonContainerResourceInstance(ComponentInstance resourceInstance, String resourceType, List<ArtifactInfoImpl> artifacts) {
33 this.resourceInstanceName = resourceInstance.getName();
34 this.resourceName = resourceInstance.getComponentName();
35 this.resourceVersion = resourceInstance.getComponentVersion();
36 this.resoucreType = resourceType;
37 this.resourceUUID = resourceInstance.getComponentUid();
38 this.artifacts = artifacts;
39 this.resourceCustomizationUUID = resourceInstance.getCustomizationUUID();
42 public String getResourceInstanceName() {
43 return resourceInstanceName;
46 public void setResourceInstanceName(String resourceInstanceName) {
47 this.resourceInstanceName = resourceInstanceName;
50 public String getResourceName() {
54 public void setResourceName(String resourceName) {
55 this.resourceName = resourceName;
58 public String getResourceVersion() {
59 return resourceVersion;
62 public void setResourceVersion(String resourceVersion) {
63 this.resourceVersion = resourceVersion;
66 public String getResoucreType() {
70 public void setResoucreType(String resoucreType) {
71 this.resoucreType = resoucreType;
74 public String getResourceUUID() {
78 public void setResourceUUID(String resourceUUID) {
79 this.resourceUUID = resourceUUID;
82 public List<ArtifactInfoImpl> getArtifacts() {
86 public void setArtifacts(List<ArtifactInfoImpl> artifacts) {
87 this.artifacts = artifacts;
90 public String getResourceInvariantUUID() {
91 return resourceInvariantUUID;
94 public void setResourceInvariantUUID(String resourceInvariantUUID) {
95 this.resourceInvariantUUID = resourceInvariantUUID;
98 public String getResourceCustomizationUUID() {
99 return resourceCustomizationUUID;
102 public void setResourceCustomizationUUID(String customizationUUID) {
103 this.resourceCustomizationUUID = customizationUUID;
106 public String getCategory() {
110 public void setCategory(String category) {
111 this.category = category;
114 public String getSubcategory() {
118 public void setSubcategory(String subcategory) {
119 this.subcategory = subcategory;
123 public String toString() {
124 return "JsonContainerResourceInstance [resourceInstanceName=" + resourceInstanceName + ", resourceName=" + resourceName + ", resourceVersion=" + resourceVersion + ", resoucreType=" + resoucreType + ", resourceUUID=" + resourceUUID
125 + ", resourceInvariantUUID=" + resourceInvariantUUID + ", resourceCustomizationUUID=" + resourceCustomizationUUID + ", category=" + category + ", subcategory=" + subcategory + ", artifacts=" + artifacts + "]";