AT&T 1712 and 1802 release code
[so.git] / cloudify-client / src / main / java / org / openecomp / mso / cloudify / v3 / model / Execution.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.Date;
25 import java.util.Map;
26
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 // @JsonRootName("execution")
32 public class Execution implements Serializable {
33
34         private static final long serialVersionUID = 1L;
35         
36     @JsonProperty("blueprint_id")
37     private String blueprintId;
38
39     @JsonProperty("created_at")
40     private Date createdAt;
41
42     @JsonProperty("created_by")
43     private String createdBy;
44
45     @JsonProperty("deployment_id")
46     private String deploymentId;
47
48     @JsonProperty("error")
49     private String error;
50     
51     @JsonProperty("id")
52     private String id;
53     
54     @JsonProperty("is_system_workflow")
55     private boolean isSystemWorkflow;
56     
57     @JsonProperty("parameters")
58     private Map<String, Object> parameters;
59     
60     @JsonProperty("status")
61     private String status;
62     
63     @JsonProperty("tenant_name")
64     private String tenantName;
65     
66     @JsonProperty("workflow_id")
67     private String workflowId;
68
69         public String getBlueprintId() {
70                 return blueprintId;
71         }
72
73         public void setBlueprintId(String blueprintId) {
74                 this.blueprintId = blueprintId;
75         }
76
77         public Date getCreatedAt() {
78                 return createdAt;
79         }
80
81         public void setCreatedAt(Date createdAt) {
82                 this.createdAt = createdAt;
83         }
84
85         public String getCreatedBy() {
86                 return createdBy;
87         }
88
89         public void setCreatedBy(String createdBy) {
90                 this.createdBy = createdBy;
91         }
92
93         public String getDeploymentId() {
94                 return deploymentId;
95         }
96
97         public void setDeploymentId(String deploymentId) {
98                 this.deploymentId = deploymentId;
99         }
100
101         public String getError() {
102                 return error;
103         }
104
105         public void setError(String error) {
106                 this.error = error;
107         }
108
109         public String getId() {
110                 return id;
111         }
112
113         public void setId(String id) {
114                 this.id = id;
115         }
116
117         public boolean isSystemWorkflow() {
118                 return isSystemWorkflow;
119         }
120
121         public void setSystemWorkflow(boolean isSystemWorkflow) {
122                 this.isSystemWorkflow = isSystemWorkflow;
123         }
124
125         public Map<String, Object> getParameters() {
126                 return parameters;
127         }
128
129         public void setParameters(Map<String, Object> parameters) {
130                 this.parameters = parameters;
131         }
132
133         public String getStatus() {
134                 return status;
135         }
136
137         public void setStatus(String status) {
138                 this.status = status;
139         }
140
141         public String getTenantName() {
142                 return tenantName;
143         }
144
145         public void setTenantName(String tenantName) {
146                 this.tenantName = tenantName;
147         }
148
149         public String getWorkflowId() {
150                 return workflowId;
151         }
152
153         public void setWorkflowId(String workflowId) {
154                 this.workflowId = workflowId;
155         }
156
157         @Override
158     public String toString() {
159         return "Execution{" +
160                 "id='" + id + '\'' +
161                 ", blueprintId='" + blueprintId + '\'' +
162                 ", createdBy='" + createdBy + '\'' +
163                 ", createdAt=" + createdAt +
164                 ", deploymentId='" + deploymentId + '\'' +
165                 ", error=" + error +
166                 ", isSystemWorkflow=" + isSystemWorkflow +
167                 ", status=" + status +
168                 ", tenantName='" + tenantName + '\'' +
169                 ", parameters=" + parameters +
170                 '}';
171     }
172
173
174 }