90bc09f961935e7384f9f912addea0df29038135
[policy/xacml-pdp.git] / main / src / main / java / org / onap / policy / pdpx / main / parameters / RestServerBuilder.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * 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
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.pdpx.main.parameters;
22
23 public class RestServerBuilder {
24     private String host;
25     private int port;
26     private String userName;
27     private String password;
28     private boolean https;
29     private boolean aaf;
30
31
32     public String getHost() {
33         return host;
34     }
35
36     public int getPort() {
37         return port;
38     }
39
40     public String getUserName() {
41         return userName;
42     }
43
44     public String getPassword() {
45         return password;
46     }
47
48     public boolean isHttps() {
49         return https;
50     }
51
52     public boolean isAaf() {
53         return aaf;
54     }
55
56     public RestServerBuilder setHost(String host) {
57         this.host = host;
58         return this;
59     }
60
61     public RestServerBuilder setPort(int port) {
62         this.port = port;
63         return this;
64     }
65
66     public RestServerBuilder setUserName(String userName) {
67         this.userName = userName;
68         return this;
69     }
70
71     public RestServerBuilder setPassword(String password) {
72         this.password = password;
73         return this;
74     }
75
76     public RestServerBuilder setHttps(boolean https) {
77         this.https = https;
78         return this;
79     }
80
81     public RestServerBuilder setAaf(boolean aaf) {
82         this.aaf = aaf;
83         return this;
84     }
85 }