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.adapters.vnfrest;
24 import java.util.HashMap;
27 import javax.xml.bind.annotation.XmlRootElement;
29 import com.fasterxml.jackson.annotation.JsonRootName;
31 @JsonRootName("createVfModuleResponse")
32 @XmlRootElement(name = "createVfModuleResponse")
33 public class CreateVfModuleResponse extends VfResponseCommon {
35 private String vfModuleId;
36 private String vfModuleStackId;
37 private Boolean vfModuleCreated;
38 private Map<String,String> vfModuleOutputs = new HashMap<>();
39 private VfModuleRollback rollback = new VfModuleRollback();
41 public CreateVfModuleResponse() {
45 public CreateVfModuleResponse(String vnfId, String vfModuleId,
46 String vfModuleStackId, Boolean vfModuleCreated,
47 Map<String, String> vfModuleOutputs, VfModuleRollback rollback,
51 this.vfModuleId = vfModuleId;
52 this.vfModuleStackId = vfModuleStackId;
53 this.vfModuleCreated = vfModuleCreated;
54 this.vfModuleOutputs = vfModuleOutputs;
55 this.rollback = rollback;
58 public String getVnfId() {
62 public void setVnfId(String vnfId) {
66 public String getVfModuleId() {
70 public void setVfModuleId(String vfModuleId) {
71 this.vfModuleId = vfModuleId;
74 public String getVfModuleStackId() {
75 return vfModuleStackId;
78 public void setVfModuleStackId(String vfModuleStackId) {
79 this.vfModuleStackId = vfModuleStackId;
82 public Boolean getVfModuleCreated() {
83 return vfModuleCreated;
86 public void setVfModuleCreated(Boolean vfModuleCreated) {
87 this.vfModuleCreated = vfModuleCreated;
90 public Map<String, String> getVfModuleOutputs() {
91 return vfModuleOutputs;
94 public void setVfModuleOutputs(Map<String, String> vfModuleOutputs) {
95 this.vfModuleOutputs = vfModuleOutputs;
98 public VfModuleRollback getRollback() {
102 public void setRollback(VfModuleRollback rollback) {
103 this.rollback = rollback;