Clean the config files.
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / ExtsysAppConfiguration.java
1 /**
2  * Copyright 2016-2017 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.aai.esr;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.dropwizard.Configuration;
21 import org.hibernate.validator.constraints.NotEmpty;
22 import org.jvnet.hk2.annotations.Service;
23
24
25 import javax.validation.Valid;
26
27 @Service
28 public class ExtsysAppConfiguration extends Configuration {
29   @NotEmpty
30   private String template;
31
32   @NotEmpty
33   private String defaultName = "ONAP-A&AI-ESR";
34
35   @NotEmpty
36   private String msbDiscoveryIp;
37   
38   @NotEmpty
39   private String msbDiscoveryPort;
40   
41   @NotEmpty
42   private String registByHand;
43   
44   @NotEmpty
45   private String msbServerAddr;
46   
47   @Valid
48   private String serviceIp;
49   
50   @JsonProperty
51   public String getTemplate() {
52     return template;
53   }
54
55   @JsonProperty
56   public void setTemplate(String template) {
57     this.template = template;
58   }
59
60   @JsonProperty
61   public String getDefaultName() {
62     return defaultName;
63   }
64
65   @JsonProperty
66   public void setDefaultName(String name) {
67     this.defaultName = name;
68   }
69   
70   @JsonProperty
71   public String getMsbDiscoveryIp() {
72     return msbDiscoveryIp;
73   }
74   
75   @JsonProperty
76   public String setMsbDiscoveryIp() {
77     return msbDiscoveryIp;
78   }
79   
80   @JsonProperty
81   public String getMsbServerAddr() {
82     return msbServerAddr;
83   }
84
85   @JsonProperty
86   public void setMsbServerAddr(String msbServerAddr) {
87     this.msbServerAddr = msbServerAddr;
88   }
89   @JsonProperty
90   public String getServiceIp() {
91     return serviceIp;
92   }
93
94   @JsonProperty
95   public void setServiceIp(String serviceIp) {
96     this.serviceIp = serviceIp;
97   }
98
99   @JsonProperty
100   public String getRegistByHand() {
101     return registByHand;
102   }
103
104   @JsonProperty
105   public void setRegistByHand(String registByHand) {
106     this.registByHand = registByHand;
107   }
108
109   @JsonProperty
110   public void setMsbDiscoveryPort(String msbDiscoveryPort) {
111     this.msbDiscoveryPort = msbDiscoveryPort;
112   }
113   
114   @JsonProperty
115   public String getMsbDiscoveryPort() {
116     return msbDiscoveryPort;
117   }
118
119 }