[SDC-29] rebase continue work to align source
[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, resourceCustomizationUUID, category, subcategory;
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                 this.resourceCustomizationUUID = resourceInstance.getCustomizationUUID();
40         }
41
42         public String getResourceInstanceName() {
43                 return resourceInstanceName;
44         }
45
46         public void setResourceInstanceName(String resourceInstanceName) {
47                 this.resourceInstanceName = resourceInstanceName;
48         }
49
50         public String getResourceName() {
51                 return resourceName;
52         }
53
54         public void setResourceName(String resourceName) {
55                 this.resourceName = resourceName;
56         }
57
58         public String getResourceVersion() {
59                 return resourceVersion;
60         }
61
62         public void setResourceVersion(String resourceVersion) {
63                 this.resourceVersion = resourceVersion;
64         }
65
66         public String getResoucreType() {
67                 return resoucreType;
68         }
69
70         public void setResoucreType(String resoucreType) {
71                 this.resoucreType = resoucreType;
72         }
73
74         public String getResourceUUID() {
75                 return resourceUUID;
76         }
77
78         public void setResourceUUID(String resourceUUID) {
79                 this.resourceUUID = resourceUUID;
80         }
81
82         public List<ArtifactInfoImpl> getArtifacts() {
83                 return artifacts;
84         }
85
86         public void setArtifacts(List<ArtifactInfoImpl> artifacts) {
87                 this.artifacts = artifacts;
88         }
89
90         public String getResourceInvariantUUID() {
91                 return resourceInvariantUUID;
92         }
93
94         public void setResourceInvariantUUID(String resourceInvariantUUID) {
95                 this.resourceInvariantUUID = resourceInvariantUUID;
96         }
97
98         public String getResourceCustomizationUUID() {
99                 return resourceCustomizationUUID;
100         }
101
102         public void setResourceCustomizationUUID(String customizationUUID) {
103                 this.resourceCustomizationUUID = customizationUUID;
104         }
105
106         public String getCategory() {
107                 return category;
108         }
109
110         public void setCategory(String category) {
111                 this.category = category;
112         }
113
114         public String getSubcategory() {
115                 return subcategory;
116         }
117
118         public void setSubcategory(String subcategory) {
119                 this.subcategory = subcategory;
120         }
121
122         @Override
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 + "]";
126         }
127         
128 }