066402b2f47c06334dc1376b93eb386d11f1f913
[dcaegen2/collectors/datafile.git] /
1 /*-
2  * ============LICENSE_START======================================================================
3  * Copyright (C) 2018 NOKIA Intellectual Property, 2018-2019 Nordix Foundation. All rights reserved.
4  * ===============================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6  * in compliance with the License. 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 distributed under the License
11  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12  * or implied. See the License for the specific language governing permissions and limitations under
13  * the License.
14  * ============LICENSE_END========================================================================
15  */
16
17 package org.onap.dcaegen2.collectors.datafile.model;
18
19 import com.google.gson.annotations.SerializedName;
20
21 import java.nio.file.Path;
22 import java.util.Map;
23
24 import org.immutables.gson.Gson;
25 import org.immutables.value.Value;
26 import org.onap.dcaegen2.services.sdk.rest.services.model.DmaapModel;
27
28 /**
29  * Information needed to publish a file to DataRouter.
30  *
31  * @author <a href="mailto:przemyslaw.wasala@nokia.com">Przemysław Wąsala</a> on 5/8/18
32  * @author <a href="mailto:henrik.b.andersson@est.tech">Henrik Andersson</a>
33  */
34
35 @Value.Immutable
36 @Gson.TypeAdapters
37 public interface FilePublishInformation extends DmaapModel {
38
39     @SerializedName("productName")
40     String getProductName();
41
42     @SerializedName("vendorName")
43     String getVendorName();
44
45     @SerializedName("lastEpochMicrosec")
46     String getLastEpochMicrosec();
47
48     @SerializedName("sourceName")
49     String getSourceName();
50
51     @SerializedName("startEpochMicrosec")
52     String getStartEpochMicrosec();
53
54     @SerializedName("timeZoneOffset")
55     String getTimeZoneOffset();
56
57     @SerializedName("name")
58     String getName();
59
60     @SerializedName("location")
61     String getLocation();
62
63     @SerializedName("internalLocation")
64     Path getInternalLocation();
65
66     @SerializedName("compression")
67     String getCompression();
68
69     @SerializedName("fileFormatType")
70     String getFileFormatType();
71
72     @SerializedName("fileFormatVersion")
73     String getFileFormatVersion();
74
75     @SerializedName("context")
76     Map<String, String> getContext();
77 }