2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.apihandlerinfra.tenantisolationbeans;
23 import java.io.Serializable;
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;
30 @JsonRootName(value = "requestInfo")
31 @JsonInclude(Include.NON_DEFAULT)
32 public class RequestInfo implements Serializable {
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;
45 * Gets the value of the resourceType property.
49 * {@link ResourceType }
52 public ResourceType getResourceType() {
57 * Sets the value of the source property.
61 * {@link ResourceType }
64 public void setResourceType(ResourceType value) {
65 this.resourceType = value;
70 * Gets the value of the source property.
77 public String getSource() {
82 * Sets the value of the source property.
89 public void setSource(String value) {
93 public String getInstanceName() {
97 public void setInstanceName(String instanceName) {
98 this.instanceName = instanceName;
101 public String getRequestorId() {
105 public void setRequestorId(String requestorId) {
106 this.requestorId = requestorId;
110 public String toString() {
111 return "RequestInfo [source=" + source
112 + ", instanceName=" + instanceName
113 + ", requestorId=" + requestorId
114 + ", resourceType=" + resourceType + "]";