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.bpmn.infrastructure.aai;
23 public class AAIServiceInstance {
24 String serviceInstanceName;
27 String orchestrationStatus;
28 String modelInvariantUuid;
29 String modelVersionId;
30 String environmentContext;
31 String workloadContext;
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;
43 public AAIServiceInstanceBuilder setServiceInstanceName(String serviceInstanceName) {
44 this.serviceInstanceName = serviceInstanceName;
48 public AAIServiceInstanceBuilder setServiceType(String serviceType) {
49 this.serviceType = serviceType;
53 public AAIServiceInstanceBuilder setServiceRole(String serviceRole) {
54 this.serviceRole = serviceRole;
58 public AAIServiceInstanceBuilder setOrchestrationStatus(String orchestrationStatus) {
59 this.orchestrationStatus = orchestrationStatus;
63 public AAIServiceInstanceBuilder setModelInvariantUuid(String modelInvariantUuid) {
64 this.modelInvariantUuid = modelInvariantUuid;
68 public AAIServiceInstanceBuilder setModelVersionId(String modelVersionId) {
69 this.modelVersionId = modelVersionId;
73 public AAIServiceInstanceBuilder setEnvironmentContext(String environmentContext) {
74 this.environmentContext = environmentContext;
78 public AAIServiceInstanceBuilder setWorkloadContext(String workloadContext) {
79 this.workloadContext = workloadContext;
83 public AAIServiceInstance createAAIServiceInstance() {
84 return new AAIServiceInstance(this);
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;
99 public String getServiceInstanceName() {
100 return serviceInstanceName;
103 public void setServiceInstanceName(String serviceInstanceName) {
104 this.serviceInstanceName = serviceInstanceName;
107 public String getServiceType() {
111 public void setServiceType(String serviceType) {
112 this.serviceType = serviceType;
115 public String getServiceRole() {
119 public void setServiceRole(String serviceRole) {
120 this.serviceRole = serviceRole;
123 public String getOrchestrationStatus() {
124 return orchestrationStatus;
127 public void setOrchestrationStatus(String orchestrationStatus) {
128 this.orchestrationStatus = orchestrationStatus;
131 public String getModelInvariantUuid() {
132 return modelInvariantUuid;
135 public void setModelInvariantUuid(String modelInvariantUuid) {
136 this.modelInvariantUuid = modelInvariantUuid;
139 public String getModelVersionId() {
140 return modelVersionId;
143 public void setModelVersionId(String modelVersionId) {
144 this.modelVersionId = modelVersionId;
147 public String getEnvironmentContext() {
148 return environmentContext;
151 public void setEnvironmentContext(String environmentContext) {
152 this.environmentContext = environmentContext;
155 public String getWorkloadContext() {
156 return workloadContext;
159 public void setWorkloadContext(String workloadContext) {
160 this.workloadContext = workloadContext;