Fix java check style warning
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / onap / msb / apiroute / ApiRouteAppConfig.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 /**
15  * Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
16  *
17  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
18  * in compliance with the License. You may obtain a copy of the License at
19  *
20  * http://www.apache.org/licenses/LICENSE-2.0
21  *
22  * Unless required by applicable law or agreed to in writing, software distributed under the License
23  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
24  * or implied. See the License for the specific language governing permissions and limitations under
25  * the License.
26  */
27
28 package org.onap.msb.apiroute;
29
30 import javax.validation.Valid;
31
32 import org.hibernate.validator.constraints.NotEmpty;
33 import org.onap.msb.apiroute.api.DiscoverInfo;
34
35 import com.fasterxml.jackson.annotation.JsonProperty;
36
37 import io.dropwizard.Configuration;
38
39 public class ApiRouteAppConfig extends Configuration {
40     @NotEmpty
41     private String defaultWorkspace = "apiroute-works";
42
43     @NotEmpty
44     private String defaultName = "Stranger";
45
46
47     @Valid
48     private DiscoverInfo discoverInfo;
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
72
73     @JsonProperty
74     public DiscoverInfo getDiscoverInfo() {
75         return discoverInfo;
76     }
77
78     @JsonProperty
79     public void setDiscoverInfo(DiscoverInfo discoverInfo) {
80         this.discoverInfo = discoverInfo;
81     }
82
83
84
85 }