1 package org.onap.ccsdk.dashboard.model.deploymenthandler;
4 import java.util.Optional;
6 import com.fasterxml.jackson.annotation.JsonCreator;
7 import com.fasterxml.jackson.annotation.JsonProperty;
10 * Model for message POST-ed to controller to create a Deployment via the Deployment Handler API:
15 "deploymentTag" : "tag",
16 "blueprintName" : "name",
17 "blueprintVersion" : "version",
18 "blueprintId" : "bp_id",
21 "input1" : "parameter1",
22 "input2" : "parameter2",
24 "inputn" : "parametern"
26 "tenant" : "tenant_name"
30 * THIS OBJECT INCLUDES THE DEPLOYMENTID CREATED BY THE USER!
32 public class DeploymentInput {
34 /** component or namespace for the service */
35 private final String component;
37 /** tag to identify the deployment */
38 private final String tag;
40 /** The blueprint name for the service to be deployed. */
41 private final String blueprintName;
43 /** blueprint version for the service to be deployed */
44 private final Optional<Integer> blueprintVersion;
46 /** blueprint typeId from inventory */
47 private final Optional<String> blueprintId;
49 /** The cloudify tenant name for the deployment */
50 private final String tenant;
52 * Object containing inputs needed by the service blueprint to create an instance of the service.
53 * Content of the object depends on the service being deployed.
55 private final Map<String, Object> inputs;
58 public DeploymentInput(
59 @JsonProperty("component") String component,
60 @JsonProperty("tag") String tag,
61 @JsonProperty("blueprintName") String blueprintName,
62 @JsonProperty("blueprintVersion") Integer blueprintVersion,
63 @JsonProperty("blueprintId") String blueprintId,
64 @JsonProperty("inputs") Map<String, Object> inputs,
65 @JsonProperty("tenant") String tenant) {
66 this.component = component;
68 this.blueprintName = blueprintName;
69 this.blueprintVersion = Optional.ofNullable(blueprintVersion);
70 this.blueprintId = Optional.ofNullable(blueprintId);
75 public String getBlueprintName() {
76 return this.blueprintName;
79 public Map<String, Object> getInputs() {
83 public String getTenant() {
87 public Optional<Integer> getBlueprintVersion() {
88 return blueprintVersion;
91 public String getTag() {
95 public String getComponent() {
99 public Optional<String> getBlueprintId() {