modify copyright year
[msb/discovery.git] / sdclient / discovery-service / src / main / java / org / onap / msb / sdclient / DiscoverAppConfig.java
1 /**
2  * Copyright 2016-2017 ZTE, Inc. and others.
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 package org.onap.msb.sdclient;
17
18 import io.dropwizard.Configuration;
19
20 import javax.validation.Valid;
21
22 import org.hibernate.validator.constraints.NotEmpty;
23
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
26 public class DiscoverAppConfig  extends Configuration {
27     @NotEmpty
28     private String defaultWorkspace = "discover-works"; 
29
30     @NotEmpty
31     private String defaultName = "discover-service";
32     
33       
34     @Valid
35     private String consulAdderss;
36     
37     @Valid
38     private String consulRegisterMode;
39     
40     
41     @JsonProperty
42         public String getConsulRegisterMode() {
43       return consulRegisterMode;
44     }
45
46     @JsonProperty
47     public void setConsulRegisterMode(String consulRegisterMode) {
48       this.consulRegisterMode = consulRegisterMode;
49     }
50
51     @JsonProperty
52     public String getDefaultWorkspace() {
53         return defaultWorkspace;
54     }
55
56     @JsonProperty
57     public void setDefaultWorkspace(String defaultWorkspace) {
58         this.defaultWorkspace = defaultWorkspace;
59     }
60
61     @JsonProperty
62     public String getDefaultName() {
63         return defaultName;
64     }
65
66     @JsonProperty
67     public void setDefaultName(String name) {
68         this.defaultName = name;
69     }
70
71     @JsonProperty
72     public String getConsulAdderss() {
73         return consulAdderss;
74     }
75
76     @JsonProperty
77     public void setConsulAdderss(String consulAdderss) {
78         this.consulAdderss = consulAdderss;
79     }
80
81   
82     
83     
84    
85
86 }