rename openo to onap
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / sfc-driver / src / main / java / org / onap / sfc / SfcDriverConfig.java
1 /**
2  * Copyright 2016 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.sfc;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.dropwizard.Configuration;
21 import org.hibernate.validator.constraints.NotEmpty;
22
23
24 public class SfcDriverConfig extends Configuration {
25     @NotEmpty
26     private String template;
27
28     @NotEmpty
29     private String defaultName = "Stranger";
30
31     @NotEmpty
32     private String msbServiceUrl;
33
34     @JsonProperty
35     public String getTemplate() {
36         return template;
37     }
38
39     @JsonProperty
40     public void setTemplate(String template) {
41         this.template = template;
42     }
43
44     @JsonProperty
45     public String getDefaultName() {
46         return defaultName;
47     }
48     @JsonProperty
49     public void setDefaultName(String name) {
50         this.defaultName = name;
51     }
52
53     public String getMsbServiceUrl() {
54         return msbServiceUrl;
55     }
56
57     public void setMsbServiceUrl(String msbServiceUrl) {
58         this.msbServiceUrl = msbServiceUrl;
59     }
60
61 }