89c338a539bc77e8f6b919049e4856b173ade252
[policy/apex-pdp.git] / auth / cli-codegen / src / main / java / org / onap / policy / apex / auth / clicodegen / EventDeclarationBuilder.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.apex.auth.clicodegen;
22
23 import java.util.List;
24
25 import org.stringtemplate.v4.ST;
26
27 public class EventDeclarationBuilder {
28     private String name;
29     private String version;
30     private String uuid;
31     private String description;
32     private String nameSpace;
33     private String source;
34     private String target;
35     private List<ST> fields;
36
37     public String getName() {
38         return name;
39     }
40
41     public String getVersion() {
42         return version;
43     }
44
45     public String getUuid() {
46         return uuid;
47     }
48
49     public String getDescription() {
50         return description;
51     }
52
53     public String getNameSpace() {
54         return nameSpace;
55     }
56
57     public String getSource() {
58         return source;
59     }
60
61     public String getTarget() {
62         return target;
63     }
64
65     public List<ST> getFields() {
66         return fields;
67     }
68
69     public EventDeclarationBuilder setName(String name) {
70         this.name = name;
71         return this;
72     }
73
74     public EventDeclarationBuilder setVersion(String version) {
75         this.version = version;
76         return this;
77     }
78
79     public EventDeclarationBuilder setUuid(String uuid) {
80         this.uuid = uuid;
81         return this;
82     }
83
84     public EventDeclarationBuilder setDescription(String description) {
85         this.description = description;
86         return this;
87     }
88
89     public EventDeclarationBuilder setNameSpace(String nameSpace) {
90         this.nameSpace = nameSpace;
91         return this;
92     }
93
94     public EventDeclarationBuilder setSource(String source) {
95         this.source = source;
96         return this;
97     }
98
99     public EventDeclarationBuilder setTarget(String target) {
100         this.target = target;
101         return this;
102     }
103
104     public EventDeclarationBuilder setFields(List<ST> fields) {
105         this.fields = fields;
106         return this;
107     }
108 }