Realize the function of VIM API.
[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   @NotEmpty
48   private String cloudInfrastructureAddr;
49   
50   @NotEmpty
51   private String externalSystemAddr;
52   
53   @Valid
54   private String serviceIp;
55   
56   @JsonProperty
57   public String getTemplate() {
58     return template;
59   }
60
61   @JsonProperty
62   public void setTemplate(String template) {
63     this.template = template;
64   }
65
66   @JsonProperty
67   public String getDefaultName() {
68     return defaultName;
69   }
70
71   @JsonProperty
72   public void setDefaultName(String name) {
73     this.defaultName = name;
74   }
75   
76   @JsonProperty
77   public String getMsbDiscoveryIp() {
78     return msbDiscoveryIp;
79   }
80   
81   @JsonProperty
82   public String setMsbDiscoveryIp() {
83     return msbDiscoveryIp;
84   }
85   
86   @JsonProperty
87   public String getMsbServerAddr() {
88     return msbServerAddr;
89   }
90
91   @JsonProperty
92   public void setMsbServerAddr(String msbServerAddr) {
93     this.msbServerAddr = msbServerAddr;
94   }
95   @JsonProperty
96   public String getServiceIp() {
97     return serviceIp;
98   }
99
100   @JsonProperty
101   public void setServiceIp(String serviceIp) {
102     this.serviceIp = serviceIp;
103   }
104
105   @JsonProperty
106   public String getRegistByHand() {
107     return registByHand;
108   }
109
110   @JsonProperty
111   public void setRegistByHand(String registByHand) {
112     this.registByHand = registByHand;
113   }
114
115   @JsonProperty
116   public void setMsbDiscoveryPort(String msbDiscoveryPort) {
117     this.msbDiscoveryPort = msbDiscoveryPort;
118   }
119   
120   @JsonProperty
121   public String getMsbDiscoveryPort() {
122     return msbDiscoveryPort;
123   }
124
125   @JsonProperty
126   public String getCloudInfrastructureAddr() {
127     return cloudInfrastructureAddr;
128   }
129
130   @JsonProperty
131   public void setCloudInfrastructureAddr(String cloudInfrastructureAddr) {
132     this.cloudInfrastructureAddr = cloudInfrastructureAddr;
133   }
134
135   @JsonProperty
136   public String getExternalSystemAddr() {
137     return externalSystemAddr;
138   }
139
140   @JsonProperty
141   public void setExternalSystemAddr(String externalSystemAddr) {
142     this.externalSystemAddr = externalSystemAddr;
143   }
144
145   @JsonProperty
146   public void setMsbDiscoveryIp(String msbDiscoveryIp) {
147     this.msbDiscoveryIp = msbDiscoveryIp;
148   }
149 }