dddcaff243673ee17921e082acf4c79ebead9f14
[so.git] / asdc-controller / src / main / java / org / openecomp / mso / asdc / client / DistributionStatusMessage.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
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.mso.asdc.client;
22
23
24 import org.openecomp.sdc.api.consumer.IDistributionStatusMessage;
25 import org.openecomp.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, final DistributionStatusEnum distributionStatusEnum, final long timestampL) {
40                 artifactURL = artifactUrl;
41                 consumerID = consumerId;
42                 distributionID = distributionId;
43                 distributionStatus = distributionStatusEnum;
44                 timestamp = timestampL;
45         }
46         
47         @Override
48         public String getArtifactURL() {
49                 
50                 return artifactURL;
51         }
52
53         @Override
54         public String getConsumerID() {
55         
56                 return consumerID;
57         }
58
59         @Override
60         public String getDistributionID() {
61                 
62                 return distributionID;
63         }
64
65         @Override
66         public DistributionStatusEnum getStatus() {
67         
68                 return distributionStatus;
69         }
70
71         @Override
72         public long getTimestamp() {
73                 
74                 return timestamp;
75         }
76
77 }