--- /dev/null
+/* Copyright (c) 2019 AT&T Intellectual Property. #\r
+# #\r
+# Licensed under the Apache License, Version 2.0 (the "License"); #\r
+# you may not use this file except in compliance with the License. #\r
+# You may obtain a copy of the License at #\r
+# #\r
+# http://www.apache.org/licenses/LICENSE-2.0 #\r
+# #\r
+# Unless required by applicable law or agreed to in writing, software #\r
+# distributed under the License is distributed on an "AS IS" BASIS, #\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+# See the License for the specific language governing permissions and #\r
+# limitations under the License. #\r
+##############################################################################*/\r
+\r
+\r
+package org.oran.otf.common.model.local;\r
+\r
+import org.oran.otf.common.utility.gson.Convert;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+\r
+public class DMaaPRequest {\r
+ private String hostname;\r
+ private String asyncTopic;\r
+ private boolean requiresProxy;\r
+\r
+ public DMaaPRequest() {\r
+ }\r
+\r
+ public DMaaPRequest(\r
+ @JsonProperty(value = "hostname", required = true) String hostname,\r
+ @JsonProperty(value = "asyncTopic", required = true) String asyncTopic,\r
+ @JsonProperty(value = "requriesProxy", required = false) boolean requiresProxy) {\r
+ this.hostname = hostname;\r
+ this.asyncTopic = asyncTopic;\r
+ this.requiresProxy = requiresProxy;\r
+\r
+ }\r
+\r
+ public String getHostname() {\r
+ return hostname;\r
+ }\r
+\r
+ public void setHostname(String hostname) {\r
+ this.hostname = hostname;\r
+ }\r
+\r
+ public String getAsyncTopic() {\r
+ return asyncTopic;\r
+ }\r
+\r
+ public void setAsyncTopic(String asyncTopic) {\r
+ this.asyncTopic = asyncTopic;\r
+ }\r
+\r
+ public boolean getRequiresProxy(){\r
+ return this.requiresProxy;\r
+ }\r
+\r
+ public void setRequiresProxy(boolean requiresProxy) {\r
+ this.requiresProxy = requiresProxy;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return Convert.objectToJson(this);\r
+ }\r
+}\r
+\r