2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.serviceinstancebeans;
\r
23 import java.io.Serializable;
\r
24 import java.util.ArrayList;
\r
25 import java.util.List;
\r
26 import java.util.Map;
\r
28 import com.fasterxml.jackson.annotation.JsonInclude;
\r
29 import com.fasterxml.jackson.annotation.JsonInclude.Include;
\r
30 import com.fasterxml.jackson.annotation.JsonProperty;
\r
31 import com.fasterxml.jackson.annotation.JsonRootName;
\r
33 @JsonRootName(value = "requestParameters")
\r
34 @JsonInclude(Include.NON_DEFAULT)
\r
35 public class RequestParameters implements Serializable {
\r
37 private static final long serialVersionUID = -5979049912538894930L;
\r
38 @JsonProperty("subscriptionServiceType")
\r
39 private String subscriptionServiceType;
\r
40 @JsonProperty("userParams")
\r
41 private List<Map<String, Object>> userParams = new ArrayList<>();
\r
42 @JsonProperty("aLaCarte")
\r
43 private Boolean aLaCarte;
\r
44 @JsonProperty("autoBuildVfModules")
\r
45 private Boolean autoBuildVfModules;
\r
46 @JsonProperty("cascadeDelete")
\r
47 private Boolean cascadeDelete;
\r
48 @JsonProperty("usePreload")
\r
49 private Boolean usePreload; // usePreload would always be true for Update
\r
50 @JsonProperty("rebuildVolumeGroups")
\r
51 private Boolean rebuildVolumeGroups;
\r
52 @JsonProperty("payload")
\r
53 private String payload;
\r
55 public String getSubscriptionServiceType() {
\r
56 return subscriptionServiceType;
\r
59 public void setSubscriptionServiceType(String subscriptionServiceType) {
\r
60 this.subscriptionServiceType = subscriptionServiceType;
\r
63 public Boolean getALaCarte() {
\r
67 public void setaLaCarte(boolean aLaCarte) {
\r
68 this.aLaCarte = aLaCarte;
\r
71 public Boolean isaLaCarte() {
\r
75 public List<Map<String, Object>> getUserParams() {
\r
79 public void setUserParams(List<Map<String, Object>> userParams) {
\r
80 this.userParams = userParams;
\r
83 public String getUserParamValue(String name){
\r
84 if(userParams!=null){
\r
85 for(Map<String, Object> param:userParams){
\r
86 if(param.get("name").equals(name)){
\r
87 return param.get("value").toString();
\r
94 public Boolean getAutoBuildVfModules() {
\r
95 return autoBuildVfModules;
\r
98 public void setAutoBuildVfModules(boolean autoBuildVfModules) {
\r
99 this.autoBuildVfModules = autoBuildVfModules;
\r
102 public Boolean getCascadeDelete() {
\r
103 return cascadeDelete;
\r
106 public void setCascadeDelete(boolean cascadeDelete) {
\r
107 this.cascadeDelete = cascadeDelete;
\r
110 public Boolean isUsePreload() {
\r
114 public void setUsePreload(boolean usePreload) {
\r
115 this.usePreload = usePreload;
\r
118 public Boolean rebuildVolumeGroups() {
\r
119 return rebuildVolumeGroups;
\r
122 public void setRebuildVolumeGroups(boolean rebuildVolumeGroups) {
\r
123 this.rebuildVolumeGroups = rebuildVolumeGroups;
\r
125 public String getPayload(){
\r
128 public void setPayload(String value){
\r
129 this.payload = value;
\r
133 public String toString() {
\r
134 return "RequestParameters [subscriptionServiceType="
\r
135 + subscriptionServiceType + ", userParams=" + userParams
\r
136 + ", aLaCarte=" + aLaCarte + ", autoBuildVfModules="
\r
137 + autoBuildVfModules + ", usePreload="
\r
138 + usePreload + ", rebuildVolumeGroups="
\r
139 + rebuildVolumeGroups + ", payload=" + payload + "]";
\r