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;
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;
41 public JsonContainerResourceInstance(ComponentInstance resourceInstance, String resourceInvariantUUID, String resourceType, List<ArtifactInfoImpl> artifacts) {
43 this.resourceInstanceName = resourceInstance.getName();
44 this.resourceName = resourceInstance.getComponentName();
45 this.resourceVersion = resourceInstance.getComponentVersion();
46 this.resoucreType = resourceType;
47 this.resourceUUID = resourceInstance.getComponentUid();
48 this.resourceInvariantUUID = resourceInvariantUUID;
49 this.artifacts = artifacts;
52 public String getResourceInstanceName() {
53 return resourceInstanceName;
56 public void setResourceInstanceName(String resourceInstanceName) {
57 this.resourceInstanceName = resourceInstanceName;
60 public String getResourceName() {
64 public void setResourceName(String resourceName) {
65 this.resourceName = resourceName;
68 public String getResourceVersion() {
69 return resourceVersion;
72 public void setResourceVersion(String resourceVersion) {
73 this.resourceVersion = resourceVersion;
76 public String getResoucreType() {
80 public void setResoucreType(String resoucreType) {
81 this.resoucreType = resoucreType;
84 public String getResourceUUID() {
88 public void setResourceUUID(String resourceUUID) {
89 this.resourceUUID = resourceUUID;
92 public List<ArtifactInfoImpl> getArtifacts() {
96 public void setArtifacts(List<ArtifactInfoImpl> artifacts) {
97 this.artifacts = artifacts;
100 public String getResourceInvariantUUID() {
101 return resourceInvariantUUID;
104 public void setResourceInvariantUUID(String resourceInvariantUUID) {
105 this.resourceInvariantUUID = resourceInvariantUUID;