e84d5b699d4d9af3a039bbd52673b29ae0e1cf6c
[ccsdk/apps.git] / ms / neng / src / main / java / org / onap / ccsdk / apps / ms / neng / extinf / props / PolicyManagerProps.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : CCSDK.apps
4  * ================================================================================
5  * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.ccsdk.apps.ms.neng.extinf.props;
22
23 import org.springframework.boot.context.properties.ConfigurationProperties;
24 import org.springframework.context.annotation.Configuration;
25
26 /**
27  * POJO for representing properties related to policy manager.
28  */
29 @Configuration
30 @ConfigurationProperties(prefix = "policymgr")
31 public class PolicyManagerProps {
32     String clientAuth;
33     String basicAuth;
34     String url;
35     String version;
36     String environment;
37     String ecompRequestId;
38
39     /**
40      * Property passed to policy manager in the ClientAuth header.
41      */
42     public String getClientAuth() {
43         return clientAuth;
44     }
45
46     public void setClientAuth(String clientAuth) {
47         this.clientAuth = clientAuth;
48     }
49
50     /**
51      * Property passed to policy manager in the BasicAuth header.
52      */
53     public String getBasicAuth() {
54         return basicAuth;
55     }
56
57     public void setBasicAuth(String basicAuth) {
58         this.basicAuth = basicAuth;
59     }
60
61     /**
62      * URL of the policy manager.
63      */
64     public String getUrl() {
65         return url;
66     }
67
68     public void setUrl(String url) {
69         this.url = url;
70     }
71
72     /**
73      * Property passed to policy manager in the Environment header.
74      */
75     public String getEnvironment() {
76         return environment;
77     }
78
79     public void setEnvironment(String environment) {
80         this.environment = environment;
81     }
82
83     /**
84      * Property passed to policy manager in the X-ECOMP-RequestID header.
85      */
86     public String getEcompRequestId() {
87         return ecompRequestId;
88     }
89
90     public void setEcompRequestId(String ecompRequestId) {
91         this.ecompRequestId = ecompRequestId;
92     }
93
94     /**
95      * Version of the policy manager -- '1' for the First version '2' for second version etc.
96      */
97     public String getVersion() {
98         return version;
99     }
100
101     public void setVersion(String version) {
102         this.version = version;
103     }
104
105 }