AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateEnvironmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace ElasticBeanstalk
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
49  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
50 
54  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
55 
59  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
60 
64  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
65 
69  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
70 
74  inline UpdateEnvironmentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
75 
79  inline UpdateEnvironmentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
80 
84  inline UpdateEnvironmentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
85 
86 
94  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
95 
103  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
104 
112  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
113 
121  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
122 
130  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
131 
139  inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
140 
148  inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
149 
157  inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
158 
159 
167  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
168 
176  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
177 
185  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
186 
194  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
195 
203  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
204 
212  inline UpdateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
213 
221  inline UpdateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
222 
230  inline UpdateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
231 
232 
240  inline const Aws::String& GetGroupName() const{ return m_groupName; }
241 
249  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
250 
258  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
259 
267  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
268 
276  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
277 
285  inline UpdateEnvironmentRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
286 
294  inline UpdateEnvironmentRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
295 
303  inline UpdateEnvironmentRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
304 
305 
310  inline const Aws::String& GetDescription() const{ return m_description; }
311 
316  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
317 
322  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
323 
328  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
329 
334  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
335 
340  inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
341 
346  inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
347 
352  inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
353 
354 
360  inline const EnvironmentTier& GetTier() const{ return m_tier; }
361 
367  inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
368 
374  inline void SetTier(const EnvironmentTier& value) { m_tierHasBeenSet = true; m_tier = value; }
375 
381  inline void SetTier(EnvironmentTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
382 
388  inline UpdateEnvironmentRequest& WithTier(const EnvironmentTier& value) { SetTier(value); return *this;}
389 
395  inline UpdateEnvironmentRequest& WithTier(EnvironmentTier&& value) { SetTier(std::move(value)); return *this;}
396 
397 
403  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
404 
410  inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
411 
417  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
418 
424  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
425 
431  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
432 
438  inline UpdateEnvironmentRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
439 
445  inline UpdateEnvironmentRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
446 
452  inline UpdateEnvironmentRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
453 
454 
461  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
462 
469  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
470 
477  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
478 
485  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
486 
493  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
494 
501  inline UpdateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
502 
509  inline UpdateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
510 
517  inline UpdateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
518 
519 
524  inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
525 
530  inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
531 
536  inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
537 
542  inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::move(value); }
543 
548  inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
549 
554  inline UpdateEnvironmentRequest& WithSolutionStackName(const Aws::String& value) { SetSolutionStackName(value); return *this;}
555 
560  inline UpdateEnvironmentRequest& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(std::move(value)); return *this;}
561 
566  inline UpdateEnvironmentRequest& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
567 
568 
572  inline const Aws::String& GetPlatformArn() const{ return m_platformArn; }
573 
577  inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
578 
582  inline void SetPlatformArn(const Aws::String& value) { m_platformArnHasBeenSet = true; m_platformArn = value; }
583 
587  inline void SetPlatformArn(Aws::String&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::move(value); }
588 
592  inline void SetPlatformArn(const char* value) { m_platformArnHasBeenSet = true; m_platformArn.assign(value); }
593 
597  inline UpdateEnvironmentRequest& WithPlatformArn(const Aws::String& value) { SetPlatformArn(value); return *this;}
598 
602  inline UpdateEnvironmentRequest& WithPlatformArn(Aws::String&& value) { SetPlatformArn(std::move(value)); return *this;}
603 
607  inline UpdateEnvironmentRequest& WithPlatformArn(const char* value) { SetPlatformArn(value); return *this;}
608 
609 
615  inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
616 
622  inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
623 
629  inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
630 
636  inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
637 
643  inline UpdateEnvironmentRequest& WithOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { SetOptionSettings(value); return *this;}
644 
650  inline UpdateEnvironmentRequest& WithOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
651 
657  inline UpdateEnvironmentRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
658 
664  inline UpdateEnvironmentRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
665 
666 
671  inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const{ return m_optionsToRemove; }
672 
677  inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
678 
683  inline void SetOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
684 
689  inline void SetOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::move(value); }
690 
695  inline UpdateEnvironmentRequest& WithOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { SetOptionsToRemove(value); return *this;}
696 
701  inline UpdateEnvironmentRequest& WithOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { SetOptionsToRemove(std::move(value)); return *this;}
702 
707  inline UpdateEnvironmentRequest& AddOptionsToRemove(const OptionSpecification& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
708 
713  inline UpdateEnvironmentRequest& AddOptionsToRemove(OptionSpecification&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(std::move(value)); return *this; }
714 
715  private:
716 
717  Aws::String m_applicationName;
718  bool m_applicationNameHasBeenSet;
719 
720  Aws::String m_environmentId;
721  bool m_environmentIdHasBeenSet;
722 
723  Aws::String m_environmentName;
724  bool m_environmentNameHasBeenSet;
725 
726  Aws::String m_groupName;
727  bool m_groupNameHasBeenSet;
728 
729  Aws::String m_description;
730  bool m_descriptionHasBeenSet;
731 
732  EnvironmentTier m_tier;
733  bool m_tierHasBeenSet;
734 
735  Aws::String m_versionLabel;
736  bool m_versionLabelHasBeenSet;
737 
738  Aws::String m_templateName;
739  bool m_templateNameHasBeenSet;
740 
741  Aws::String m_solutionStackName;
742  bool m_solutionStackNameHasBeenSet;
743 
744  Aws::String m_platformArn;
745  bool m_platformArnHasBeenSet;
746 
748  bool m_optionSettingsHasBeenSet;
749 
750  Aws::Vector<OptionSpecification> m_optionsToRemove;
751  bool m_optionsToRemoveHasBeenSet;
752  };
753 
754 } // namespace Model
755 } // namespace ElasticBeanstalk
756 } // namespace Aws
UpdateEnvironmentRequest & WithGroupName(Aws::String &&value)
UpdateEnvironmentRequest & WithEnvironmentId(const char *value)
UpdateEnvironmentRequest & AddOptionSettings(const ConfigurationOptionSetting &value)
UpdateEnvironmentRequest & WithTemplateName(Aws::String &&value)
UpdateEnvironmentRequest & WithPlatformArn(const char *value)
void SetOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
#define AWS_ELASTICBEANSTALK_API
UpdateEnvironmentRequest & WithVersionLabel(const Aws::String &value)
UpdateEnvironmentRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
UpdateEnvironmentRequest & AddOptionSettings(ConfigurationOptionSetting &&value)
UpdateEnvironmentRequest & WithOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
void SetOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
UpdateEnvironmentRequest & WithApplicationName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UpdateEnvironmentRequest & WithApplicationName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithGroupName(const char *value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
UpdateEnvironmentRequest & WithTier(EnvironmentTier &&value)
UpdateEnvironmentRequest & WithSolutionStackName(Aws::String &&value)
UpdateEnvironmentRequest & AddOptionsToRemove(OptionSpecification &&value)
UpdateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
UpdateEnvironmentRequest & WithTier(const EnvironmentTier &value)
UpdateEnvironmentRequest & WithEnvironmentName(const char *value)
UpdateEnvironmentRequest & WithVersionLabel(Aws::String &&value)
UpdateEnvironmentRequest & WithDescription(const Aws::String &value)
UpdateEnvironmentRequest & WithPlatformArn(const Aws::String &value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
UpdateEnvironmentRequest & WithGroupName(const Aws::String &value)
UpdateEnvironmentRequest & WithSolutionStackName(const char *value)
void SetOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
UpdateEnvironmentRequest & WithTemplateName(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
UpdateEnvironmentRequest & WithOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
UpdateEnvironmentRequest & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateEnvironmentRequest & WithSolutionStackName(const Aws::String &value)
UpdateEnvironmentRequest & AddOptionsToRemove(const OptionSpecification &value)
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
UpdateEnvironmentRequest & WithOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
UpdateEnvironmentRequest & WithTemplateName(const char *value)
UpdateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
UpdateEnvironmentRequest & WithApplicationName(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentName(const Aws::String &value)
UpdateEnvironmentRequest & WithVersionLabel(const char *value)
UpdateEnvironmentRequest & WithPlatformArn(Aws::String &&value)
UpdateEnvironmentRequest & WithDescription(const char *value)