Initial OpenECOMP SDC commit
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / distribution / engine / JsonContainerResourceInstance.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.be.components.distribution.engine;
22
23 import java.util.List;
24
25 import org.openecomp.sdc.be.model.ComponentInstance;
26
27 public class JsonContainerResourceInstance {
28         private String resourceInstanceName, resourceName, resourceVersion, resoucreType, resourceUUID, resourceInvariantUUID;
29         private List<ArtifactInfoImpl> artifacts;
30
31         public JsonContainerResourceInstance(ComponentInstance resourceInstance, String resourceType, List<ArtifactInfoImpl> artifacts) {
32                 super();
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         }
40
41         public JsonContainerResourceInstance(ComponentInstance resourceInstance, String resourceInvariantUUID, String resourceType, List<ArtifactInfoImpl> artifacts) {
42                 super();
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;
50         }
51
52         public String getResourceInstanceName() {
53                 return resourceInstanceName;
54         }
55
56         public void setResourceInstanceName(String resourceInstanceName) {
57                 this.resourceInstanceName = resourceInstanceName;
58         }
59
60         public String getResourceName() {
61                 return resourceName;
62         }
63
64         public void setResourceName(String resourceName) {
65                 this.resourceName = resourceName;
66         }
67
68         public String getResourceVersion() {
69                 return resourceVersion;
70         }
71
72         public void setResourceVersion(String resourceVersion) {
73                 this.resourceVersion = resourceVersion;
74         }
75
76         public String getResoucreType() {
77                 return resoucreType;
78         }
79
80         public void setResoucreType(String resoucreType) {
81                 this.resoucreType = resoucreType;
82         }
83
84         public String getResourceUUID() {
85                 return resourceUUID;
86         }
87
88         public void setResourceUUID(String resourceUUID) {
89                 this.resourceUUID = resourceUUID;
90         }
91
92         public List<ArtifactInfoImpl> getArtifacts() {
93                 return artifacts;
94         }
95
96         public void setArtifacts(List<ArtifactInfoImpl> artifacts) {
97                 this.artifacts = artifacts;
98         }
99
100         public String getResourceInvariantUUID() {
101                 return resourceInvariantUUID;
102         }
103
104         public void setResourceInvariantUUID(String resourceInvariantUUID) {
105                 this.resourceInvariantUUID = resourceInvariantUUID;
106         }
107
108 }