Formatting Code base with ktlint
[ccsdk/cds.git] / ms / sdclistener / application / src / main / java / org / onap / ccsdk / cds / sdclistener / status / ComponentStatusMessage.java
1 /*
2  * Copyright © 2019 Bell Canada
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.ccsdk.cds.sdclistener.status;
18
19 import org.onap.sdc.api.consumer.IComponentDoneStatusMessage;
20 import org.onap.sdc.api.consumer.IDistributionStatusMessage;
21 import org.onap.sdc.utils.DistributionStatusEnum;
22
23 public class ComponentStatusMessage implements IComponentDoneStatusMessage, IDistributionStatusMessage {
24
25     private String componentName;
26
27     private String consumerID;
28
29     private String distributionID;
30
31     private DistributionStatusEnum status;
32
33     private long timeStamp;
34
35     private String artifactUrl;
36
37     @Override
38     public String getDistributionID() {
39         return distributionID;
40     }
41
42     @Override
43     public DistributionStatusEnum getStatus() {
44         return status;
45     }
46
47     @Override
48     public String getConsumerID() {
49         return consumerID;
50     }
51
52     @Override
53     public String getComponentName() {
54         return componentName;
55     }
56
57     @Override
58     public String getArtifactURL() {
59         return getArtifactUrl();
60     }
61
62     @Override
63     public long getTimestamp() {
64         return getTimeStamp();
65     }
66
67     public void setComponentName(String componentName) {
68         this.componentName = componentName;
69     }
70
71     public void setConsumerID(String consumerID) {
72         this.consumerID = consumerID;
73     }
74
75     public void setDistributionID(String distributionID) {
76         this.distributionID = distributionID;
77     }
78
79     public void setStatus(DistributionStatusEnum status) {
80         this.status = status;
81     }
82
83     public long getTimeStamp() {
84         return timeStamp;
85     }
86
87     public void setTimeStamp(long timeStamp) {
88         this.timeStamp = timeStamp;
89     }
90
91     public String getArtifactUrl() {
92         return artifactUrl;
93     }
94
95     public void setArtifactUrl(String artifactUrl) {
96         this.artifactUrl = artifactUrl;
97     }
98
99 }