AWS SDK for C++  0.12.9
AWS SDK for C++
CreateEnvironmentRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
24 
25 namespace Aws
26 {
27 namespace ElasticBeanstalk
28 {
29 namespace Model
30 {
31 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
46  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
47 
53  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
54 
60  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
61 
67  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
68 
74  inline CreateEnvironmentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
75 
81  inline CreateEnvironmentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
82 
88  inline CreateEnvironmentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
89 
100  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
101 
112  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
113 
124  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
125 
136  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
137 
148  inline CreateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
149 
160  inline CreateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(value); return *this;}
161 
172  inline CreateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
173 
181  inline const Aws::String& GetGroupName() const{ return m_groupName; }
182 
190  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
191 
199  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
200 
208  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
209 
217  inline CreateEnvironmentRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
218 
226  inline CreateEnvironmentRequest& WithGroupName(Aws::String&& value) { SetGroupName(value); return *this;}
227 
235  inline CreateEnvironmentRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
236 
240  inline const Aws::String& GetDescription() const{ return m_description; }
241 
245  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
246 
250  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
251 
255  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
256 
260  inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
261 
265  inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
266 
270  inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
271 
277  inline const Aws::String& GetCNAMEPrefix() const{ return m_cNAMEPrefix; }
278 
284  inline void SetCNAMEPrefix(const Aws::String& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = value; }
285 
291  inline void SetCNAMEPrefix(Aws::String&& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = value; }
292 
298  inline void SetCNAMEPrefix(const char* value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix.assign(value); }
299 
305  inline CreateEnvironmentRequest& WithCNAMEPrefix(const Aws::String& value) { SetCNAMEPrefix(value); return *this;}
306 
312  inline CreateEnvironmentRequest& WithCNAMEPrefix(Aws::String&& value) { SetCNAMEPrefix(value); return *this;}
313 
319  inline CreateEnvironmentRequest& WithCNAMEPrefix(const char* value) { SetCNAMEPrefix(value); return *this;}
320 
324  inline const EnvironmentTier& GetTier() const{ return m_tier; }
325 
329  inline void SetTier(const EnvironmentTier& value) { m_tierHasBeenSet = true; m_tier = value; }
330 
334  inline void SetTier(EnvironmentTier&& value) { m_tierHasBeenSet = true; m_tier = value; }
335 
339  inline CreateEnvironmentRequest& WithTier(const EnvironmentTier& value) { SetTier(value); return *this;}
340 
344  inline CreateEnvironmentRequest& WithTier(EnvironmentTier&& value) { SetTier(value); return *this;}
345 
349  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
350 
354  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
355 
359  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
360 
364  inline CreateEnvironmentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
365 
369  inline CreateEnvironmentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
370 
374  inline CreateEnvironmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
375 
379  inline CreateEnvironmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
380 
388  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
389 
397  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
398 
406  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
407 
415  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
416 
424  inline CreateEnvironmentRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
425 
433  inline CreateEnvironmentRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
434 
442  inline CreateEnvironmentRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
443 
454  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
455 
466  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
467 
478  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
479 
490  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
491 
502  inline CreateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
503 
514  inline CreateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(value); return *this;}
515 
526  inline CreateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
527 
537  inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
538 
548  inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
549 
559  inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
560 
570  inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
571 
581  inline CreateEnvironmentRequest& WithSolutionStackName(const Aws::String& value) { SetSolutionStackName(value); return *this;}
582 
592  inline CreateEnvironmentRequest& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(value); return *this;}
593 
603  inline CreateEnvironmentRequest& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
604 
611  inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
612 
619  inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
620 
627  inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
628 
635  inline CreateEnvironmentRequest& WithOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { SetOptionSettings(value); return *this;}
636 
643  inline CreateEnvironmentRequest& WithOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { SetOptionSettings(value); return *this;}
644 
651  inline CreateEnvironmentRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
652 
659  inline CreateEnvironmentRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
660 
665  inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const{ return m_optionsToRemove; }
666 
671  inline void SetOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
672 
677  inline void SetOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
678 
683  inline CreateEnvironmentRequest& WithOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { SetOptionsToRemove(value); return *this;}
684 
689  inline CreateEnvironmentRequest& WithOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { SetOptionsToRemove(value); return *this;}
690 
695  inline CreateEnvironmentRequest& AddOptionsToRemove(const OptionSpecification& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
696 
701  inline CreateEnvironmentRequest& AddOptionsToRemove(OptionSpecification&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
702 
703  private:
704  Aws::String m_applicationName;
705  bool m_applicationNameHasBeenSet;
706  Aws::String m_environmentName;
707  bool m_environmentNameHasBeenSet;
708  Aws::String m_groupName;
709  bool m_groupNameHasBeenSet;
710  Aws::String m_description;
711  bool m_descriptionHasBeenSet;
712  Aws::String m_cNAMEPrefix;
713  bool m_cNAMEPrefixHasBeenSet;
714  EnvironmentTier m_tier;
715  bool m_tierHasBeenSet;
716  Aws::Vector<Tag> m_tags;
717  bool m_tagsHasBeenSet;
718  Aws::String m_versionLabel;
719  bool m_versionLabelHasBeenSet;
720  Aws::String m_templateName;
721  bool m_templateNameHasBeenSet;
722  Aws::String m_solutionStackName;
723  bool m_solutionStackNameHasBeenSet;
725  bool m_optionSettingsHasBeenSet;
726  Aws::Vector<OptionSpecification> m_optionsToRemove;
727  bool m_optionsToRemoveHasBeenSet;
728  };
729 
730 } // namespace Model
731 } // namespace ElasticBeanstalk
732 } // namespace Aws
CreateEnvironmentRequest & WithSolutionStackName(const Aws::String &value)
CreateEnvironmentRequest & WithTier(EnvironmentTier &&value)
CreateEnvironmentRequest & WithApplicationName(const Aws::String &value)
CreateEnvironmentRequest & WithTemplateName(const char *value)
CreateEnvironmentRequest & WithTags(const Aws::Vector< Tag > &value)
#define AWS_ELASTICBEANSTALK_API
CreateEnvironmentRequest & WithDescription(Aws::String &&value)
CreateEnvironmentRequest & WithCNAMEPrefix(Aws::String &&value)
CreateEnvironmentRequest & WithSolutionStackName(Aws::String &&value)
CreateEnvironmentRequest & WithVersionLabel(const Aws::String &value)
CreateEnvironmentRequest & WithOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
CreateEnvironmentRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateEnvironmentRequest & WithGroupName(const Aws::String &value)
CreateEnvironmentRequest & WithEnvironmentName(const Aws::String &value)
CreateEnvironmentRequest & WithOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreateEnvironmentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentRequest & WithTemplateName(Aws::String &&value)
CreateEnvironmentRequest & AddOptionsToRemove(OptionSpecification &&value)
CreateEnvironmentRequest & AddTags(const Tag &value)
CreateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
CreateEnvironmentRequest & WithSolutionStackName(const char *value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreateEnvironmentRequest & WithGroupName(Aws::String &&value)
CreateEnvironmentRequest & WithEnvironmentName(const char *value)
CreateEnvironmentRequest & WithVersionLabel(Aws::String &&value)
CreateEnvironmentRequest & AddOptionsToRemove(const OptionSpecification &value)
CreateEnvironmentRequest & WithTemplateName(const Aws::String &value)
CreateEnvironmentRequest & WithDescription(const Aws::String &value)
CreateEnvironmentRequest & WithTier(const EnvironmentTier &value)
CreateEnvironmentRequest & WithOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
CreateEnvironmentRequest & WithCNAMEPrefix(const char *value)
CreateEnvironmentRequest & WithGroupName(const char *value)
CreateEnvironmentRequest & WithApplicationName(const char *value)
CreateEnvironmentRequest & AddOptionSettings(ConfigurationOptionSetting &&value)
void SetOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateEnvironmentRequest & AddOptionSettings(const ConfigurationOptionSetting &value)
void SetOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
void SetOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreateEnvironmentRequest & WithApplicationName(Aws::String &&value)
CreateEnvironmentRequest & WithDescription(const char *value)
CreateEnvironmentRequest & WithVersionLabel(const char *value)
JSON (JavaScript Object Notation).
CreateEnvironmentRequest & WithCNAMEPrefix(const Aws::String &value)