|
| 1 | +package com.woorea.openstack.heat.model; |
| 2 | + |
| 3 | +import org.codehaus.jackson.annotate.JsonProperty; |
| 4 | + |
| 5 | +import java.util.Map; |
| 6 | + |
| 7 | +public class CreateStackParam { |
| 8 | + @JsonProperty("stack_name") |
| 9 | + private String stackName; |
| 10 | + |
| 11 | + @JsonProperty("template_url") |
| 12 | + private String templateUrl; |
| 13 | + |
| 14 | + @JsonProperty |
| 15 | + private String template; |
| 16 | + |
| 17 | + @JsonProperty("parameters") |
| 18 | + private Map<String, String> parameters; |
| 19 | + |
| 20 | + @JsonProperty("timeout_mins") |
| 21 | + private int timeoutMinutes; |
| 22 | + |
| 23 | + @JsonProperty("environment") |
| 24 | + private String environment; |
| 25 | + |
| 26 | + public String getStackName() { |
| 27 | + return stackName; |
| 28 | + } |
| 29 | + |
| 30 | + public void setStackName(String stackName) { |
| 31 | + this.stackName = stackName; |
| 32 | + } |
| 33 | + |
| 34 | + public String getTemplateUrl() { |
| 35 | + return templateUrl; |
| 36 | + } |
| 37 | + |
| 38 | + /** |
| 39 | + * The URL of the template to instantiate. This value is ignored if the template is supplied inline. |
| 40 | + * |
| 41 | + * @param templateUrl a template url. |
| 42 | + */ |
| 43 | + public void setTemplateUrl(String templateUrl) { |
| 44 | + this.templateUrl = templateUrl; |
| 45 | + } |
| 46 | + |
| 47 | + public Map<String, String> getParameters() { |
| 48 | + return parameters; |
| 49 | + } |
| 50 | + |
| 51 | + public String getTemplate() { |
| 52 | + return template; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * A JSON template to instantiate. This value takes precedence over the template URL if both are supplied. |
| 57 | + * |
| 58 | + * @param template a template json. |
| 59 | + */ |
| 60 | + public void setTemplate(String template) { |
| 61 | + this.template = template; |
| 62 | + } |
| 63 | + |
| 64 | + public void setParameters(Map<String, String> parameters) { |
| 65 | + this.parameters = parameters; |
| 66 | + } |
| 67 | + |
| 68 | + public int getTimeoutMinutes() { |
| 69 | + return timeoutMinutes; |
| 70 | + } |
| 71 | + |
| 72 | + public void setTimeoutMinutes(int timeoutMinutes) { |
| 73 | + this.timeoutMinutes = timeoutMinutes; |
| 74 | + } |
| 75 | + |
| 76 | + public String getEnvironment() { |
| 77 | + return environment; |
| 78 | + } |
| 79 | + |
| 80 | + /** |
| 81 | + * A JSON environment for the stack. |
| 82 | + * |
| 83 | + * @param environment a environment. |
| 84 | + */ |
| 85 | + public void setEnvironment(String environment) { |
| 86 | + this.environment = environment; |
| 87 | + } |
| 88 | + |
| 89 | + @Override |
| 90 | + public String toString() { |
| 91 | + return "CreateStackParam{" + |
| 92 | + "stackName='" + stackName + '\'' + |
| 93 | + ", templateUrl='" + templateUrl + '\'' + |
| 94 | + ", template='" + template + '\'' + |
| 95 | + ", parameters=" + parameters + |
| 96 | + ", timeoutMinutes=" + timeoutMinutes + |
| 97 | + ", environment='" + environment + '\'' + |
| 98 | + '}'; |
| 99 | + } |
| 100 | +} |
0 commit comments