remove not required docs and .readthedocs.yaml
[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"); you may not use this file except
5  * in compliance with the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11  * or implied. See the License for the specific language governing permissions and limitations under
12  * the License.
13  */
14 package org.onap.msb.sdclient;
15
16 import javax.validation.Valid;
17
18 import org.hibernate.validator.constraints.NotEmpty;
19
20 import com.fasterxml.jackson.annotation.JsonProperty;
21
22 import io.dropwizard.Configuration;
23
24 public class DiscoverAppConfig extends Configuration {
25     @NotEmpty
26     private String defaultWorkspace = "discover-works";
27
28     @NotEmpty
29     private String defaultName = "discover-service";
30
31
32     @Valid
33     private String consulAdderss;
34
35     @Valid
36     private String consulRegisterMode;
37
38
39     @JsonProperty
40     public String getConsulRegisterMode() {
41         return consulRegisterMode;
42     }
43
44     @JsonProperty
45     public void setConsulRegisterMode(String consulRegisterMode) {
46         this.consulRegisterMode = consulRegisterMode;
47     }
48
49     @JsonProperty
50     public String getDefaultWorkspace() {
51         return defaultWorkspace;
52     }
53
54     @JsonProperty
55     public void setDefaultWorkspace(String defaultWorkspace) {
56         this.defaultWorkspace = defaultWorkspace;
57     }
58
59     @JsonProperty
60     public String getDefaultName() {
61         return defaultName;
62     }
63
64     @JsonProperty
65     public void setDefaultName(String name) {
66         this.defaultName = name;
67     }
68
69     @JsonProperty
70     public String getConsulAdderss() {
71         return consulAdderss;
72     }
73
74     @JsonProperty
75     public void setConsulAdderss(String consulAdderss) {
76         this.consulAdderss = consulAdderss;
77     }
78
79
80
81 }