0364043e8ef4fa952bec8389f117796aa9e091d1
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / RequestDetails.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.serviceinstancebeans;
22
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.Arrays;
26 import java.util.List;
27 import java.util.Map;
28
29 import com.fasterxml.jackson.annotation.JsonInclude;
30 import com.fasterxml.jackson.annotation.JsonInclude.Include;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonRootName;
33
34 @JsonRootName(value = "requestDetails")
35 @JsonInclude(Include.NON_DEFAULT)
36 public class RequestDetails implements Serializable {
37
38         private static final long serialVersionUID = -73080684945860609L;
39         @JsonProperty("modelInfo")
40     protected ModelInfo modelInfo;
41         @JsonProperty("requestInfo")
42     protected RequestInfo requestInfo;
43         @JsonProperty("relatedInstanceList")
44     protected RelatedInstanceList[] relatedInstanceList;
45         @JsonProperty("subscriberInfo")
46     protected SubscriberInfo subscriberInfo;
47         @JsonProperty("cloudConfiguration")
48     protected CloudConfiguration cloudConfiguration;
49         @JsonProperty("requestParameters")
50     protected RequestParameters requestParameters;
51         @JsonProperty("project")
52     protected Project project;
53         @JsonProperty("owningEntity")
54     protected OwningEntity owningEntity;
55         @JsonProperty("platform")
56     protected Platform platform;
57         @JsonProperty("lineOfBusiness")
58     protected LineOfBusiness lineOfBusiness;
59         @JsonProperty("instanceName")
60         private List<Map<String, String>> instanceName = new ArrayList<>();
61         @JsonProperty("configurationParameters")
62         protected List<Map<String, String>> configurationParameters = new ArrayList<>();
63     
64
65         /**
66      * Gets the value of the serviceInfo property.
67      *
68      * @return
69      *     possible object is
70      *     {@link ModelInfo }
71      *
72      */
73     public ModelInfo getModelInfo() {
74         return modelInfo;
75     }
76
77     /**
78      * Sets the value of the serviceInfo property.
79      *
80      * @param value
81      *     allowed object is
82      *     {@link ModelInfo }
83      *
84      */
85     public void setModelInfo(ModelInfo value) {
86         this.modelInfo = value;
87     }
88
89     /**
90      * Gets the value of the requestInfo property.
91      *
92      * @return
93      *     possible object is
94      *     {@link RequestInfo }
95      *
96      */
97     public RequestInfo getRequestInfo() {
98         return requestInfo;
99     }
100
101     /**
102      * Sets the value of the requestInfo property.
103      *
104      * @param value
105      *     allowed object is
106      *     {@link RequestInfo }
107      *
108      */
109     public void setRequestInfo(RequestInfo value) {
110         this.requestInfo = value;
111     }
112
113     /**
114      * Gets the value of the subscriberInfo property.
115      *
116      * @return
117      *     possible object is
118      *     {@link SubscriberInfo }
119      *
120      */
121     public SubscriberInfo getSubscriberInfo() {
122         return subscriberInfo;
123     }
124
125     /**
126      * Sets the value of the subscriberInfo property.
127      *
128      * @param value
129      *     allowed object is
130      *     {@link SubscriberInfo }
131      *
132      */
133     public void setSubscriberInfo(SubscriberInfo value) {
134         this.subscriberInfo = value;
135     }
136
137     /**
138      * Gets the value of the cloudConfiguration property.
139      *
140      * @return
141      *     possible object is
142      *     {@link CloudConfiguration }
143      *
144      */
145     public CloudConfiguration getCloudConfiguration() {
146         return cloudConfiguration;
147     }
148
149     /**
150      * Sets the value of the cloudConfiguration property.
151      *
152      * @param value
153      *     allowed object is
154      *     {@link CloudConfiguration }
155      *
156      */
157     public void setCloudConfiguration(CloudConfiguration value) {
158         this.cloudConfiguration = value;
159     }
160
161     /**
162      * Gets the value of the requestParameters property.
163      *
164      * @return
165      *     possible object is
166      *     {@link RequestParameters }
167      *
168      */
169     public RequestParameters getRequestParameters() {
170         return requestParameters;
171     }
172
173     /**
174      * Sets the value of the requestParameters property.
175      *
176      * @param value
177      *     allowed object is
178      *     {@link RequestParameters }
179      *
180      */
181     public void setRequestParameters(RequestParameters value) {
182         this.requestParameters = value;
183     }
184
185         public RelatedInstanceList[] getRelatedInstanceList() {
186                 return relatedInstanceList;
187         }
188
189         public void setRelatedInstanceList(RelatedInstanceList[] relatedInstanceList) {
190                 this.relatedInstanceList = relatedInstanceList;
191         }
192         /**
193          * Gets the value of the project property.
194          *
195          * @return
196          *     possible object is
197          *     {@link Project }
198          *
199          */
200         public Project getProject(){
201                 return project;
202         }
203         /**
204      * Sets the value of the project property.
205      *
206      * @param value
207      *     allowed object is
208      *     {@link Project }
209      *
210      */
211         public void setProject(Project value){
212                 this.project = value;
213         }
214         /**
215          * Gets the value of the owningEntity property.
216          *
217          * @return
218          *     possible object is
219          *     {@link OwningEntity }
220          *
221          */
222         public OwningEntity getOwningEntity(){
223                 return owningEntity;
224         }
225         /**
226      * Sets the value of the owningEntity property.
227      *
228      * @param value
229      *     allowed object is
230      *     {@link OwningEntity }
231      *
232      */
233         public void setOwningEntity(OwningEntity value){
234                 this.owningEntity = value;
235         }
236         /**
237      * Gets the value of the platform property.
238      *
239      * @return
240      *     possible object is
241      *     {@link Platform }
242      *
243      */
244         public Platform getPlatform(){
245                 return platform;
246         }
247         /**
248      * Sets the value of the platform property.
249      *
250      * @param value
251      *     allowed object is
252      *     {@link Platform }
253      *
254      */
255         public void setPlatform(Platform value){
256                 this.platform = value;
257         }
258         /**
259      * Gets the value of the lineOfBusiness property.
260      *
261      * @return
262      *     possible object is
263      *     {@link LineOfBusiness }
264      *
265      */
266         public LineOfBusiness getLineOfBusiness(){
267                 return lineOfBusiness;
268         }
269         /**
270      * Sets the value of the lineOfBusiness property.
271      *
272      * @param value
273      *     allowed object is
274      *     {@link LineOfBusiness }
275      *
276      */
277         public void setLineOfBusiness(LineOfBusiness value){
278                 this.lineOfBusiness = value;
279         }
280         /**
281      * Gets the value of the instanceName property.
282      */
283         public List<Map<String, String>> getInstanceName() {
284                 return instanceName;
285         }
286         /**
287      * Sets the value of the instanceName property.
288      *
289      * @param value
290      *
291      */
292         public void setInstanceName(List<Map<String, String>> instanceName) {
293                 this.instanceName = instanceName;
294         }
295         public List<Map<String, String>> getConfigurationParameters() {
296                 return configurationParameters;
297         }
298
299         public void setConfigurationParameters(List<Map<String, String>> configurationParameters) {
300                 this.configurationParameters = configurationParameters;
301         }
302
303         @Override
304         public String toString() {
305                 return "RequestDetails [modelInfo=" + modelInfo + ", requestInfo=" + requestInfo + ", relatedInstanceList="
306                                 + Arrays.toString(relatedInstanceList) + ", subscriberInfo=" + subscriberInfo + ", cloudConfiguration="
307                                 + cloudConfiguration + ", requestParameters=" + requestParameters + ", project=" + project
308                                 + ", owningEntity=" + owningEntity + ", platform=" + platform + ", lineOfBusiness=" + lineOfBusiness
309                                 + ", instanceName=" + instanceName + ", configurationParameters=" + configurationParameters + "]";
310         }
311 }