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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.apex.auth.clicodegen;
23 import java.util.List;
24 import org.stringtemplate.v4.ST;
26 public class EventDeclarationBuilder {
28 private String version;
30 private String description;
31 private String nameSpace;
32 private String source;
33 private String target;
34 private List<ST> fields;
36 public String getName() {
40 public String getVersion() {
44 public String getUuid() {
48 public String getDescription() {
52 public String getNameSpace() {
56 public String getSource() {
60 public String getTarget() {
64 public List<ST> getFields() {
68 public EventDeclarationBuilder setName(String name) {
73 public EventDeclarationBuilder setVersion(String version) {
74 this.version = version;
78 public EventDeclarationBuilder setUuid(String uuid) {
83 public EventDeclarationBuilder setDescription(String description) {
84 this.description = description;
88 public EventDeclarationBuilder setNameSpace(String nameSpace) {
89 this.nameSpace = nameSpace;
93 public EventDeclarationBuilder setSource(String source) {
98 public EventDeclarationBuilder setTarget(String target) {
103 public EventDeclarationBuilder setFields(List<ST> fields) {
104 this.fields = fields;