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.servicedecomposition.entities;
23 import java.io.Serializable;
26 import org.onap.so.bpmn.servicedecomposition.bbobjects.CloudRegion;
27 import org.onap.so.bpmn.servicedecomposition.bbobjects.Customer;
28 import org.onap.so.bpmn.servicedecomposition.bbobjects.ServiceInstance;
29 import org.onap.so.bpmn.servicedecomposition.generalobjects.OrchestrationContext;
30 import org.onap.so.bpmn.servicedecomposition.generalobjects.RequestContext;
32 public class GeneralBuildingBlock implements Serializable {
33 private static final String INVALID_INPUT_MISSING = "Expected building block input of \"%s\" not found in decomposition";
34 private static final String INVALID_INPUT_CLASS_CAST = "Expected building block input of \"%s\" was the wrong object type in the decomposition";
36 private static final long serialVersionUID = -429247436428110843L;
38 private RequestContext requestContext;
39 private OrchestrationContext orchContext;
40 private Map<String, String> userInput;
41 private CloudRegion cloudRegion;
43 private Customer customer;
44 private ServiceInstance serviceInstance;
46 public CloudRegion getCloudRegion() {
50 public void setCloudRegion(CloudRegion cloudRegion) {
51 this.cloudRegion = cloudRegion;
54 public RequestContext getRequestContext() {
55 return requestContext;
58 public void setRequestContext(RequestContext requestContext) {
59 this.requestContext = requestContext;
62 public OrchestrationContext getOrchContext() {
66 public void setOrchContext(OrchestrationContext orchContext) {
67 this.orchContext = orchContext;
70 public Map<String, String> getUserInput() {
74 public void setUserInput(Map<String, String> userInput) {
75 this.userInput = userInput;
78 public Customer getCustomer() {
82 public void setCustomer(Customer customer) {
83 this.customer = customer;
86 public ServiceInstance getServiceInstance() {
87 return serviceInstance;
90 public void setServiceInstance(ServiceInstance serviceInstance) {
91 this.serviceInstance = serviceInstance;