Containerization feature of SO
[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     
62
63         /**
64      * Gets the value of the serviceInfo property.
65      *
66      * @return
67      *     possible object is
68      *     {@link ModelInfo }
69      *
70      */
71     public ModelInfo getModelInfo() {
72         return modelInfo;
73     }
74
75     /**
76      * Sets the value of the serviceInfo property.
77      *
78      * @param value
79      *     allowed object is
80      *     {@link ModelInfo }
81      *
82      */
83     public void setModelInfo(ModelInfo value) {
84         this.modelInfo = value;
85     }
86
87     /**
88      * Gets the value of the requestInfo property.
89      *
90      * @return
91      *     possible object is
92      *     {@link RequestInfo }
93      *
94      */
95     public RequestInfo getRequestInfo() {
96         return requestInfo;
97     }
98
99     /**
100      * Sets the value of the requestInfo property.
101      *
102      * @param value
103      *     allowed object is
104      *     {@link RequestInfo }
105      *
106      */
107     public void setRequestInfo(RequestInfo value) {
108         this.requestInfo = value;
109     }
110
111     /**
112      * Gets the value of the subscriberInfo property.
113      *
114      * @return
115      *     possible object is
116      *     {@link SubscriberInfo }
117      *
118      */
119     public SubscriberInfo getSubscriberInfo() {
120         return subscriberInfo;
121     }
122
123     /**
124      * Sets the value of the subscriberInfo property.
125      *
126      * @param value
127      *     allowed object is
128      *     {@link SubscriberInfo }
129      *
130      */
131     public void setSubscriberInfo(SubscriberInfo value) {
132         this.subscriberInfo = value;
133     }
134
135     /**
136      * Gets the value of the cloudConfiguration property.
137      *
138      * @return
139      *     possible object is
140      *     {@link CloudConfiguration }
141      *
142      */
143     public CloudConfiguration getCloudConfiguration() {
144         return cloudConfiguration;
145     }
146
147     /**
148      * Sets the value of the cloudConfiguration property.
149      *
150      * @param value
151      *     allowed object is
152      *     {@link CloudConfiguration }
153      *
154      */
155     public void setCloudConfiguration(CloudConfiguration value) {
156         this.cloudConfiguration = value;
157     }
158
159     /**
160      * Gets the value of the requestParameters property.
161      *
162      * @return
163      *     possible object is
164      *     {@link RequestParameters }
165      *
166      */
167     public RequestParameters getRequestParameters() {
168         return requestParameters;
169     }
170
171     /**
172      * Sets the value of the requestParameters property.
173      *
174      * @param value
175      *     allowed object is
176      *     {@link RequestParameters }
177      *
178      */
179     public void setRequestParameters(RequestParameters value) {
180         this.requestParameters = value;
181     }
182
183         public RelatedInstanceList[] getRelatedInstanceList() {
184                 return relatedInstanceList;
185         }
186
187         public void setRelatedInstanceList(RelatedInstanceList[] relatedInstanceList) {
188                 this.relatedInstanceList = relatedInstanceList;
189         }
190         /**
191          * Gets the value of the project property.
192          *
193          * @return
194          *     possible object is
195          *     {@link Project }
196          *
197          */
198         public Project getProject(){
199                 return project;
200         }
201         /**
202      * Sets the value of the project property.
203      *
204      * @param value
205      *     allowed object is
206      *     {@link Project }
207      *
208      */
209         public void setProject(Project value){
210                 this.project = value;
211         }
212         /**
213          * Gets the value of the owningEntity property.
214          *
215          * @return
216          *     possible object is
217          *     {@link OwningEntity }
218          *
219          */
220         public OwningEntity getOwningEntity(){
221                 return owningEntity;
222         }
223         /**
224      * Sets the value of the owningEntity property.
225      *
226      * @param value
227      *     allowed object is
228      *     {@link OwningEntity }
229      *
230      */
231         public void setOwningEntity(OwningEntity value){
232                 this.owningEntity = value;
233         }
234         /**
235      * Gets the value of the platform property.
236      *
237      * @return
238      *     possible object is
239      *     {@link Platform }
240      *
241      */
242         public Platform getPlatform(){
243                 return platform;
244         }
245         /**
246      * Sets the value of the platform property.
247      *
248      * @param value
249      *     allowed object is
250      *     {@link Platform }
251      *
252      */
253         public void setPlatform(Platform value){
254                 this.platform = value;
255         }
256         /**
257      * Gets the value of the lineOfBusiness property.
258      *
259      * @return
260      *     possible object is
261      *     {@link LineOfBusiness }
262      *
263      */
264         public LineOfBusiness getLineOfBusiness(){
265                 return lineOfBusiness;
266         }
267         /**
268      * Sets the value of the lineOfBusiness property.
269      *
270      * @param value
271      *     allowed object is
272      *     {@link LineOfBusiness }
273      *
274      */
275         public void setLineOfBusiness(LineOfBusiness value){
276                 this.lineOfBusiness = value;
277         }
278         /**
279      * Gets the value of the instanceName property.
280      */
281         public List<Map<String, String>> getInstanceName() {
282                 return instanceName;
283         }
284         /**
285      * Sets the value of the instanceName property.
286      *
287      * @param value
288      *
289      */
290         public void setInstanceName(List<Map<String, String>> instanceName) {
291                 this.instanceName = instanceName;
292         }
293         @Override
294         public String toString() {
295                 return "RequestDetails [modelInfo=" + modelInfo + ", requestInfo="
296                                 + requestInfo + ", relatedInstanceList="
297                                 + Arrays.toString(relatedInstanceList) + ", subscriberInfo="
298                                 + subscriberInfo + ", cloudConfiguration=" + cloudConfiguration
299                                 + ", requestParameters=" + requestParameters + ", platform=" + platform 
300                                 + ", lineOfBusiness=" + ", project=" + project + ", owningEntity=" + owningEntity 
301                                 + ", instanceName" + instanceName + "]";
302         }
303 }