Added oparent to sdc main
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / catalog / CatalogComponent.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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.model.catalog;
22
23 import com.google.common.collect.ImmutableList;
24 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
25
26 import java.util.ArrayList;
27 import java.util.Collections;
28 import java.util.List;
29
30 import static java.util.Objects.requireNonNull;
31
32 public class CatalogComponent {
33
34     private String version;
35     private ComponentTypeEnum componentType;
36     private String icon;
37     private String uniqueId;
38     private String lifecycleState;
39     private long lastUpdateDate;
40     private String name;
41     private String resourceType;
42     private String categoryNormalizedName;
43     private String subCategoryNormalizedName;
44     private String distributionStatus;
45     private List<String> tags;
46
47     public String getCategoryNormalizedName() {
48         return categoryNormalizedName;
49     }
50
51     public void setCategoryNormalizedName(String categoryNormalizedName) {
52         this.categoryNormalizedName = categoryNormalizedName;
53     }
54
55     public String getSubCategoryNormalizedName() {
56         return subCategoryNormalizedName;
57     }
58
59     public void setSubCategoryNormalizedName(String subCategoryNormalizedName) {
60         this.subCategoryNormalizedName = subCategoryNormalizedName;
61     }
62
63     public String getResourceType() {
64         return resourceType;
65     }
66
67     public void setResourceType(String resourceType) {
68         this.resourceType = resourceType;
69     }
70
71     public String getName() {
72         return name;
73     }
74
75     public void setName(String name) {
76         this.name = name;
77     }
78
79     public long getLastUpdateDate() {
80         return lastUpdateDate;
81     }
82
83     public void setLastUpdateDate(long lastUpdateDate) {
84         this.lastUpdateDate = lastUpdateDate;
85     }
86
87     public void setVersion(String version) {
88         this.version = version;
89     }
90
91     public void setComponentType(ComponentTypeEnum componentType) {
92         this.componentType = componentType;
93     }
94
95     public void setIcon(String icon) {
96         this.icon = icon;
97     }
98
99     public void setUniqueId(String uniqueId) {
100         this.uniqueId = uniqueId;
101     }
102
103     public String getVersion() {
104         return version;
105     }
106
107     public ComponentTypeEnum getComponentType() {
108         return componentType;
109     }
110
111     public String getIcon() {
112         return icon;
113     }
114
115     public String getUniqueId() {
116         return uniqueId;
117     }
118
119     public String getLifecycleState() {
120         return lifecycleState;
121     }
122
123     public void setLifecycleState(String lifecycleState) {
124         this.lifecycleState = lifecycleState;
125     }
126
127     public String getDistributionStatus() {
128         return distributionStatus;
129     }
130
131     public void setDistributionStatus(String distributionStatus) {
132         this.distributionStatus = distributionStatus;
133     }
134
135     public List<String> getTags() {
136         return tags == null ? Collections.emptyList() : ImmutableList.copyOf(tags);
137     }
138
139     public void setTags(List<String> tags) {
140         requireNonNull(tags);
141         this.tags = new ArrayList<>(tags);
142     }
143 }