2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.components.distribution.engine;
23 public class DistributionStatusNotification {
25 String distributionID;
29 DistributionStatusNotificationEnum status;
32 public String getDistributionID() {
33 return distributionID;
36 public void setDistributionID(String distributionId) {
37 this.distributionID = distributionId;
40 public String getConsumerID() {
44 public void setConsumerID(String consumerId) {
45 this.consumerID = consumerId;
48 public long getTimestamp() {
52 public void setTimestamp(long timestamp) {
53 this.timestamp = timestamp;
56 public String getArtifactURL() {
60 public void setArtifactURL(String artifactURL) {
61 this.artifactURL = artifactURL;
64 public DistributionStatusNotificationEnum getStatus() {
68 public void setStatus(DistributionStatusNotificationEnum status) {
72 public String getErrorReason() {
76 public void setErrorReason(String errorReason) {
77 this.errorReason = errorReason;
80 public boolean isDistributionCompleteNotification() {
81 return DistributionStatusNotificationEnum.DISTRIBUTION_COMPLETE_OK.equals(status) || DistributionStatusNotificationEnum.DISTRIBUTION_COMPLETE_ERROR.equals(status);
85 public String toString() {
86 return "DistributionStatusNotification [distributionId=" + distributionID + ", consumerId=" + consumerID + ", timestamp=" + timestamp + ", artifactURL=" + artifactURL + ", status=" + status + ", errorReason=" + errorReason + "]";