Merge "Reorder modifiers"
[so.git] / common / src / main / java / org / openecomp / mso / serviceinstancebeans / InstanceReferences.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.openecomp.mso.serviceinstancebeans;
22
23 import org.apache.commons.lang3.builder.ToStringBuilder;
24
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonInclude.Include;
27
28 @JsonInclude(Include.NON_DEFAULT)
29 public class InstanceReferences {
30
31         protected String serviceInstanceId;
32         protected String serviceInstanceName;
33         protected String vnfInstanceId;
34         protected String vnfInstanceName;
35         protected String vfModuleInstanceId;
36         protected String vfModuleInstanceName;
37         protected String volumeGroupInstanceId;
38         protected String volumeGroupInstanceName;
39         protected String networkInstanceId;
40         protected String networkInstanceName;
41         protected String requestorId;
42
43
44         public String getServiceInstanceId() {
45                 return serviceInstanceId;
46         }
47         public void setServiceInstanceId(String serviceInstanceId) {
48                 this.serviceInstanceId = serviceInstanceId;
49         }
50         public String getServiceInstanceName() {
51                 return serviceInstanceName;
52         }
53         public void setServiceInstanceName(String serviceInstanceName) {
54                 this.serviceInstanceName = serviceInstanceName;
55         }
56         public String getVnfInstanceId() {
57                 return vnfInstanceId;
58         }
59         public void setVnfInstanceId(String vnfInstanceId) {
60                 this.vnfInstanceId = vnfInstanceId;
61         }
62         public String getVnfInstanceName() {
63                 return vnfInstanceName;
64         }
65         public void setVnfInstanceName(String vnfInstanceName) {
66                 this.vnfInstanceName = vnfInstanceName;
67         }
68         public String getVfModuleInstanceId() {
69                 return vfModuleInstanceId;
70         }
71         public void setVfModuleInstanceId(String vfModuleInstanceId) {
72                 this.vfModuleInstanceId = vfModuleInstanceId;
73         }
74         public String getVfModuleInstanceName() {
75                 return vfModuleInstanceName;
76         }
77         public void setVfModuleInstanceName(String vfModuleInstanceName) {
78                 this.vfModuleInstanceName = vfModuleInstanceName;
79         }
80         public String getVolumeGroupInstanceId() {
81                 return volumeGroupInstanceId;
82         }
83         public void setVolumeGroupInstanceId(String volumeGroupInstanceId) {
84                 this.volumeGroupInstanceId = volumeGroupInstanceId;
85         }
86         public String getVolumeGroupInstanceName() {
87                 return volumeGroupInstanceName;
88         }
89         public void setVolumeGroupInstanceName(String volumeGroupInstanceName) {
90                 this.volumeGroupInstanceName = volumeGroupInstanceName;
91         }
92         public String getNetworkInstanceId() {
93                 return networkInstanceId;
94         }
95         public void setNetworkInstanceId(String networkInstanceId) {
96                 this.networkInstanceId = networkInstanceId;
97         }
98         public String getNetworkInstanceName() {
99                 return networkInstanceName;
100         }
101         public void setNetworkInstanceName(String networkInstanceName) {
102                 this.networkInstanceName = networkInstanceName;
103         }
104
105         public String getRequestorId() {
106                 return requestorId;
107         }
108
109         public void setRequestorId(String requestorId) {
110                 this.requestorId = requestorId;
111         }
112         @Override
113         public String toString() {
114                 return new ToStringBuilder(this).append("serviceInstanceId", serviceInstanceId)
115                                 .append("serviceInstanceName", serviceInstanceName).append("vnfInstanceId", vnfInstanceId)
116                                 .append("vnfInstanceName", vnfInstanceName).append("vfModuleInstanceId", vfModuleInstanceId)
117                                 .append("vfModuleInstanceName", vfModuleInstanceName)
118                                 .append("volumeGroupInstanceId", volumeGroupInstanceId)
119                                 .append("volumeGroupInstanceName", volumeGroupInstanceName)
120                                 .append("networkInstanceId", networkInstanceId).append("networkInstanceName", networkInstanceName)
121                                 .append("requestorId", requestorId).toString();
122         }
123 }