2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.dmaap.dbcapi.model;
23 import javax.xml.bind.annotation.XmlRootElement;
26 public class Dmaap extends DmaapObject {
28 private String version;
29 private String topicNsRoot;
30 private String dmaapName;
31 private String drProvUrl;
32 private String bridgeAdminTopic;
33 private String loggingUrl;
34 private String nodeKey;
35 private String accessKeyOwner;
38 // no-op constructor used by framework
43 public Dmaap( DmaapBuilder builder ) {
44 this.version = builder.ver;
45 this.topicNsRoot = builder.tnr;
46 this.dmaapName = builder.dn;
47 this.drProvUrl = builder.dpu;
48 this.bridgeAdminTopic = builder.bat;
49 this.loggingUrl = builder.lu;
50 this.nodeKey = builder.nk;
51 this.accessKeyOwner = builder.ako;
52 this.setStatus( DmaapObject_Status.NEW );
56 public static class DmaapBuilder {
66 public DmaapBuilder setVer(String ver) {
71 public DmaapBuilder setTnr(String tnr) {
76 public DmaapBuilder setDn(String dn) {
81 public DmaapBuilder setDpu(String dpu) {
86 public DmaapBuilder setLu(String lu) {
91 public DmaapBuilder setBat(String bat) {
96 public DmaapBuilder setNk(String nk) {
101 public DmaapBuilder setAko(String ako) {
106 public Dmaap createDmaap() {
107 return new Dmaap(this);
111 public String getVersion() {
115 public void setVersion(String version) {
116 this.version = version;
119 public String getTopicNsRoot() {
123 public void setTopicNsRoot(String topicNsRoot) {
124 this.topicNsRoot = topicNsRoot;
127 public String getDmaapName() {
131 public void setDmaapName(String dmaapName) {
132 this.dmaapName = dmaapName;
135 public String getDrProvUrl() {
139 public void setDrProvUrl(String drProvUrl) {
140 this.drProvUrl = drProvUrl;
144 public String getNodeKey() {
148 public void setNodeKey(String nodeKey) {
149 this.nodeKey = nodeKey;
152 public String getAccessKeyOwner() {
153 return accessKeyOwner;
156 public void setAccessKeyOwner(String accessKeyOwner) {
157 this.accessKeyOwner = accessKeyOwner;
161 public String getBridgeAdminTopic() {
162 return bridgeAdminTopic;
165 public void setBridgeAdminTopic(String bridgeAdminTopic) {
166 this.bridgeAdminTopic = bridgeAdminTopic;
169 public String getLoggingUrl() {
173 public void setLoggingUrl(String loggingUrl) {
174 this.loggingUrl = loggingUrl;