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;
25 import com.fasterxml.jackson.annotation.JsonIgnore;
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 import com.fasterxml.jackson.annotation.JsonRootName;
30 * This class is used to store instance data of services aka ServiceDecomposition
35 @JsonIgnoreProperties(ignoreUnknown = true)
36 public class ServiceInstance extends JsonWrapper implements Serializable {
38 private static final long serialVersionUID = 1L;
39 private String instanceId;
40 private String instanceName;
41 private String orchestrationStatus;
42 private Configuration configuration;
43 private String serviceType;
44 private String serviceRole;
45 private String serviceId;
46 private ModelInfo modelInfo;
47 private String environmentContext;
48 private String workloadContext;
49 private Map serviceParams;
50 private Customer customer = new Customer();
51 private String e2eVpnKey;
53 public String getServiceType() {
57 public void setServiceType(String serviceType) {
58 this.serviceType = serviceType;
61 public String getServiceId() {
65 public void setServiceId(String serviceId) {
66 this.serviceId = serviceId;
69 public Map getServiceParams() {
73 public void setServiceParams(Map serviceParams) {
74 this.serviceParams = serviceParams;
77 public String getInstanceId() {
81 public void setInstanceId(String instanceId) {
82 this.instanceId = instanceId;
85 public String getInstanceName() {
89 public void setInstanceName(String instanceName) {
90 this.instanceName = instanceName;
93 public String getOrchestrationStatus() {
94 return orchestrationStatus;
97 public void setOrchestrationStatus(String orchestrationStatus) {
98 this.orchestrationStatus = orchestrationStatus;
101 public Configuration getConfiguration() {
102 return configuration;
105 public void setConfiguration(Configuration configuration) {
106 this.configuration = configuration;
109 public ModelInfo getModelInfo() {
113 public void setModelInfo(ModelInfo modelInfo) {
114 this.modelInfo = modelInfo;
117 public String getEnvironmentContext() {
118 return environmentContext;
121 public void setEnvironmentContext(String environmentContext) {
122 this.environmentContext = environmentContext;
125 public String getWorkloadContext() {
126 return workloadContext;
129 public void setWorkloadContext(String workloadContext) {
130 this.workloadContext = workloadContext;
133 public String getServiceRole() {
137 public void setServiceRole(String serviceRole) {
138 this.serviceRole = serviceRole;
141 public Customer getCustomer() {
145 public String getE2eVpnKey() {
149 public void setE2eVpnKey(String e2eVpnKey) {
150 this.e2eVpnKey = e2eVpnKey;