Add complex API definition.
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / ExtsysAppConfiguration.java
1 /**
2  * Copyright 2016-2018 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 javax.validation.Valid;
23
24 public class ExtsysAppConfiguration extends Configuration {
25     @NotEmpty
26     private String template;
27
28     @NotEmpty
29     private String defaultName = "ONAP-A&AI-ESR";
30
31     @NotEmpty
32     private String msbDiscoveryIp;
33
34     @NotEmpty
35     private String msbDiscoveryPort;
36
37     @NotEmpty
38     private String registByHand;
39
40     @NotEmpty
41     private String msbServerAddr;
42
43     @Valid
44     private String serviceIp;
45
46     @JsonProperty
47     public String getTemplate() {
48         return template;
49     }
50
51     @JsonProperty
52     public void setTemplate(String template) {
53         this.template = template;
54     }
55
56     @JsonProperty
57     public String getDefaultName() {
58         return defaultName;
59     }
60
61     @JsonProperty
62     public void setDefaultName(String name) {
63         this.defaultName = name;
64     }
65
66     @JsonProperty
67     public String getMsbDiscoveryIp() {
68         return msbDiscoveryIp;
69     }
70
71     @JsonProperty
72     public void setMsbDiscoveryIp(String discoveryIp) {
73         this.msbDiscoveryIp = discoveryIp;
74     }
75
76     @JsonProperty
77     public String getMsbServerAddr() {
78         return msbServerAddr;
79     }
80
81     @JsonProperty
82     public void setMsbServerAddr(String msbServerAddr) {
83         this.msbServerAddr = msbServerAddr;
84     }
85
86     @JsonProperty
87     public String getServiceIp() {
88         return serviceIp;
89     }
90
91     @JsonProperty
92     public void setServiceIp(String serviceIp) {
93         this.serviceIp = serviceIp;
94     }
95
96     @JsonProperty
97     public String getRegistByHand() {
98         return registByHand;
99     }
100
101     @JsonProperty
102     public void setRegistByHand(String registByHand) {
103         this.registByHand = registByHand;
104     }
105
106     @JsonProperty
107     public void setMsbDiscoveryPort(String msbDiscoveryPort) {
108         this.msbDiscoveryPort = msbDiscoveryPort;
109     }
110
111     @JsonProperty
112     public String getMsbDiscoveryPort() {
113         return msbDiscoveryPort;
114     }
115
116 }