View Javadoc
1   /*
2    * Copyright (c) 2016 ingenieux Labs
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package br.com.ingenieux.mojo.beanstalk.cmd.env.create;
18  
19  import com.amazonaws.services.elasticbeanstalk.model.ConfigurationOptionSetting;
20  import com.amazonaws.services.elasticbeanstalk.model.OptionSpecification;
21  import com.amazonaws.services.elasticbeanstalk.model.Tag;
22  
23  import java.util.List;
24  
25  public class CreateEnvironmentContext {
26  
27    String applicationName;
28  
29    String cnamePrefix;
30  
31    String applicationDescription;
32  
33    ConfigurationOptionSetting[] optionSettings = new ConfigurationOptionSetting[0];
34    OptionSpecification[] optionsToRemove = new OptionSpecification[0];
35  
36    String environmentName;
37  
38    String versionLabel;
39  
40    String solutionStack;
41  
42    String templateName;
43    String environmentTierName = "WebServer";
44    String environmentTierType = "Standard";
45    String environmentTierVersion = " ";
46    List<Tag> tags;
47  
48    /**
49     * @return the applicationName
50     */
51    public String getApplicationName() {
52      return applicationName;
53    }
54  
55    /**
56     * @param applicationName the applicationName to set
57     */
58    public void setApplicationName(String applicationName) {
59      this.applicationName = applicationName;
60    }
61  
62    /**
63     * @return the cnamePrefix
64     */
65    public String getCnamePrefix() {
66      return cnamePrefix;
67    }
68  
69    /**
70     * @param cnamePrefix the cnamePrefix to set
71     */
72    public void setCnamePrefix(String cnamePrefix) {
73      this.cnamePrefix = cnamePrefix;
74    }
75  
76    /**
77     * @return the versionDescription
78     */
79    public String getApplicationDescription() {
80      return applicationDescription;
81    }
82  
83    /**
84     * @param applicationDescription the applicationDescription to set
85     */
86    public void setApplicationDescription(String applicationDescription) {
87      this.applicationDescription = applicationDescription;
88    }
89  
90    /**
91     * @return the optionSettings
92     */
93    public ConfigurationOptionSetting[] getOptionSettings() {
94      return optionSettings;
95    }
96  
97    /**
98     * @return the optionsToRemove
99     */
100   public OptionSpecification[] getOptionsToRemove() {
101     return optionsToRemove;
102   }
103 
104   /**
105    * @param optionSettings the optionSettings to set
106    */
107   public void setOptionSettings(ConfigurationOptionSetting[] optionSettings) {
108     if (null != optionSettings) {
109       this.optionSettings = optionSettings;
110     }
111   }
112 
113   /**
114    * @param optionSettings the optionsToRemove to set
115    */
116   public void setOptionsToRemove(OptionSpecification[] optionSettings) {
117     if (null != optionSettings) {
118       this.optionsToRemove = optionSettings;
119     }
120   }
121 
122   /**
123    * @return the environmentName
124    */
125   public String getEnvironmentName() {
126     return environmentName;
127   }
128 
129   /**
130    * @param environmentName the environmentName to set
131    */
132   public void setEnvironmentName(String environmentName) {
133     this.environmentName = environmentName;
134   }
135 
136   /**
137    * @return the versionLabel
138    */
139   public String getVersionLabel() {
140     return versionLabel;
141   }
142 
143   /**
144    * @param versionLabel the versionLabel to set
145    */
146   public void setVersionLabel(String versionLabel) {
147     this.versionLabel = versionLabel;
148   }
149 
150   /**
151    * @return the solutionStack
152    */
153   public String getSolutionStack() {
154     return solutionStack;
155   }
156 
157   /**
158    * @param solutionStack the solutionStack to set
159    */
160   public void setSolutionStack(String solutionStack) {
161     this.solutionStack = solutionStack;
162   }
163 
164   /**
165    * @return the templateName
166    */
167   public String getTemplateName() {
168     return templateName;
169   }
170 
171   /**
172    * @param templateName the templateName to set
173    */
174   public void setTemplateName(String templateName) {
175     this.templateName = templateName;
176   }
177 
178   public String getEnvironmentTierName() {
179     return environmentTierName;
180   }
181 
182   public void setEnvironmentTierName(String environmentTierName) {
183     this.environmentTierName = environmentTierName;
184   }
185 
186   public String getEnvironmentTierType() {
187     return environmentTierType;
188   }
189 
190   public void setEnvironmentTierType(String environmentTierType) {
191     this.environmentTierType = environmentTierType;
192   }
193 
194   public String getEnvironmentTierVersion() {
195     return environmentTierVersion;
196   }
197 
198   public void setEnvironmentTierVersion(String environmentTierVersion) {
199     this.environmentTierVersion = environmentTierVersion;
200   }
201 
202   /**
203    * @return the environment tag list
204    */
205   public List<Tag> getTags() {
206     return tags;
207   }
208 
209   /**
210    * @param tags list of environment tags
211    */
212   public void setTags(List<Tag> tags) {
213     this.tags = tags;
214   }
215 }