Added support for using oauth token for Kafka
[nonrtric/plt/ranpm.git] / datafilecollector / src / main / java / org / oran / datafile / commons / FileServerData.java
1 /*-
2  * ============LICENSE_START======================================================================
3  * Copyright (C) 2018-2023 Nordix Foundation. All rights reserved.
4  * Modifications copyright (C) 2021 Nokia. All rights reserved.
5  * ===============================================================================================
6  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7  * in compliance with the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software distributed under the License
12  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13  * or implied. See the License for the specific language governing permissions and limitations under
14  * the License.
15  * ============LICENSE_END========================================================================
16  */
17
18 package org.oran.datafile.commons;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 import lombok.Builder;
24 import lombok.ToString;
25
26 import org.apache.hc.core5.http.NameValuePair;
27
28 /**
29  * Data about the file server to collect a file from.
30  * In case of http protocol it also contains data required to recreate target
31  * uri
32  */
33 @Builder
34 @ToString
35 public class FileServerData {
36
37     public String serverAddress;
38     public String userId;
39
40     @ToString.Exclude
41     public String password;
42
43     @Builder.Default
44     @ToString.Exclude
45     public List<NameValuePair> queryParameters = new ArrayList<>();
46
47     @Builder.Default
48     public String uriRawFragment = "";
49
50     public Integer port;
51 }