Containerization feature of SO
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / onap / so / apihandlerinfra / tenantisolationbeans / RequestInfo.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.apihandlerinfra.tenantisolationbeans;
22
23 import java.io.Serializable;
24
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonInclude.Include;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29
30 @JsonRootName(value = "requestInfo")
31 @JsonInclude(Include.NON_DEFAULT)
32 public class RequestInfo implements Serializable {
33
34         private static final long serialVersionUID = 1346372792555344857L;
35         @JsonProperty("resourceType")
36     protected ResourceType resourceType;
37         @JsonProperty("source")
38     protected String source;
39         @JsonProperty("instanceName")
40     protected String instanceName;
41         @JsonProperty("requestorId")
42     protected String requestorId;
43
44         /**
45      * Gets the value of the resourceType property.
46      *
47      * @return
48      *     possible object is
49      *     {@link ResourceType }
50      *
51      */
52     public ResourceType getResourceType() {
53         return resourceType;
54     }
55
56     /**
57      * Sets the value of the source property.
58      *
59      * @param value
60      *     allowed object is
61      *     {@link ResourceType }
62      *
63      */
64     public void setResourceType(ResourceType value) {
65         this.resourceType = value;
66     }
67
68
69     /**
70      * Gets the value of the source property.
71      *
72      * @return
73      *     possible object is
74      *     {@link String }
75      *
76      */
77     public String getSource() {
78         return source;
79     }
80
81     /**
82      * Sets the value of the source property.
83      *
84      * @param value
85      *     allowed object is
86      *     {@link String }
87      *
88      */
89     public void setSource(String value) {
90         this.source = value;
91     }
92
93         public String getInstanceName() {
94                 return instanceName;
95         }
96
97         public void setInstanceName(String instanceName) {
98                 this.instanceName = instanceName;
99         }
100
101         public String getRequestorId() {
102                 return requestorId;
103         }
104
105         public void setRequestorId(String requestorId) {
106                 this.requestorId = requestorId;
107         }
108
109         @Override
110         public String toString() {
111                 return "RequestInfo [source=" + source 
112                                         + ", instanceName=" + instanceName
113                                         + ", requestorId="      + requestorId 
114                                         + ", resourceType="     + resourceType + "]";
115         }
116
117
118 }