Replaced all tabs with spaces in java and pom.xml
[so.git] / asdc-controller / src / main / java / org / onap / so / asdc / client / DistributionStatusMessage.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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.onap.so.asdc.client;
22
23
24 import org.onap.sdc.api.consumer.IDistributionStatusMessage;
25 import org.onap.sdc.utils.DistributionStatusEnum;
26
27 public class DistributionStatusMessage implements IDistributionStatusMessage {
28
29     private String artifactURL;
30
31     private String consumerID;
32
33     private String distributionID;
34
35     private DistributionStatusEnum distributionStatus;
36
37     private long timestamp;
38
39     public DistributionStatusMessage(final String artifactUrl, final String consumerId, final String distributionId,
40             final DistributionStatusEnum distributionStatusEnum, final long timestampL) {
41         artifactURL = artifactUrl;
42         consumerID = consumerId;
43         distributionID = distributionId;
44         distributionStatus = distributionStatusEnum;
45         timestamp = timestampL;
46     }
47
48     @Override
49     public String getArtifactURL() {
50
51         return artifactURL;
52     }
53
54     @Override
55     public String getConsumerID() {
56
57         return consumerID;
58     }
59
60     @Override
61     public String getDistributionID() {
62
63         return distributionID;
64     }
65
66     @Override
67     public DistributionStatusEnum getStatus() {
68
69         return distributionStatus;
70     }
71
72     @Override
73     public long getTimestamp() {
74
75         return timestamp;
76     }
77
78 }