Added oparent to sdc main
[sdc.git] / utils / DmaapPublisher / src / main / java / org / openecomp / sdc / dmaap / CliArgs.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.dmaap;
22
23 import com.google.common.base.MoreObjects;
24 import org.kohsuke.args4j.Option;
25
26 public class CliArgs {
27
28     @Option(name="yml",aliases = {"-YML","YML","-yml","-YAML","YAML","-yaml"}, usage="mandatory arg. YAML filename", required=true)
29     private String yamlFilename;
30
31     @Option(name="path",aliases = {"-path","PATH","-PATH"}, usage="mandatory arg. path to the yaml file which contains topic config (publisher data + messages)", required=true)
32     private String yamlPath;
33
34     @Option(name="cr",aliases = {"CR","-cr","-CR"}, usage="optional arg. concurrent requests", required=false)
35     private String concurrentRequests;
36
37     @Option(name="notification",aliases = {"NOTIFICATION","-NOTIFICATION","-notification"}, usage="optional load dynamic messages", required=false)
38     private String notificationData;
39
40     public String getYamlPath() {
41         return yamlPath;
42     }
43
44     public String getYamlFilename() {
45         return yamlFilename;
46     }
47
48     public void setYamlPath(String yamlPath) {
49         this.yamlPath = yamlPath;
50     }
51
52
53     public String getConcurrentRequests() {
54         return concurrentRequests;
55     }
56
57     public void setConcurrentRequests(String concurrentRequests) {
58         this.concurrentRequests = concurrentRequests;
59     }
60
61     public String getNotificationData() {
62         return notificationData;
63     }
64
65
66     public void setYamlFilename(String yamlFilename) {
67         this.yamlFilename = yamlFilename;
68     }
69
70     @Override
71     public String toString() {
72         return MoreObjects.toStringHelper(this)
73                 .add("yamlPath", yamlPath)
74                 .add("concurrentRequests", concurrentRequests)
75                 .toString();
76     }
77     
78     
79 }