AT&T 1712 and 1802 release code
[so.git] / common / src / main / java / org / openecomp / mso / serviceinstancebeans / SubscriberInfo.java
@@ -1,85 +1,94 @@
-/*-\r
- * ============LICENSE_START=======================================================\r
- * ONAP - SO\r
- * ================================================================================\r
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\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
- * ============LICENSE_END=========================================================\r
- */\r
-\r
-package org.openecomp.mso.apihandlerinfra.serviceinstancebeans;\r
-\r
-import org.codehaus.jackson.map.annotate.JsonSerialize;\r
-\r
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_DEFAULT)\r
-public class SubscriberInfo {\r
-\r
-    protected String globalSubscriberId;\r
-    protected String subscriberName;\r
-\r
-    /**\r
-     * Gets the value of the globalSubscriberId property.\r
-     *\r
-     * @return\r
-     *     possible object is\r
-     *     {@link String }\r
-     *\r
-     */\r
-    public String getGlobalSubscriberId() {\r
-        return globalSubscriberId;\r
-    }\r
-\r
-    /**\r
-     * Sets the value of the globalSubscriberId property.\r
-     *\r
-     * @param value\r
-     *     allowed object is\r
-     *     {@link String }\r
-     *\r
-     */\r
-    public void setGlobalSubscriberId(String value) {\r
-        this.globalSubscriberId = value;\r
-    }\r
-\r
-    /**\r
-     * Gets the value of the subscriberName property.\r
-     *\r
-     * @return\r
-     *     possible object is\r
-     *     {@link String }\r
-     *\r
-     */\r
-    public String getSubscriberName() {\r
-        return subscriberName;\r
-    }\r
-\r
-    /**\r
-     * Sets the value of the subscriberName property.\r
-     *\r
-     * @param value\r
-     *     allowed object is\r
-     *     {@link String }\r
-     *\r
-     */\r
-    public void setSubscriberName(String value) {\r
-        this.subscriberName = value;\r
-    }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return "SubscriberInfo [globalSubscriberId=" + globalSubscriberId\r
-                               + ", subscriberName=" + subscriberName + "]";\r
-       }\r
-\r
-}\r
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - SO
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. 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.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.mso.serviceinstancebeans;
+
+import java.io.Serializable;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonRootName;
+
+@JsonRootName(value = "subscriberInfo")
+@JsonInclude(Include.NON_DEFAULT)
+public class SubscriberInfo implements Serializable {
+
+       private static final long serialVersionUID = -1750701712128104652L;
+       @JsonProperty("globalSubscriberId")
+    protected String globalSubscriberId;
+       @JsonProperty("subscriberName")
+    protected String subscriberName;
+
+    /**
+     * Gets the value of the globalSubscriberId property.
+     *
+     * @return
+     *     possible object is
+     *     {@link String }
+     *
+     */
+    public String getGlobalSubscriberId() {
+        return globalSubscriberId;
+    }
+
+    /**
+     * Sets the value of the globalSubscriberId property.
+     *
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *
+     */
+    public void setGlobalSubscriberId(String value) {
+        this.globalSubscriberId = value;
+    }
+
+    /**
+     * Gets the value of the subscriberName property.
+     *
+     * @return
+     *     possible object is
+     *     {@link String }
+     *
+     */
+    public String getSubscriberName() {
+        return subscriberName;
+    }
+
+    /**
+     * Sets the value of the subscriberName property.
+     *
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *
+     */
+    public void setSubscriberName(String value) {
+        this.subscriberName = value;
+    }
+
+       @Override
+       public String toString() {
+               return "SubscriberInfo [globalSubscriberId=" + globalSubscriberId
+                               + ", subscriberName=" + subscriberName + "]";
+       }
+
+}