diff options
author | 2019-07-26 17:39:41 +0000 | |
---|---|---|
committer | 2019-07-26 17:39:41 +0000 | |
commit | 65069d959fc753d1de10f74661d9f523a8882539 (patch) | |
tree | 916dcac9488273969661a3163b92df5cf0b6bb98 | |
parent | f224f5106aca1158587b67c7e6fd3986108a3480 (diff) | |
parent | 6fe9c2775a1ff391336ee9f55d284304cf037df3 (diff) |
Merge "CCSDK-1538 -Move this constructor to comply with Java Code Conventions"
-rw-r--r-- | ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java | 29 |
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; - } } |