Tie XACML REST Decision
[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     public String getHost() {
32         return host;
33     }
34
35     public int getPort() {
36         return port;
37     }
38
39     public String getUserName() {
40         return userName;
41     }
42
43     public String getPassword() {
44         return password;
45     }
46
47     public boolean isHttps() {
48         return https;
49     }
50
51     public boolean isAaf() {
52         return aaf;
53     }
54
55     public RestServerBuilder setHost(String host) {
56         this.host = host;
57         return this;
58     }
59
60     public RestServerBuilder setPort(int port) {
61         this.port = port;
62         return this;
63     }
64
65     public RestServerBuilder setUserName(String userName) {
66         this.userName = userName;
67         return this;
68     }
69
70     public RestServerBuilder setPassword(String password) {
71         this.password = password;
72         return this;
73     }
74
75     public RestServerBuilder setHttps(boolean https) {
76         this.https = https;
77         return this;
78     }
79
80     public RestServerBuilder setAaf(boolean aaf) {
81         this.aaf = aaf;
82         return this;
83     }
84 }