Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / so-bpmn-infrastructure-common / src / main / java / org / onap / so / bpmn / infrastructure / aai / AAIServiceInstance.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.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
103     public void setServiceInstanceName(String serviceInstanceName) {
104         this.serviceInstanceName = serviceInstanceName;
105     }
106
107     public String getServiceType() {
108         return serviceType;
109     }
110
111     public void setServiceType(String serviceType) {
112         this.serviceType = serviceType;
113     }
114
115     public String getServiceRole() {
116         return serviceRole;
117     }
118
119     public void setServiceRole(String serviceRole) {
120         this.serviceRole = serviceRole;
121     }
122
123     public String getOrchestrationStatus() {
124         return orchestrationStatus;
125     }
126
127     public void setOrchestrationStatus(String orchestrationStatus) {
128         this.orchestrationStatus = orchestrationStatus;
129     }
130
131     public String getModelInvariantUuid() {
132         return modelInvariantUuid;
133     }
134
135     public void setModelInvariantUuid(String modelInvariantUuid) {
136         this.modelInvariantUuid = modelInvariantUuid;
137     }
138
139     public String getModelVersionId() {
140         return modelVersionId;
141     }
142
143     public void setModelVersionId(String modelVersionId) {
144         this.modelVersionId = modelVersionId;
145     }
146
147     public String getEnvironmentContext() {
148         return environmentContext;
149     }
150
151     public void setEnvironmentContext(String environmentContext) {
152         this.environmentContext = environmentContext;
153     }
154
155     public String getWorkloadContext() {
156         return workloadContext;
157     }
158
159     public void setWorkloadContext(String workloadContext) {
160         this.workloadContext = workloadContext;
161     }
162
163
164 }