aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/dcaegen2/services/sonhms/model/Input.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/onap/dcaegen2/services/sonhms/model/Input.java')
-rw-r--r--src/main/java/org/onap/dcaegen2/services/sonhms/model/Input.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/model/Input.java b/src/main/java/org/onap/dcaegen2/services/sonhms/model/Input.java
new file mode 100644
index 0000000..e0df78a
--- /dev/null
+++ b/src/main/java/org/onap/dcaegen2/services/sonhms/model/Input.java
@@ -0,0 +1,70 @@
+/*******************************************************************************
+ * ============LICENSE_START=======================================================
+ * son-handler
+ * ================================================================================
+ * Copyright (C) 2022 Wipro Limited.
+ * ==============================================================================
+ * 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.
+ * ============LICENSE_END=========================================================
+ *
+ *******************************************************************************/
+
+package org.onap.dcaegen2.services.sonhms.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class Input {
+
+ @JsonProperty(value = "near-rt-ric-url")
+ private String url;
+
+ @JsonProperty("body")
+ private ANRPayload anrPayload;
+
+ public Input() {
+
+ }
+
+ /**
+ * Parameterized constructor.
+ */
+ public Input(String url, ANRPayload anrPayload) {
+ super();
+ this.url = url;
+ this.anrPayload = anrPayload;
+ }
+
+
+ public String getUrl() {
+ return url;
+ }
+
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ public ANRPayload getAnrPayload(){
+ return anrPayload;
+ }
+
+ public void setAnrPayload(ANRPayload anrPayload){
+ this.anrPayload = anrPayload;
+ }
+
+ @Override
+ public String toString() {
+ return "Input [url=" + url + ", anrPayload=" + anrPayload + "]";
+ }
+}
+