Merge "Convert models to JUnit 5"
[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, 2021 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.NoArgsConstructor;
32 import lombok.Setter;
33 import lombok.ToString;
34
35 @Getter
36 @Setter
37 @EqualsAndHashCode
38 @ToString
39 @NoArgsConstructor
40 public class SoRequestDetails implements Serializable {
41
42     private static final long serialVersionUID = -3283942659786236032L;
43
44     private SoModelInfo modelInfo;
45     private SoCloudConfiguration cloudConfiguration;
46     private SoRequestInfo requestInfo;
47     private SoSubscriberInfo subscriberInfo;
48     private List<SoRelatedInstanceListElement> relatedInstanceList = new LinkedList<>();
49     private SoRequestParameters requestParameters;
50     private List<Map<String, String>> configurationParameters = new LinkedList<>();
51
52     /**
53      * Constructor.
54      *
55      * @param soRequestDetails copy object
56      */
57     public SoRequestDetails(SoRequestDetails soRequestDetails) {
58         this.modelInfo = soRequestDetails.modelInfo;
59         this.cloudConfiguration = soRequestDetails.cloudConfiguration;
60         this.requestInfo = soRequestDetails.requestInfo;
61         this.relatedInstanceList = soRequestDetails.relatedInstanceList;
62         this.requestParameters = soRequestDetails.requestParameters;
63         this.subscriberInfo = soRequestDetails.subscriberInfo;
64     }
65 }