AT&T 1712 and 1802 release code
[so.git] / common / src / main / java / org / openecomp / mso / serviceinstancebeans / RelatedInstanceList.java
@@ -1,42 +1,53 @@
-/*-\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
-public class RelatedInstanceList {\r
-\r
-       protected RelatedInstance relatedInstance;\r
-\r
-       public RelatedInstance getRelatedInstance() {\r
-               return relatedInstance;\r
-       }\r
-\r
-       public void setRelatedInstance(RelatedInstance relatedInstance) {\r
-               this.relatedInstance = relatedInstance;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return "RelatedInstanceList [relatedInstance=" + relatedInstance + "]";\r
-       }\r
-\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 = "relatedInstanceList")
+@JsonInclude(Include.NON_DEFAULT)
+public class RelatedInstanceList implements Serializable {
+
+       private static final long serialVersionUID = 6333898302094446243L;
+       @JsonProperty("relatedInstance")
+       protected RelatedInstance relatedInstance;
+
+       public RelatedInstance getRelatedInstance() {
+               return relatedInstance;
+       }
+
+       public void setRelatedInstance(RelatedInstance relatedInstance) {
+               this.relatedInstance = relatedInstance;
+       }
+
+       @Override
+       public String toString() {
+               return "RelatedInstanceList [relatedInstance=" + relatedInstance + "]";
+       }
+
+
+
+}