summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThugutla Sailakshmi <tsaila10@in.ibm.com>2019-07-26 01:41:39 +0530
committerThugutla Sailakshmi <tsaila10@in.ibm.com>2019-07-26 01:42:10 +0530
commit6fe9c2775a1ff391336ee9f55d284304cf037df3 (patch)
tree2b5ef578b58033738e469e4ea7e9bd1e5855ed37
parent7a2d895aae47a46de7bff54fe3e32c7116454d01 (diff)
CCSDK-1538 -Move this constructor to comply with Java Code Conventions
Move this constructor to comply with Java Code Conventions Issue-ID: CCSDK-1538 Change-Id: I10ac0c405f137cc8bda607bf08cc7476ebd472f0 Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
-rw-r--r--ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java b/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java
index e296565..a9bad02 100644
--- a/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java
+++ b/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java
@@ -3,6 +3,8 @@
*
* =================================================================================
* Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+ *
+ * Modifications Copyright (C) 2019 IBM
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,6 +39,20 @@ public class CloudifyExecutionRequest extends ECTransportModel {
public String tenant;
/** Parameters: retrieve using the GET /deployments */
public Map<String, Object> parameters;
+
+ @JsonCreator
+ public CloudifyExecutionRequest(@JsonProperty("deployment_id") String deployment_id,
+ @JsonProperty("workflow_id") String workflow_id,
+ @JsonProperty("allow_custom_parameters") Boolean allowCustomParameters,
+ @JsonProperty("force") Boolean force, @JsonProperty("tenant") String tenant,
+ @JsonProperty("parameters") Map<String, Object> parameters) {
+ this.deployment_id = deployment_id;
+ this.workflow_id = workflow_id;
+ this.allow_custom_parameters = allowCustomParameters;
+ this.force = force;
+ this.tenant = tenant;
+ this.parameters = parameters;
+ }
public String getDeployment_id() {
return deployment_id;
@@ -86,18 +102,5 @@ public class CloudifyExecutionRequest extends ECTransportModel {
this.parameters = parameters;
}
- @JsonCreator
- public CloudifyExecutionRequest(@JsonProperty("deployment_id") String deployment_id,
- @JsonProperty("workflow_id") String workflow_id,
- @JsonProperty("allow_custom_parameters") Boolean allowCustomParameters,
- @JsonProperty("force") Boolean force, @JsonProperty("tenant") String tenant,
- @JsonProperty("parameters") Map<String, Object> parameters) {
- this.deployment_id = deployment_id;
- this.workflow_id = workflow_id;
- this.allow_custom_parameters = allowCustomParameters;
- this.force = force;
- this.tenant = tenant;
- this.parameters = parameters;
- }
}