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.core.domain;
23 import java.io.Serializable;
26 import com.fasterxml.jackson.annotation.JsonRootName;
29 * This class is used to store instance
30 * data of services aka ServiceDecomposition
35 public class ServiceInstance extends JsonWrapper implements Serializable {
37 private static final long serialVersionUID = 1L;
38 private String instanceId;
39 private String instanceName;
40 private String orchestrationStatus;
41 private Configuration configuration;
42 private String serviceType;
43 private String serviceRole;
44 private String serviceId;
45 private ModelInfo modelInfo;
46 private String environmentContext;
47 private String workloadContext;
48 private Map serviceParams;
49 private Customer customer = new Customer();
50 private String e2eVpnKey;
52 public String getServiceType() {
55 public void setServiceType(String serviceType) {
56 this.serviceType = serviceType;
58 public String getServiceId() {
61 public void setServiceId(String serviceId) {
62 this.serviceId = serviceId;
64 public Map getServiceParams() {
67 public void setServiceParams(Map serviceParams) {
68 this.serviceParams = serviceParams;
70 public String getInstanceId() {
73 public void setInstanceId(String instanceId) {
74 this.instanceId = instanceId;
76 public String getInstanceName() {
79 public void setInstanceName(String instanceName) {
80 this.instanceName = instanceName;
82 public String getOrchestrationStatus() {
83 return orchestrationStatus;
85 public void setOrchestrationStatus(String orchestrationStatus) {
86 this.orchestrationStatus = orchestrationStatus;
88 public Configuration getConfiguration() {
91 public void setConfiguration(Configuration configuration) {
92 this.configuration = configuration;
94 public ModelInfo getModelInfo() {
97 public void setModelInfo(ModelInfo modelInfo) {
98 this.modelInfo = modelInfo;
100 public String getEnvironmentContext() {
101 return environmentContext;
103 public void setEnvironmentContext(String environmentContext) {
104 this.environmentContext = environmentContext;
106 public String getWorkloadContext() {
107 return workloadContext;
109 public void setWorkloadContext(String workloadContext) {
110 this.workloadContext = workloadContext;
112 public String getServiceRole() {
115 public void setServiceRole(String serviceRole) {
116 this.serviceRole = serviceRole;
118 public Customer getCustomer(){
122 public String getE2eVpnKey(){
126 public void setE2eVpnKey(String e2eVpnKey){
127 this.e2eVpnKey = e2eVpnKey;