c5cd2c70dabbf2bc703223de5c90e0a966b30b86
[so.git] /
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.bpmn.infrastructure.aai;
22
23 public class AAIServiceInstance {
24         String serviceInstanceName;             
25         String serviceType;
26         String serviceRole;
27         String orchestrationStatus;     
28         String modelInvariantUuid;      
29         String modelVersionId;          
30         String environmentContext;
31         String workloadContext;
32
33         public static class AAIServiceInstanceBuilder {
34                 private String serviceInstanceName;
35                 private String serviceType;
36                 private String serviceRole;
37                 private String orchestrationStatus;
38                 private String modelInvariantUuid;
39                 private String modelVersionId;
40                 private String environmentContext;
41                 private String workloadContext;
42
43                 public AAIServiceInstanceBuilder setServiceInstanceName(String serviceInstanceName) {
44                         this.serviceInstanceName = serviceInstanceName;
45                         return this;
46                 }
47
48                 public AAIServiceInstanceBuilder setServiceType(String serviceType) {
49                         this.serviceType = serviceType;
50                         return this;
51                 }
52
53                 public AAIServiceInstanceBuilder setServiceRole(String serviceRole) {
54                         this.serviceRole = serviceRole;
55                         return this;
56                 }
57
58                 public AAIServiceInstanceBuilder setOrchestrationStatus(String orchestrationStatus) {
59                         this.orchestrationStatus = orchestrationStatus;
60                         return this;
61                 }
62
63                 public AAIServiceInstanceBuilder setModelInvariantUuid(String modelInvariantUuid) {
64                         this.modelInvariantUuid = modelInvariantUuid;
65                         return this;
66                 }
67
68                 public AAIServiceInstanceBuilder setModelVersionId(String modelVersionId) {
69                         this.modelVersionId = modelVersionId;
70                         return this;
71                 }
72
73                 public AAIServiceInstanceBuilder setEnvironmentContext(String environmentContext) {
74                         this.environmentContext = environmentContext;
75                         return this;
76                 }
77
78                 public AAIServiceInstanceBuilder setWorkloadContext(String workloadContext) {
79                         this.workloadContext = workloadContext;
80                         return this;
81                 }
82
83                 public AAIServiceInstance createAAIServiceInstance() {
84                         return new AAIServiceInstance(this);
85                 }
86         }
87
88         public AAIServiceInstance(AAIServiceInstanceBuilder aaiServiceInstanceBuilder) {
89                 this.serviceInstanceName = aaiServiceInstanceBuilder.serviceInstanceName;
90                 this.serviceType = aaiServiceInstanceBuilder.serviceType;
91                 this.serviceRole = aaiServiceInstanceBuilder.serviceRole;
92                 this.orchestrationStatus = aaiServiceInstanceBuilder.orchestrationStatus;
93                 this.modelInvariantUuid = aaiServiceInstanceBuilder.modelInvariantUuid;
94                 this.modelVersionId = aaiServiceInstanceBuilder.modelVersionId;
95                 this.environmentContext = aaiServiceInstanceBuilder.environmentContext;
96                 this.workloadContext = aaiServiceInstanceBuilder.workloadContext;
97         }
98
99         public String getServiceInstanceName() {
100                 return serviceInstanceName;
101         }
102         public void setServiceInstanceName(String serviceInstanceName) {
103                 this.serviceInstanceName = serviceInstanceName;
104         }
105         public String getServiceType() {
106                 return serviceType;
107         }
108         public void setServiceType(String serviceType) {
109                 this.serviceType = serviceType;
110         }
111         public String getServiceRole() {
112                 return serviceRole;
113         }
114         public void setServiceRole(String serviceRole) {
115                 this.serviceRole = serviceRole;
116         }
117         public String getOrchestrationStatus() {
118                 return orchestrationStatus;
119         }
120         public void setOrchestrationStatus(String orchestrationStatus) {
121                 this.orchestrationStatus = orchestrationStatus;
122         }
123         public String getModelInvariantUuid() {
124                 return modelInvariantUuid;
125         }
126         public void setModelInvariantUuid(String modelInvariantUuid) {
127                 this.modelInvariantUuid = modelInvariantUuid;
128         }
129         public String getModelVersionId() {
130                 return modelVersionId;
131         }
132         public void setModelVersionId(String modelVersionId) {
133                 this.modelVersionId = modelVersionId;
134         }
135         public String getEnvironmentContext() {
136                 return environmentContext;
137         }
138         public void setEnvironmentContext(String environmentContext) {
139                 this.environmentContext = environmentContext;
140         }
141         public String getWorkloadContext() {
142                 return workloadContext;
143         }
144         public void setWorkloadContext(String workloadContext) {
145                 this.workloadContext = workloadContext;
146         }
147         
148
149 }