diff options
Diffstat (limited to 'auth/cli-codegen/src/main/java/org/onap/policy/apex/auth/clicodegen/EventDeclarationBuilder.java')
-rw-r--r-- | auth/cli-codegen/src/main/java/org/onap/policy/apex/auth/clicodegen/EventDeclarationBuilder.java | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/auth/cli-codegen/src/main/java/org/onap/policy/apex/auth/clicodegen/EventDeclarationBuilder.java b/auth/cli-codegen/src/main/java/org/onap/policy/apex/auth/clicodegen/EventDeclarationBuilder.java new file mode 100644 index 000000000..89c338a53 --- /dev/null +++ b/auth/cli-codegen/src/main/java/org/onap/policy/apex/auth/clicodegen/EventDeclarationBuilder.java @@ -0,0 +1,108 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.auth.clicodegen; + +import java.util.List; + +import org.stringtemplate.v4.ST; + +public class EventDeclarationBuilder { + private String name; + private String version; + private String uuid; + private String description; + private String nameSpace; + private String source; + private String target; + private List<ST> fields; + + public String getName() { + return name; + } + + public String getVersion() { + return version; + } + + public String getUuid() { + return uuid; + } + + public String getDescription() { + return description; + } + + public String getNameSpace() { + return nameSpace; + } + + public String getSource() { + return source; + } + + public String getTarget() { + return target; + } + + public List<ST> getFields() { + return fields; + } + + public EventDeclarationBuilder setName(String name) { + this.name = name; + return this; + } + + public EventDeclarationBuilder setVersion(String version) { + this.version = version; + return this; + } + + public EventDeclarationBuilder setUuid(String uuid) { + this.uuid = uuid; + return this; + } + + public EventDeclarationBuilder setDescription(String description) { + this.description = description; + return this; + } + + public EventDeclarationBuilder setNameSpace(String nameSpace) { + this.nameSpace = nameSpace; + return this; + } + + public EventDeclarationBuilder setSource(String source) { + this.source = source; + return this; + } + + public EventDeclarationBuilder setTarget(String target) { + this.target = target; + return this; + } + + public EventDeclarationBuilder setFields(List<ST> fields) { + this.fields = fields; + return this; + } +} |