re base code
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / catalog / CatalogComponent.java
1 package org.openecomp.sdc.be.model.catalog;
2
3 import com.google.common.collect.ImmutableList;
4 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
5
6 import java.util.ArrayList;
7 import java.util.Collections;
8 import java.util.List;
9
10 import static java.util.Objects.requireNonNull;
11
12 public class CatalogComponent {
13
14     private String version;
15     private ComponentTypeEnum componentType;
16     private String icon;
17     private String uniqueId;
18     private String lifecycleState;
19     private long lastUpdateDate;
20     private String name;
21     private String resourceType;
22     private String categoryNormalizedName;
23     private String subCategoryNormalizedName;
24     private String distributionStatus;
25     private List<String> tags;
26
27     public String getCategoryNormalizedName() {
28         return categoryNormalizedName;
29     }
30
31     public void setCategoryNormalizedName(String categoryNormalizedName) {
32         this.categoryNormalizedName = categoryNormalizedName;
33     }
34
35     public String getSubCategoryNormalizedName() {
36         return subCategoryNormalizedName;
37     }
38
39     public void setSubCategoryNormalizedName(String subCategoryNormalizedName) {
40         this.subCategoryNormalizedName = subCategoryNormalizedName;
41     }
42
43     public String getResourceType() {
44         return resourceType;
45     }
46
47     public void setResourceType(String resourceType) {
48         this.resourceType = resourceType;
49     }
50
51     public String getName() {
52         return name;
53     }
54
55     public void setName(String name) {
56         this.name = name;
57     }
58
59     public long getLastUpdateDate() {
60         return lastUpdateDate;
61     }
62
63     public void setLastUpdateDate(long lastUpdateDate) {
64         this.lastUpdateDate = lastUpdateDate;
65     }
66
67     public void setVersion(String version) {
68         this.version = version;
69     }
70
71     public void setComponentType(ComponentTypeEnum componentType) {
72         this.componentType = componentType;
73     }
74
75     public void setIcon(String icon) {
76         this.icon = icon;
77     }
78
79     public void setUniqueId(String uniqueId) {
80         this.uniqueId = uniqueId;
81     }
82
83     public String getVersion() {
84         return version;
85     }
86
87     public ComponentTypeEnum getComponentType() {
88         return componentType;
89     }
90
91     public String getIcon() {
92         return icon;
93     }
94
95     public String getUniqueId() {
96         return uniqueId;
97     }
98
99     public String getLifecycleState() {
100         return lifecycleState;
101     }
102
103     public void setLifecycleState(String lifecycleState) {
104         this.lifecycleState = lifecycleState;
105     }
106
107     public String getDistributionStatus() {
108         return distributionStatus;
109     }
110
111     public void setDistributionStatus(String distributionStatus) {
112         this.distributionStatus = distributionStatus;
113     }
114
115     public List<String> getTags() {
116         return tags == null ? Collections.emptyList() : ImmutableList.copyOf(tags);
117     }
118
119     public void setTags(List<String> tags) {
120         requireNonNull(tags);
121         this.tags = new ArrayList<>(tags);
122     }
123 }