AT&T 1712 and 1802 release code
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / openecomp / mso / apihandlerinfra / tenantisolationbeans / RequestInfo.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * ONAP - SO\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  *\r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.mso.apihandlerinfra.tenantisolationbeans;\r
22 \r
23 import java.io.Serializable;\r
24 \r
25 import com.fasterxml.jackson.annotation.JsonInclude;\r
26 import com.fasterxml.jackson.annotation.JsonInclude.Include;\r
27 import com.fasterxml.jackson.annotation.JsonProperty;\r
28 import com.fasterxml.jackson.annotation.JsonRootName;\r
29 \r
30 @JsonRootName(value = "requestInfo")\r
31 @JsonInclude(Include.NON_DEFAULT)\r
32 public class RequestInfo implements Serializable {\r
33 \r
34         private static final long serialVersionUID = 1346372792555344857L;\r
35         @JsonProperty("resourceType")\r
36     protected ResourceType resourceType;\r
37         @JsonProperty("source")\r
38     protected String source;\r
39         @JsonProperty("instanceName")\r
40     protected String instanceName;\r
41         @JsonProperty("requestorId")\r
42     protected String requestorId;\r
43 \r
44         /**\r
45      * Gets the value of the resourceType property.\r
46      *\r
47      * @return\r
48      *     possible object is\r
49      *     {@link ResourceType }\r
50      *\r
51      */\r
52     public ResourceType getResourceType() {\r
53         return resourceType;\r
54     }\r
55 \r
56     /**\r
57      * Sets the value of the source property.\r
58      *\r
59      * @param value\r
60      *     allowed object is\r
61      *     {@link ResourceType }\r
62      *\r
63      */\r
64     public void setResourceType(ResourceType value) {\r
65         this.resourceType = value;\r
66     }\r
67 \r
68 \r
69     /**\r
70      * Gets the value of the source property.\r
71      *\r
72      * @return\r
73      *     possible object is\r
74      *     {@link String }\r
75      *\r
76      */\r
77     public String getSource() {\r
78         return source;\r
79     }\r
80 \r
81     /**\r
82      * Sets the value of the source property.\r
83      *\r
84      * @param value\r
85      *     allowed object is\r
86      *     {@link String }\r
87      *\r
88      */\r
89     public void setSource(String value) {\r
90         this.source = value;\r
91     }\r
92 \r
93         public String getInstanceName() {\r
94                 return instanceName;\r
95         }\r
96 \r
97         public void setInstanceName(String instanceName) {\r
98                 this.instanceName = instanceName;\r
99         }\r
100 \r
101         public String getRequestorId() {\r
102                 return requestorId;\r
103         }\r
104 \r
105         public void setRequestorId(String requestorId) {\r
106                 this.requestorId = requestorId;\r
107         }\r
108 \r
109         @Override\r
110         public String toString() {\r
111                 return "RequestInfo [source=" + source \r
112                                         + ", instanceName=" + instanceName\r
113                                         + ", requestorId="      + requestorId \r
114                                         + ", resourceType="     + resourceType + "]";\r
115         }\r
116 \r
117 \r
118 }\r