Improve Test coverage of DFC
[nonrtric/plt/ranpm.git] / datafilecollector / src / main / java / org / oran / datafile / model / 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.model;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 import lombok.Builder;
24 import lombok.Getter;
25 import lombok.ToString;
26
27 import org.apache.hc.core5.http.NameValuePair;
28
29 /**
30  * Data about the file server to collect a file from.
31  * In case of http protocol it also contains data required to recreate target
32  * uri
33  */
34 @Builder
35 @ToString
36 public class FileServerData {
37
38     @SuppressWarnings("java:S1104")
39     @Getter
40     public String serverAddress;
41
42     @SuppressWarnings("java:S1104")
43     @Getter
44     public String userId;
45
46     @ToString.Exclude
47     @Getter
48     public String password;
49
50     @Builder.Default
51     @ToString.Exclude
52     public List<NameValuePair> queryParameters = new ArrayList<>();
53
54     @Builder.Default
55     public String uriRawFragment = "";
56
57     @SuppressWarnings("java:S1104")
58     @Getter
59     public Integer port;
60 }