4a645915e57fdf5a4948490e74de7fcf0d01ca2c
[integration/csit.git] / plans / usecases / pnf-sw-upgrade / so / simulator / aai-simulator / src / main / java / org / onap / so / aaisimulator / models / NodeServiceInstance.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Nordix Foundation.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.aaisimulator.models;
21
22 import java.io.Serializable;
23
24 /**
25  * @author waqas.ikram@ericsson.com
26  *
27  */
28 public class NodeServiceInstance implements Serializable {
29
30     private static final long serialVersionUID = -3314166327618070948L;
31
32     private String globalCustomerId;
33     private String serviceType;
34     private String serviceInstanceId;
35     private String resourceType;
36     private String resourceLink;
37
38     public NodeServiceInstance() {}
39
40
41     public NodeServiceInstance(final String globalCustomerId, final String serviceType, final String serviceInstanceId,
42             final String resourceType, final String resourceLink) {
43         this.globalCustomerId = globalCustomerId;
44         this.serviceType = serviceType;
45         this.serviceInstanceId = serviceInstanceId;
46         this.resourceType = resourceType;
47         this.resourceLink = resourceLink;
48     }
49
50
51     /**
52      * @return the globalCustomerId
53      */
54     public String getGlobalCustomerId() {
55         return globalCustomerId;
56     }
57
58
59     /**
60      * @param globalCustomerId the globalCustomerId to set
61      */
62     public void setGlobalCustomerId(final String globalCustomerId) {
63         this.globalCustomerId = globalCustomerId;
64     }
65
66
67     /**
68      * @return the serviceType
69      */
70     public String getServiceType() {
71         return serviceType;
72     }
73
74
75     /**
76      * @param serviceType the serviceType to set
77      */
78     public void setServiceType(final String serviceType) {
79         this.serviceType = serviceType;
80     }
81
82
83     /**
84      * @return the serviceInstanceId
85      */
86     public String getServiceInstanceId() {
87         return serviceInstanceId;
88     }
89
90
91     /**
92      * @param serviceInstanceId the serviceInstanceId to set
93      */
94     public void setServiceInstanceId(final String serviceInstanceId) {
95         this.serviceInstanceId = serviceInstanceId;
96     }
97
98
99     /**
100      * @return the resourceType
101      */
102     public String getResourceType() {
103         return resourceType;
104     }
105
106
107     /**
108      * @param resourceType the resourceType to set
109      */
110     public void setResourceType(final String resourceType) {
111         this.resourceType = resourceType;
112     }
113
114
115     /**
116      * @return the resourceLink
117      */
118     public String getResourceLink() {
119         return resourceLink;
120     }
121
122
123     /**
124      * @param resourceLink the resourceLink to set
125      */
126     public void setResourceLink(final String resourceLink) {
127         this.resourceLink = resourceLink;
128     }
129
130
131     @Override
132     public String toString() {
133         return "NodeServiceInstance [globalCustomerId=" + globalCustomerId + ", serviceType=" + serviceType
134                 + ", serviceInstanceId=" + serviceInstanceId + ", resourceType=" + resourceType + ", resourceLink="
135                 + resourceLink + "]";
136     }
137
138
139 }