Address sonar issues in models
[policy/models.git] / models-interactions / model-impl / so / src / main / java / org / onap / policy / so / SoRequestDetails.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * so
4  * ================================================================================
5  * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
6  * Modifications Copyright (C) 2019 Nordix Foundation.
7  * Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.policy.so;
24
25 import java.io.Serializable;
26 import java.util.LinkedList;
27 import java.util.List;
28 import java.util.Map;
29 import lombok.EqualsAndHashCode;
30 import lombok.Getter;
31 import lombok.Setter;
32
33 @Getter
34 @Setter
35 @EqualsAndHashCode
36 public class SoRequestDetails implements Serializable {
37
38     private static final long serialVersionUID = -3283942659786236032L;
39
40     private SoModelInfo modelInfo;
41     private SoCloudConfiguration cloudConfiguration;
42     private SoRequestInfo requestInfo;
43     private SoSubscriberInfo subscriberInfo;
44     private List<SoRelatedInstanceListElement> relatedInstanceList = new LinkedList<>();
45     private SoRequestParameters requestParameters;
46     private List<Map<String, String>> configurationParameters = new LinkedList<>();
47
48     public SoRequestDetails() {
49     }
50
51     /**
52      * Constructor.
53      *
54      * @param soRequestDetails copy object
55      */
56     public SoRequestDetails(SoRequestDetails soRequestDetails) {
57         this.modelInfo = soRequestDetails.modelInfo;
58         this.cloudConfiguration = soRequestDetails.cloudConfiguration;
59         this.requestInfo = soRequestDetails.requestInfo;
60         this.relatedInstanceList = soRequestDetails.relatedInstanceList;
61         this.requestParameters = soRequestDetails.requestParameters;
62         this.subscriberInfo = soRequestDetails.subscriberInfo;
63     }
64
65     @Override
66     public String toString() {
67         return "SORequestDetails [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration
68             + ", requestInfo=" + requestInfo + ", subscriberInfo=" + subscriberInfo
69             + ", relatedInstanceList=" + relatedInstanceList + ", requestParameters=" + requestParameters
70             + ", configurationParameters=" + configurationParameters + "]";
71     }
72
73 }