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;
25 import org.stringtemplate.v4.ST;
27 public class EventDeclarationBuilder {
29 private String version;
31 private String description;
32 private String nameSpace;
33 private String source;
34 private String target;
35 private List<ST> fields;
37 public String getName() {
41 public String getVersion() {
45 public String getUuid() {
49 public String getDescription() {
53 public String getNameSpace() {
57 public String getSource() {
61 public String getTarget() {
65 public List<ST> getFields() {
69 public EventDeclarationBuilder setName(String name) {
74 public EventDeclarationBuilder setVersion(String version) {
75 this.version = version;
79 public EventDeclarationBuilder setUuid(String uuid) {
84 public EventDeclarationBuilder setDescription(String description) {
85 this.description = description;
89 public EventDeclarationBuilder setNameSpace(String nameSpace) {
90 this.nameSpace = nameSpace;
94 public EventDeclarationBuilder setSource(String source) {
99 public EventDeclarationBuilder setTarget(String target) {
100 this.target = target;
104 public EventDeclarationBuilder setFields(List<ST> fields) {
105 this.fields = fields;