added openpojo tests for service instance beans 69/37769/2
authorBenjamin, Max (mb388a) <mb388a@us.att.com>
Thu, 22 Mar 2018 13:39:54 +0000 (09:39 -0400)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Thu, 22 Mar 2018 14:09:11 +0000 (10:09 -0400)
Change-Id: I97db02310eace781b41b1463239a519a7a167a12
Issue-ID: SO-513
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
21 files changed:
common/src/main/java/org/openecomp/mso/serviceinstancebeans/ExceptionType.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/GetOrchestrationListResponse.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/GetOrchestrationResponse.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/InstanceDirection.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/InstanceReferences.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/LineOfBusiness.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/ModelType.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/Platform.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/PolicyException.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/Project.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/RelatedInstance.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/Request.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/RequestError.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/RequestList.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/RequestParameters.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/RequestReferences.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/RequestStatus.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/ServiceException.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/ServiceInstancesRequest.java
common/src/main/java/org/openecomp/mso/serviceinstancebeans/ServiceInstancesResponse.java
common/src/test/java/org/openecomp/mso/serviceinstancebeans/ServiceInstanceBeansTest.java [new file with mode: 0644]

index d7dcea3..84518cf 100644 (file)
@@ -35,6 +35,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlSeeAlso;
 import javax.xml.bind.annotation.XmlType;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 
 /**
@@ -152,5 +153,15 @@ public class ExceptionType {
         }
         return this.variables;
     }
+    
+    public void setVariables(List<String> variables) {
+       this.variables = variables;
+    }
+
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("messageId", messageId).append("text", text)
+                               .append("variables", variables).toString();
+       }
 
 }
index 5cee0fa..adb1d38 100644 (file)
@@ -24,6 +24,7 @@ import java.util.List;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 @JsonInclude(Include.NON_DEFAULT)
 public class GetOrchestrationListResponse {
@@ -38,4 +39,9 @@ public class GetOrchestrationListResponse {
                this.requestList = requestList;
        }
 
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("requestList", requestList).toString();
+       }
+
 }
index 54b1b3b..8d57d57 100644 (file)
@@ -22,6 +22,8 @@ package org.openecomp.mso.serviceinstancebeans;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
 
 @JsonInclude(Include.NON_DEFAULT)
 public class GetOrchestrationResponse {
@@ -36,5 +38,10 @@ public class GetOrchestrationResponse {
                this.request = request;
        }
 
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("request", request).toString();
+       }
+
 
 }
index 3334db7..b49825e 100644 (file)
  * ============LICENSE_END=========================================================
  */
 
-package org.openecomp.mso.serviceinstancebeans;\r
-\r
-public enum InstanceDirection {\r
-\r
-    source,\r
-    destination;\r
-\r
-    public String value() {\r
-        return name();\r
-    }\r
-\r
-    public static InstanceDirection fromValue(String v) {\r
-        return valueOf(v);\r
-    }\r
-}\r
+package org.openecomp.mso.serviceinstancebeans;
+
+public enum InstanceDirection {
+
+    source,
+    destination;
+
+    public String value() {
+        return name();
+    }
+
+    public static InstanceDirection fromValue(String v) {
+        return valueOf(v);
+    }
+}
index c442188..17f0955 100644 (file)
@@ -20,6 +20,8 @@
 
 package org.openecomp.mso.serviceinstancebeans;
 
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
 
@@ -107,4 +109,15 @@ public class InstanceReferences {
        public void setRequestorId(String requestorId) {
                this.requestorId = requestorId;
        }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("serviceInstanceId", serviceInstanceId)
+                               .append("serviceInstanceName", serviceInstanceName).append("vnfInstanceId", vnfInstanceId)
+                               .append("vnfInstanceName", vnfInstanceName).append("vfModuleInstanceId", vfModuleInstanceId)
+                               .append("vfModuleInstanceName", vfModuleInstanceName)
+                               .append("volumeGroupInstanceId", volumeGroupInstanceId)
+                               .append("volumeGroupInstanceName", volumeGroupInstanceName)
+                               .append("networkInstanceId", networkInstanceId).append("networkInstanceName", networkInstanceName)
+                               .append("requestorId", requestorId).toString();
+       }
 }
index 818d5e0..ce46291 100644 (file)
@@ -26,6 +26,7 @@ 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;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 @JsonRootName(value = "lineOfBusiness")
 @JsonInclude(Include.NON_DEFAULT)
@@ -41,4 +42,8 @@ public class LineOfBusiness implements Serializable {
        public void setLineOfBusinessName(String value){
                this.lineOfBusinessName = value;
        }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("lineOfBusinessName", lineOfBusinessName).toString();
+       }
 }
index c7e6615..1080c57 100644 (file)
@@ -21,7 +21,7 @@
 package org.openecomp.mso.serviceinstancebeans;
 
 /*
- * Enum for Model Type values returned by API Handler to BPMN\r
+ * Enum for Model Type values returned by API Handler to BPMN
 */
 public enum ModelType {
        service,
index 37841e0..a7a34cc 100644 (file)
@@ -26,6 +26,7 @@ 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;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 @JsonInclude(Include.NON_DEFAULT)
 @JsonRootName(value = "platform")
@@ -41,4 +42,8 @@ public class Platform implements Serializable {
        public void setPlatformName(String value){
                this.platformName = value;
        }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("platformName", platformName).toString();
+       }
 }
index 0afd600..dfa23f6 100644 (file)
@@ -1,59 +1,59 @@
-/*-\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
-//\r
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 \r
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \r
-// Any modifications to this file will be lost upon recompilation of the source schema. \r
-// Generated on: 2016.03.30 at 02:48:23 PM CDT \r
-//\r
-\r
-\r
-package org.openecomp.mso.serviceinstancebeans;\r
-\r
-import javax.xml.bind.annotation.XmlAccessType;\r
-import javax.xml.bind.annotation.XmlAccessorType;\r
-import javax.xml.bind.annotation.XmlType;\r
-\r
-\r
-/**\r
- * <p>Java class for policyException complex type.\r
- * \r
- * <p>The following schema fragment specifies the expected content contained within this class.\r
- * \r
- * <pre>\r
- * &lt;complexType name="policyException">\r
- *   &lt;complexContent>\r
- *     &lt;extension base="{http://org.openecomp/mso/request/types/v1}exceptionType">\r
- *     &lt;/extension>\r
- *   &lt;/complexContent>\r
- * &lt;/complexType>\r
- * </pre>\r
- * \r
- * \r
- */\r
-@XmlAccessorType(XmlAccessType.FIELD)\r
-@XmlType(name = "policyException")\r
-public class PolicyException\r
-    extends ExceptionType\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=========================================================
+ */
+
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2016.03.30 at 02:48:23 PM CDT 
+//
+
+
+package org.openecomp.mso.serviceinstancebeans;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for policyException complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="policyException">
+ *   &lt;complexContent>
+ *     &lt;extension base="{http://org.openecomp/mso/request/types/v1}exceptionType">
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "policyException")
+public class PolicyException
+    extends ExceptionType
+{
+
+
+}
index d073616..b7e8016 100644 (file)
@@ -26,6 +26,7 @@ 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;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 @JsonRootName(value = "project")
 @JsonInclude(Include.NON_DEFAULT)
@@ -42,4 +43,9 @@ public class Project implements Serializable {
        public void setProjectName(String value) {
                this.projectName = value;
        }
+
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("projectName", projectName).toString();
+       }
 }
index 8e4dbd0..60e7d9b 100644 (file)
@@ -26,6 +26,7 @@ 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;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 @JsonRootName(value = "relatedInstance")
 @JsonInclude(Include.NON_DEFAULT)
@@ -67,4 +68,9 @@ public class RelatedInstance implements Serializable {
        public void setInstanceDirection(InstanceDirection instanceDirection) {
                this.instanceDirection = instanceDirection;
        }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("instanceName", instanceName).append("instanceId", instanceId)
+                               .append("modelInfo", modelInfo).append("instanceDirection", instanceDirection).toString();
+       }
 }
index ef9020d..0671089 100644 (file)
@@ -22,6 +22,7 @@ package org.openecomp.mso.serviceinstancebeans;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 //@JsonRootName(value = "request")
 @JsonInclude(Include.NON_DEFAULT)
@@ -79,5 +80,12 @@ public class Request {
        public void setRequestDetails(RequestDetails requestDetails) {
                this.requestDetails = requestDetails;
        }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("requestId", requestId).append("startTime", startTime)
+                               .append("requestScope", requestScope).append("requestType", requestType)
+                               .append("requestDetails", requestDetails).append("instanceReferences", instanceReferences)
+                               .append("requestStatus", requestStatus).toString();
+       }
 
 }
index d57364a..efd5358 100644 (file)
-/*-\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
-//\r
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 \r
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \r
-// Any modifications to this file will be lost upon recompilation of the source schema. \r
-// Generated on: 2016.04.07 at 08:25:52 AM CDT \r
-//\r
-\r
-\r
-package org.openecomp.mso.serviceinstancebeans;\r
-\r
-import javax.xml.bind.annotation.XmlAccessType;\r
-import javax.xml.bind.annotation.XmlAccessorType;\r
-import javax.xml.bind.annotation.XmlRootElement;\r
-import javax.xml.bind.annotation.XmlType;\r
-\r
-\r
-/**\r
- * <p>Java class for anonymous complex type.\r
- * \r
- * <p>The following schema fragment specifies the expected content contained within this class.\r
- * \r
- * <pre>\r
- * &lt;complexType>\r
- *   &lt;complexContent>\r
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
- *       &lt;sequence>\r
- *         &lt;choice>\r
- *           &lt;element name="policyException" type="{http://org.openecomp/mso/request/types/v1}policyException"/>\r
- *           &lt;element name="serviceException" type="{http://org.openecomp/mso/request/types/v1}serviceException"/>\r
- *         &lt;/choice>\r
- *       &lt;/sequence>\r
- *     &lt;/restriction>\r
- *   &lt;/complexContent>\r
- * &lt;/complexType>\r
- * </pre>\r
- * \r
- * \r
- */\r
-@XmlAccessorType(XmlAccessType.FIELD)\r
-@XmlType(name = "", propOrder = {\r
-    "policyException",\r
-    "serviceException"\r
-})\r
-@XmlRootElement(name = "requestError")\r
-public class RequestError {\r
-\r
-    protected PolicyException policyException;\r
-    protected ServiceException serviceException;\r
-\r
-    /**\r
-     * Gets the value of the policyException property.\r
-     * \r
-     * @return\r
-     *     possible object is\r
-     *     {@link PolicyException }\r
-     *     \r
-     */\r
-    public PolicyException getPolicyException() {\r
-        return policyException;\r
-    }\r
-\r
-    /**\r
-     * Sets the value of the policyException property.\r
-     * \r
-     * @param value\r
-     *     allowed object is\r
-     *     {@link PolicyException }\r
-     *     \r
-     */\r
-    public void setPolicyException(PolicyException value) {\r
-        this.policyException = value;\r
-    }\r
-\r
-    /**\r
-     * Gets the value of the serviceException property.\r
-     * \r
-     * @return\r
-     *     possible object is\r
-     *     {@link ServiceException }\r
-     *     \r
-     */\r
-    public ServiceException getServiceException() {\r
-        return serviceException;\r
-    }\r
-\r
-    /**\r
-     * Sets the value of the serviceException property.\r
-     * \r
-     * @param value\r
-     *     allowed object is\r
-     *     {@link ServiceException }\r
-     *     \r
-     */\r
-    public void setServiceException(ServiceException value) {\r
-        this.serviceException = value;\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=========================================================
+ */
+
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2016.04.07 at 08:25:52 AM CDT 
+//
+
+
+package org.openecomp.mso.serviceinstancebeans;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;choice>
+ *           &lt;element name="policyException" type="{http://org.openecomp/mso/request/types/v1}policyException"/>
+ *           &lt;element name="serviceException" type="{http://org.openecomp/mso/request/types/v1}serviceException"/>
+ *         &lt;/choice>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "policyException",
+    "serviceException"
+})
+@XmlRootElement(name = "requestError")
+public class RequestError {
+
+    protected PolicyException policyException;
+    protected ServiceException serviceException;
+
+    /**
+     * Gets the value of the policyException property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link PolicyException }
+     *     
+     */
+    public PolicyException getPolicyException() {
+        return policyException;
+    }
+
+    /**
+     * Sets the value of the policyException property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link PolicyException }
+     *     
+     */
+    public void setPolicyException(PolicyException value) {
+        this.policyException = value;
+    }
+
+    /**
+     * Gets the value of the serviceException property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ServiceException }
+     *     
+     */
+    public ServiceException getServiceException() {
+        return serviceException;
+    }
+
+    /**
+     * Sets the value of the serviceException property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ServiceException }
+     *     
+     */
+    public void setServiceException(ServiceException value) {
+        this.serviceException = value;
+    }
+
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("policyException", policyException)
+                               .append("serviceException", serviceException).toString();
+       }
+
+}
index 05e1ab9..799e2f8 100644 (file)
@@ -1,38 +1,44 @@
-/*-\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.serviceinstancebeans;\r
-\r
-import java.util.List;\r
-\r
-\r
-public class RequestList {\r
-\r
-    protected Request request;\r
-\r
-       public Request getRequest() {\r
-               return request;\r
-       }\r
-\r
-       public void setRequest(Request request) {\r
-               this.request = request;\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.util.List;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+
+public class RequestList {
+
+    protected Request request;
+
+       public Request getRequest() {
+               return request;
+       }
+
+       public void setRequest(Request request) {
+               this.request = request;
+       }
+
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("request", request).toString();
+       }
+
+}
index ba65c08..45ca91f 100644 (file)
-/*-\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.serviceinstancebeans;\r
-\r
-import java.io.Serializable;\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-import java.util.Map;\r
-\r
-import com.fasterxml.jackson.annotation.JsonInclude;\r
-import com.fasterxml.jackson.annotation.JsonInclude.Include;\r
-import com.fasterxml.jackson.annotation.JsonProperty;\r
-import com.fasterxml.jackson.annotation.JsonRootName;\r
-\r
-@JsonRootName(value = "requestParameters")\r
-@JsonInclude(Include.NON_DEFAULT)\r
-public class RequestParameters implements Serializable {\r
-\r
-       private static final long serialVersionUID = -5979049912538894930L;\r
-       @JsonProperty("subscriptionServiceType")\r
-       private String subscriptionServiceType;\r
-       @JsonProperty("userParams")\r
-       private List<Map<String, Object>> userParams = new ArrayList<>();\r
-       @JsonProperty("aLaCarte")\r
-       private Boolean aLaCarte;\r
-       @JsonProperty("autoBuildVfModules")\r
-       private Boolean autoBuildVfModules;\r
-       @JsonProperty("cascadeDelete")\r
-       private Boolean cascadeDelete;\r
-       @JsonProperty("usePreload")\r
-       private Boolean usePreload; // usePreload would always be true for Update\r
-       @JsonProperty("rebuildVolumeGroups")\r
-       private Boolean rebuildVolumeGroups;\r
-       @JsonProperty("payload")\r
-       private String payload;\r
-\r
-       public String getSubscriptionServiceType() {\r
-               return subscriptionServiceType;\r
-       }\r
-\r
-       public void setSubscriptionServiceType(String subscriptionServiceType) {\r
-               this.subscriptionServiceType = subscriptionServiceType;\r
-       }\r
-\r
-       public Boolean getALaCarte() {\r
-               return aLaCarte;\r
-       }\r
-\r
-       public void setaLaCarte(boolean aLaCarte) {\r
-               this.aLaCarte = aLaCarte;\r
-       }\r
-       \r
-       public Boolean isaLaCarte() {\r
-               return aLaCarte;\r
-       }\r
-\r
-       public List<Map<String, Object>> getUserParams() {\r
-               return userParams;\r
-       }\r
-\r
-       public void setUserParams(List<Map<String, Object>> userParams) {\r
-               this.userParams = userParams;\r
-       }\r
-\r
-       public String getUserParamValue(String name){\r
-               if(userParams!=null){\r
-                       for(Map<String, Object> param:userParams){\r
-                               if(param.get("name").equals(name)){\r
-                                       return param.get("value").toString();\r
-                               }\r
-                       }\r
-               }\r
-               return null;\r
-       }\r
-\r
-       public Boolean getAutoBuildVfModules() {\r
-               return autoBuildVfModules;\r
-       }\r
-\r
-       public void setAutoBuildVfModules(boolean autoBuildVfModules) {\r
-               this.autoBuildVfModules = autoBuildVfModules;\r
-       }\r
-\r
-       public Boolean getCascadeDelete() {\r
-               return cascadeDelete;\r
-       }\r
-\r
-       public void setCascadeDelete(boolean cascadeDelete) {\r
-               this.cascadeDelete = cascadeDelete;\r
-       }\r
-\r
-       public Boolean isUsePreload() {\r
-               return usePreload;\r
-       }\r
-\r
-       public void setUsePreload(boolean usePreload) {\r
-               this.usePreload = usePreload;\r
-       }\r
-       \r
-       public Boolean rebuildVolumeGroups() {\r
-               return rebuildVolumeGroups;\r
-       }\r
-\r
-       public void setRebuildVolumeGroups(boolean rebuildVolumeGroups) {\r
-               this.rebuildVolumeGroups = rebuildVolumeGroups;\r
-       }\r
-       public String getPayload(){\r
-               return payload;\r
-       }\r
-       public void setPayload(String value){\r
-               this.payload = value;\r
-       }\r
-       \r
-       @Override\r
-       public String toString() {\r
-               return "RequestParameters [subscriptionServiceType="\r
-                               + subscriptionServiceType + ", userParams=" + userParams\r
-                               + ", aLaCarte=" + aLaCarte + ", autoBuildVfModules="\r
-                               + autoBuildVfModules + ", usePreload="\r
-                               + usePreload + ", rebuildVolumeGroups="\r
-                               + rebuildVolumeGroups + ", payload=" + payload + "]";\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 java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+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 = "requestParameters")
+@JsonInclude(Include.NON_DEFAULT)
+public class RequestParameters implements Serializable {
+
+       private static final long serialVersionUID = -5979049912538894930L;
+       @JsonProperty("subscriptionServiceType")
+       private String subscriptionServiceType;
+       @JsonProperty("userParams")
+       private List<Map<String, Object>> userParams = new ArrayList<>();
+       @JsonProperty("aLaCarte")
+       private Boolean aLaCarte;
+       @JsonProperty("autoBuildVfModules")
+       private Boolean autoBuildVfModules;
+       @JsonProperty("cascadeDelete")
+       private Boolean cascadeDelete;
+       @JsonProperty("usePreload")
+       private Boolean usePreload; // usePreload would always be true for Update
+       @JsonProperty("rebuildVolumeGroups")
+       private Boolean rebuildVolumeGroups;
+       @JsonProperty("payload")
+       private String payload;
+
+       public String getSubscriptionServiceType() {
+               return subscriptionServiceType;
+       }
+
+       public void setSubscriptionServiceType(String subscriptionServiceType) {
+               this.subscriptionServiceType = subscriptionServiceType;
+       }
+
+       public Boolean getALaCarte() {
+               return aLaCarte;
+       }
+
+       public void setaLaCarte(Boolean aLaCarte) {
+               this.aLaCarte = aLaCarte;
+       }
+       
+       public Boolean isaLaCarte() {
+               return aLaCarte;
+       }
+
+       public List<Map<String, Object>> getUserParams() {
+               return userParams;
+       }
+
+       public void setUserParams(List<Map<String, Object>> userParams) {
+               this.userParams = userParams;
+       }
+
+       public String getUserParamValue(String name){
+               if(userParams!=null){
+                       for(Map<String, Object> param:userParams){
+                               if(param.get("name").equals(name)){
+                                       return param.get("value").toString();
+                               }
+                       }
+               }
+               return null;
+       }
+
+       public Boolean getAutoBuildVfModules() {
+               return autoBuildVfModules;
+       }
+
+       public void setAutoBuildVfModules(Boolean autoBuildVfModules) {
+               this.autoBuildVfModules = autoBuildVfModules;
+       }
+
+       public Boolean getCascadeDelete() {
+               return cascadeDelete;
+       }
+
+       public void setCascadeDelete(Boolean cascadeDelete) {
+               this.cascadeDelete = cascadeDelete;
+       }
+
+       public Boolean isUsePreload() {
+               return usePreload;
+       }
+
+       public void setUsePreload(Boolean usePreload) {
+               this.usePreload = usePreload;
+       }
+       
+       public Boolean rebuildVolumeGroups() {
+               return rebuildVolumeGroups;
+       }
+
+       public Boolean isRebuildVolumeGroups() {
+               return rebuildVolumeGroups;
+       }
+       public void setRebuildVolumeGroups(Boolean rebuildVolumeGroups) {
+               this.rebuildVolumeGroups = rebuildVolumeGroups;
+       }
+       public String getPayload(){
+               return payload;
+       }
+       public void setPayload(String value){
+               this.payload = value;
+       }
+       
+       @Override
+       public String toString() {
+               return "RequestParameters [subscriptionServiceType="
+                               + subscriptionServiceType + ", userParams=" + userParams
+                               + ", aLaCarte=" + aLaCarte + ", autoBuildVfModules="
+                               + autoBuildVfModules + ", usePreload="
+                               + usePreload + ", rebuildVolumeGroups="
+                               + rebuildVolumeGroups + ", payload=" + payload + "]";
+       }
+}
index b01dfd9..d4d7019 100644 (file)
@@ -1,43 +1,49 @@
-/*-\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.serviceinstancebeans;\r
-\r
-public class RequestReferences {\r
-       \r
-       String requestId;\r
-       String instanceId;\r
-       \r
-       \r
-       public String getRequestId() {\r
-               return requestId;\r
-       }\r
-       public void setRequestId(String requestId) {\r
-               this.requestId = requestId;\r
-       }\r
-       public String getInstanceId() {\r
-               return instanceId;\r
-       }\r
-       public void setInstanceId(String instanceId) {\r
-               this.instanceId = instanceId;\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 org.apache.commons.lang3.builder.ToStringBuilder;
+
+public class RequestReferences {
+       
+       String requestId;
+       String instanceId;
+       
+       
+       public String getRequestId() {
+               return requestId;
+       }
+       public void setRequestId(String requestId) {
+               this.requestId = requestId;
+       }
+       public String getInstanceId() {
+               return instanceId;
+       }
+       public void setInstanceId(String instanceId) {
+               this.instanceId = instanceId;
+       }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("requestId", requestId).append("instanceId", instanceId).toString();
+       }
+
+
+}
index 58a9c2c..d6a8fc0 100644 (file)
@@ -22,6 +22,7 @@ package org.openecomp.mso.serviceinstancebeans;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 
 @JsonInclude(Include.NON_DEFAULT)
 public class RequestStatus {
@@ -56,4 +57,9 @@ public class RequestStatus {
        public void setFinishTime(String finishTime) {
                this.finishTime = finishTime;
        }
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("requestState", requestState).append("statusMessage", statusMessage)
+                               .append("percentProgress", percentProgress).append("finishTime", finishTime).toString();
+       }
 }
index 5eacefe..0fe8b5f 100644 (file)
@@ -1,59 +1,59 @@
-/*-\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
-//\r
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 \r
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \r
-// Any modifications to this file will be lost upon recompilation of the source schema. \r
-// Generated on: 2016.03.30 at 02:48:23 PM CDT \r
-//\r
-\r
-\r
-package org.openecomp.mso.serviceinstancebeans;\r
-\r
-import javax.xml.bind.annotation.XmlAccessType;\r
-import javax.xml.bind.annotation.XmlAccessorType;\r
-import javax.xml.bind.annotation.XmlType;\r
-\r
-\r
-/**\r
- * <p>Java class for serviceException complex type.\r
- * \r
- * <p>The following schema fragment specifies the expected content contained within this class.\r
- * \r
- * <pre>\r
- * &lt;complexType name="serviceException">\r
- *   &lt;complexContent>\r
- *     &lt;extension base="{http://org.openecomp/mso/request/types/v1}exceptionType">\r
- *     &lt;/extension>\r
- *   &lt;/complexContent>\r
- * &lt;/complexType>\r
- * </pre>\r
- * \r
- * \r
- */\r
-@XmlAccessorType(XmlAccessType.FIELD)\r
-@XmlType(name = "serviceException")\r
-public class ServiceException\r
-    extends ExceptionType\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=========================================================
+ */
+
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2016.03.30 at 02:48:23 PM CDT 
+//
+
+
+package org.openecomp.mso.serviceinstancebeans;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for serviceException complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="serviceException">
+ *   &lt;complexContent>
+ *     &lt;extension base="{http://org.openecomp/mso/request/types/v1}exceptionType">
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "serviceException")
+public class ServiceException
+    extends ExceptionType
+{
+
+
+}
index 4f8c1a0..a894ffc 100644 (file)
-/*-\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.serviceinstancebeans;\r
-\r
-import java.io.Serializable;\r
-\r
-import com.fasterxml.jackson.annotation.JsonProperty;\r
-\r
-public class ServiceInstancesRequest implements Serializable {\r
-\r
-       private static final long serialVersionUID = -4959169541182257787L;\r
-       @JsonProperty("requestDetails")\r
-       private RequestDetails requestDetails;\r
-       @JsonProperty("serviceInstanceId")\r
-       private String serviceInstanceId;\r
-       @JsonProperty("vnfInstanceId")\r
-       private String vnfInstanceId;\r
-       @JsonProperty("networkInstanceId")\r
-       private String networkInstanceId;\r
-       @JsonProperty("volumeGroupInstanceId")\r
-       private String volumeGroupInstanceId;\r
-       @JsonProperty("vfModuleInstanceId")\r
-       private String vfModuleInstanceId;\r
-       @JsonProperty("configurationId")\r
-       private String configurationId;\r
-\r
-       public RequestDetails getRequestDetails() {\r
-               return requestDetails;\r
-       }\r
-\r
-       public void setRequestDetails(RequestDetails requestDetails) {\r
-               this.requestDetails = requestDetails;\r
-       }\r
-\r
-       public String getServiceInstanceId() {\r
-               return serviceInstanceId;\r
-       }\r
-\r
-       public void setServiceInstanceId(String serviceInstanceId) {\r
-               this.serviceInstanceId = serviceInstanceId;\r
-       }\r
-\r
-       public String getVnfInstanceId() {\r
-               return vnfInstanceId;\r
-       }\r
-\r
-       public void setVnfInstanceId(String vnfInstanceId) {\r
-               this.vnfInstanceId = vnfInstanceId;\r
-       }\r
-\r
-       public String getNetworkInstanceId() {\r
-               return networkInstanceId;\r
-       }\r
-\r
-       public void setNetworkInstanceId(String networkInstanceId) {\r
-               this.networkInstanceId = networkInstanceId;\r
-       }\r
-\r
-       public String getVolumeGroupInstanceId() {\r
-               return volumeGroupInstanceId;\r
-       }\r
-\r
-       public void setVolumeGroupInstanceId(String volumeGroupInstanceId) {\r
-               this.volumeGroupInstanceId = volumeGroupInstanceId;\r
-       }\r
-\r
-       public String getVfModuleInstanceId() {\r
-               return vfModuleInstanceId;\r
-       }\r
-\r
-       public void setVfModuleInstanceId(String vfModuleInstanceId) {\r
-               this.vfModuleInstanceId = vfModuleInstanceId;\r
-       }\r
-\r
-       public String getConfigurationId() {\r
-               return configurationId;\r
-       }\r
-\r
-       public void setConfigurationId(String configurationId) {\r
-               this.configurationId = configurationId;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return "ServiceInstancesRequest [requestDetails=" + requestDetails\r
-                               + ", serviceInstanceId=" + serviceInstanceId\r
-                               + ", vnfInstanceId=" + vnfInstanceId + ", networkInstanceId="\r
-                               + networkInstanceId + ", volumeGroupInstanceId="\r
-                               + volumeGroupInstanceId + ", vfModuleInstanceId="\r
-                               + vfModuleInstanceId + ", configurationId="\r
-                               + configurationId + ",]";\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.JsonProperty;
+
+public class ServiceInstancesRequest implements Serializable {
+
+       private static final long serialVersionUID = -4959169541182257787L;
+       @JsonProperty("requestDetails")
+       private RequestDetails requestDetails;
+       @JsonProperty("serviceInstanceId")
+       private String serviceInstanceId;
+       @JsonProperty("vnfInstanceId")
+       private String vnfInstanceId;
+       @JsonProperty("networkInstanceId")
+       private String networkInstanceId;
+       @JsonProperty("volumeGroupInstanceId")
+       private String volumeGroupInstanceId;
+       @JsonProperty("vfModuleInstanceId")
+       private String vfModuleInstanceId;
+       @JsonProperty("configurationId")
+       private String configurationId;
+
+       public RequestDetails getRequestDetails() {
+               return requestDetails;
+       }
+
+       public void setRequestDetails(RequestDetails requestDetails) {
+               this.requestDetails = requestDetails;
+       }
+
+       public String getServiceInstanceId() {
+               return serviceInstanceId;
+       }
+
+       public void setServiceInstanceId(String serviceInstanceId) {
+               this.serviceInstanceId = serviceInstanceId;
+       }
+
+       public String getVnfInstanceId() {
+               return vnfInstanceId;
+       }
+
+       public void setVnfInstanceId(String vnfInstanceId) {
+               this.vnfInstanceId = vnfInstanceId;
+       }
+
+       public String getNetworkInstanceId() {
+               return networkInstanceId;
+       }
+
+       public void setNetworkInstanceId(String networkInstanceId) {
+               this.networkInstanceId = networkInstanceId;
+       }
+
+       public String getVolumeGroupInstanceId() {
+               return volumeGroupInstanceId;
+       }
+
+       public void setVolumeGroupInstanceId(String volumeGroupInstanceId) {
+               this.volumeGroupInstanceId = volumeGroupInstanceId;
+       }
+
+       public String getVfModuleInstanceId() {
+               return vfModuleInstanceId;
+       }
+
+       public void setVfModuleInstanceId(String vfModuleInstanceId) {
+               this.vfModuleInstanceId = vfModuleInstanceId;
+       }
+
+       public String getConfigurationId() {
+               return configurationId;
+       }
+
+       public void setConfigurationId(String configurationId) {
+               this.configurationId = configurationId;
+       }
+
+       @Override
+       public String toString() {
+               return "ServiceInstancesRequest [requestDetails=" + requestDetails
+                               + ", serviceInstanceId=" + serviceInstanceId
+                               + ", vnfInstanceId=" + vnfInstanceId + ", networkInstanceId="
+                               + networkInstanceId + ", volumeGroupInstanceId="
+                               + volumeGroupInstanceId + ", vfModuleInstanceId="
+                               + vfModuleInstanceId + ", configurationId="
+                               + configurationId + ",]";
+       }
+
+}
index 339c965..614a87d 100644 (file)
@@ -1,36 +1,43 @@
-/*-\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.serviceinstancebeans;\r
-\r
-public class ServiceInstancesResponse {\r
-       \r
-       RequestReferences requestReferences;\r
-\r
-       public RequestReferences getRequestReferences() {\r
-               return requestReferences;\r
-       }\r
-\r
-       public void setRequestReferences(RequestReferences requestReferences) {\r
-               this.requestReferences = requestReferences;\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 org.apache.commons.lang3.builder.ToStringBuilder;
+
+public class ServiceInstancesResponse {
+       
+       RequestReferences requestReferences;
+
+       public RequestReferences getRequestReferences() {
+               return requestReferences;
+       }
+
+       public void setRequestReferences(RequestReferences requestReferences) {
+               this.requestReferences = requestReferences;
+       }
+
+       @Override
+       public String toString() {
+               return new ToStringBuilder(this).append("requestReferences", requestReferences).toString();
+       }
+       
+
+}
diff --git a/common/src/test/java/org/openecomp/mso/serviceinstancebeans/ServiceInstanceBeansTest.java b/common/src/test/java/org/openecomp/mso/serviceinstancebeans/ServiceInstanceBeansTest.java
new file mode 100644 (file)
index 0000000..f085330
--- /dev/null
@@ -0,0 +1,64 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - SO
+ * ================================================================================
+ * Copyright (C) 2018 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 org.junit.Test;
+import org.openecomp.mso.openpojo.rules.HasToStringRule;
+import org.openecomp.mso.openpojo.rules.ToStringTester;
+
+import com.openpojo.reflection.PojoClass;
+import com.openpojo.reflection.PojoClassFilter;
+import com.openpojo.reflection.filters.FilterEnum;
+import com.openpojo.reflection.filters.FilterPackageInfo;
+import com.openpojo.validation.Validator;
+import com.openpojo.validation.ValidatorBuilder;
+import com.openpojo.validation.rule.impl.GetterMustExistRule;
+import com.openpojo.validation.rule.impl.SetterMustExistRule;
+import com.openpojo.validation.test.impl.GetterTester;
+import com.openpojo.validation.test.impl.SetterTester;
+
+public class ServiceInstanceBeansTest {
+       
+       private PojoClassFilter filterTestClasses = new FilterTestClasses();
+
+       @Test
+       public void pojoStructure() {
+               test("org.openecomp.mso.serviceinstancebeans");
+       }
+
+       private void test(String pojoPackage) {
+               Validator validator = ValidatorBuilder.create()
+                               .with(new GetterMustExistRule())
+                               .with(new SetterMustExistRule())
+                               .with(new HasToStringRule())
+                               .with(new SetterTester())
+                               .with(new GetterTester())
+                               .with(new ToStringTester())
+                               .build();
+               validator.validate(pojoPackage, new FilterPackageInfo(), new FilterEnum(), filterTestClasses);
+       }
+       private static class FilterTestClasses implements PojoClassFilter {
+               public boolean include(PojoClass pojoClass) {
+                       return !pojoClass.getSourcePath().contains("/test-classes/");
+               }
+       }
+       
+}