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.update;
18  
19  import com.amazonaws.services.elasticbeanstalk.model.ConfigurationOptionSetting;
20  import com.amazonaws.services.elasticbeanstalk.model.OptionSpecification;
21  
22  public class UpdateEnvironmentContext {
23  
24    String environmentName;
25  
26    String environmentId;
27  
28    String versionLabel;
29  
30    String environmentDescription;
31  
32    ConfigurationOptionSetting[] optionSettings = new ConfigurationOptionSetting[0];
33    OptionSpecification[] optionsToRemove = new OptionSpecification[0];
34  
35    String templateName;
36  
37    String latestVersionLabel;
38  
39    String environmentTierName;
40  
41    String environmentTierType;
42  
43    public String getEnvironmentTierType() {
44      return environmentTierType;
45    }
46  
47    public void setEnvironmentTierType(String environmentTierType) {
48      this.environmentTierType = environmentTierType;
49    }
50  
51    String environmentTierVersion;
52  
53    public String getEnvironmentTierVersion() {
54      return environmentTierVersion;
55    }
56  
57    public void setEnvironmentTierVersion(String environmentTierVersion) {
58      this.environmentTierVersion = environmentTierVersion;
59    }
60  
61    public String getLatestVersionLabel() {
62      return latestVersionLabel;
63    }
64  
65    public void setLatestVersionLabel(String latestVersionLabel) {
66      this.latestVersionLabel = latestVersionLabel;
67    }
68  
69    /**
70     * @return the environmentName
71     */
72    public String getEnvironmentName() {
73      return environmentName;
74    }
75  
76    /**
77     * @param environmentName the environmentName to set
78     */
79    public void setEnvironmentName(String environmentName) {
80      this.environmentName = environmentName;
81    }
82  
83    /**
84     * @return the environmentId
85     */
86    public String getEnvironmentId() {
87      return environmentId;
88    }
89  
90    /**
91     * @param environmentId the environmentId to set
92     */
93    public void setEnvironmentId(String environmentId) {
94      this.environmentId = environmentId;
95    }
96  
97    /**
98     * @return the versionLabel
99     */
100   public String getVersionLabel() {
101     return versionLabel;
102   }
103 
104   /**
105    * @param versionLabel the versionLabel to set
106    */
107   public void setVersionLabel(String versionLabel) {
108     this.versionLabel = versionLabel;
109   }
110 
111   /**
112    * @return the environmentDescription
113    */
114   public String getEnvironmentDescription() {
115     return environmentDescription;
116   }
117 
118   /**
119    * @param environmentDescription the environmentDescription to set
120    */
121   public void setEnvironmentDescription(String environmentDescription) {
122     this.environmentDescription = environmentDescription;
123   }
124 
125   /**
126    * @return the optionSettings
127    */
128   public ConfigurationOptionSetting[] getOptionSettings() {
129     return optionSettings;
130   }
131 
132   /**
133    * @param optionSettings the optionSettings to set
134    */
135   public void setOptionSettings(ConfigurationOptionSetting[] optionSettings) {
136     if (null != optionSettings) {
137       this.optionSettings = optionSettings;
138     }
139   }
140 
141   /**
142    * @param optionSettings the optionsToRemove to set
143    */
144   public void setOptionsToRemove(OptionSpecification[] optionSettings) {
145     if (null != optionsToRemove) {
146       this.optionsToRemove = optionSettings;
147     }
148   }
149 
150   /**
151    * @return the templateName
152    */
153   public String getTemplateName() {
154     return templateName;
155   }
156 
157   /**
158    * @param templateName the templateName to set
159    */
160   public void setTemplateName(String templateName) {
161     this.templateName = templateName;
162   }
163 
164   public String getEnvironmentTierName() {
165     return environmentTierName;
166   }
167 
168   public void setEnvironmentTierName(String environmentTierName) {
169     this.environmentTierName = environmentTierName;
170   }
171 }