AT&T 1712 and 1802 release code
[so.git] / cloudify-client / src / main / java / org / openecomp / mso / cloudify / v3 / model / StartExecutionParams.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.openecomp.mso.cloudify.v3.model;
22
23 import java.io.Serializable;
24 import java.util.Map;
25
26 import com.fasterxml.jackson.annotation.JsonProperty;
27
28 public class StartExecutionParams implements Serializable {
29
30         private static final long serialVersionUID = 1L;
31         
32     @JsonProperty("workflow_id")
33     private String workflowId;
34     
35     @JsonProperty("deployment_id")
36     private String deploymentId;
37
38     @JsonProperty("allow_custom_parameters")
39     private boolean allowCustomParameters;
40
41     @JsonProperty("force")
42     private boolean force;
43
44     @JsonProperty("parameters")
45     private Map<String, Object> parameters;
46     
47         public String getWorkflowId() {
48                 return workflowId;
49         }
50
51         public void setWorkflowId(String workflowId) {
52                 this.workflowId = workflowId;
53         }
54
55         public String getDeploymentId() {
56                 return deploymentId;
57         }
58
59         public void setDeploymentId(String deploymentId) {
60                 this.deploymentId = deploymentId;
61         }
62
63         public boolean isAllowCustomParameters() {
64                 return allowCustomParameters;
65         }
66
67         public void setAllowCustomParameters(boolean allowCustomParameters) {
68                 this.allowCustomParameters = allowCustomParameters;
69         }
70
71         public boolean isForce() {
72                 return force;
73         }
74
75         public void setForce(boolean force) {
76                 this.force = force;
77         }
78
79         public Map<String, Object> getParameters() {
80                 return parameters;
81         }
82
83         public void setParameters(Map<String, Object> parameters) {
84                 this.parameters = parameters;
85         }
86
87         @Override
88     public String toString() {
89         return "UpdateExecutionParams{" +
90                 "workflowId='" + workflowId + '\'' +
91                 "deploymentId='" + deploymentId + '\'' +
92                 "allowCustomParameters='" + allowCustomParameters + '\'' +
93                 "force='" + force + '\'' +
94                 "parameters='" + parameters + '\'' +
95                 '}';
96     }
97
98 }