2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2019 Nordix Foundation.
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.dmaap.datarouter.node;
23 public class DestInfoBuilder {
25 private String destInfoName;
26 private String destInfoSpool;
27 private String destInfoSubId;
28 private String destInfoLogData;
29 private String destInfoUrl;
30 private String destInfoAuthUser;
31 private String destInfoAuthentication;
32 private boolean destInfoMetaOnly;
33 private boolean destInfoUse100;
34 private boolean destInfoPrivilegedSubscriber;
35 private boolean destInfoFollowRedirects;
36 private boolean destInfoDecompress;
38 public String getName() {
42 public DestInfoBuilder setName(String name) {
43 this.destInfoName = name;
47 public String getSpool() {
51 public DestInfoBuilder setSpool(String spool) {
52 this.destInfoSpool = spool;
56 public String getSubid() {
60 public DestInfoBuilder setSubid(String subid) {
61 this.destInfoSubId = subid;
66 return destInfoLogData;
69 DestInfoBuilder setLogdata(String logdata) {
70 this.destInfoLogData = logdata;
74 public String getUrl() {
78 public DestInfoBuilder setUrl(String url) {
79 this.destInfoUrl = url;
83 String getAuthuser() {
84 return destInfoAuthUser;
87 DestInfoBuilder setAuthuser(String authuser) {
88 this.destInfoAuthUser = authuser;
92 String getAuthentication() {
93 return destInfoAuthentication;
96 DestInfoBuilder setAuthentication(String authentication) {
97 this.destInfoAuthentication = authentication;
101 boolean isMetaonly() {
102 return destInfoMetaOnly;
105 DestInfoBuilder setMetaonly(boolean metaonly) {
106 this.destInfoMetaOnly = metaonly;
111 return destInfoUse100;
114 DestInfoBuilder setUse100(boolean use100) {
115 this.destInfoUse100 = use100;
119 boolean isPrivilegedSubscriber() {
120 return destInfoPrivilegedSubscriber;
123 DestInfoBuilder setPrivilegedSubscriber(boolean privilegedSubscriber) {
124 this.destInfoPrivilegedSubscriber = privilegedSubscriber;
128 boolean isFollowRedirects() {
129 return destInfoFollowRedirects;
132 DestInfoBuilder setFollowRedirects(boolean followRedirects) {
133 this.destInfoFollowRedirects = followRedirects;
137 boolean isDecompress() {
138 return destInfoDecompress;
141 DestInfoBuilder setDecompress(boolean decompress) {
142 this.destInfoDecompress = decompress;
146 DestInfo createDestInfo() {
147 return new DestInfo(this);