bd06f76cacd0cc006dc79524baa1f346a7c87de8
[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 environment;
36     String ecompRequestId;
37
38     /**
39      * Property passed to policy manager in the ClientAuth header.
40      */
41     public String getClientAuth() {
42         return clientAuth;
43     }
44
45     public void setClientAuth(String clientAuth) {
46         this.clientAuth = clientAuth;
47     }
48
49     /**
50      * Property passed to policy manager in the BasicAuth header.
51      */
52     public String getBasicAuth() {
53         return basicAuth;
54     }
55
56     public void setBasicAuth(String basicAuth) {
57         this.basicAuth = basicAuth;
58     }
59
60     /**
61      * URL of the policy manager.
62      */
63     public String getUrl() {
64         return url;
65     }
66
67     public void setUrl(String url) {
68         this.url = url;
69     }
70
71     /**
72      * Property passed to policy manager in the Environment header.
73      */
74     public String getEnvironment() {
75         return environment;
76     }
77
78     public void setEnvironment(String environment) {
79         this.environment = environment;
80     }
81
82     /**
83      * Property passed to policy manager in the X-ECOMP-RequestID header.
84      */
85     public String getEcompRequestId() {
86         return ecompRequestId;
87     }
88
89     public void setEcompRequestId(String ecompRequestId) {
90         this.ecompRequestId = ecompRequestId;
91     }
92 }