AWS SDK for C++  1.8.95
AWS SDK for C++
CreateEnvironmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ElasticBeanstalk
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
50  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
51 
55  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
56 
60  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
61 
65  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
66 
70  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
71 
75  inline CreateEnvironmentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
76 
80  inline CreateEnvironmentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
81 
85  inline CreateEnvironmentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
86 
87 
98  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
99 
110  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
111 
122  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
123 
134  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
135 
146  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
147 
158  inline CreateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
159 
170  inline CreateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
171 
182  inline CreateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
183 
184 
192  inline const Aws::String& GetGroupName() const{ return m_groupName; }
193 
201  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
202 
210  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
211 
219  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
220 
228  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
229 
237  inline CreateEnvironmentRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
238 
246  inline CreateEnvironmentRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
247 
255  inline CreateEnvironmentRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
256 
257 
261  inline const Aws::String& GetDescription() const{ return m_description; }
262 
266  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
267 
271  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
272 
276  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
277 
281  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
282 
286  inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
287 
291  inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
292 
296  inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
297 
298 
305  inline const Aws::String& GetCNAMEPrefix() const{ return m_cNAMEPrefix; }
306 
313  inline bool CNAMEPrefixHasBeenSet() const { return m_cNAMEPrefixHasBeenSet; }
314 
321  inline void SetCNAMEPrefix(const Aws::String& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = value; }
322 
329  inline void SetCNAMEPrefix(Aws::String&& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = std::move(value); }
330 
337  inline void SetCNAMEPrefix(const char* value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix.assign(value); }
338 
345  inline CreateEnvironmentRequest& WithCNAMEPrefix(const Aws::String& value) { SetCNAMEPrefix(value); return *this;}
346 
353  inline CreateEnvironmentRequest& WithCNAMEPrefix(Aws::String&& value) { SetCNAMEPrefix(std::move(value)); return *this;}
354 
361  inline CreateEnvironmentRequest& WithCNAMEPrefix(const char* value) { SetCNAMEPrefix(value); return *this;}
362 
363 
370  inline const EnvironmentTier& GetTier() const{ return m_tier; }
371 
378  inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
379 
386  inline void SetTier(const EnvironmentTier& value) { m_tierHasBeenSet = true; m_tier = value; }
387 
394  inline void SetTier(EnvironmentTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
395 
402  inline CreateEnvironmentRequest& WithTier(const EnvironmentTier& value) { SetTier(value); return *this;}
403 
410  inline CreateEnvironmentRequest& WithTier(EnvironmentTier&& value) { SetTier(std::move(value)); return *this;}
411 
412 
416  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
417 
421  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
422 
426  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
427 
431  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
432 
436  inline CreateEnvironmentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
437 
441  inline CreateEnvironmentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
442 
446  inline CreateEnvironmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
447 
451  inline CreateEnvironmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
452 
453 
458  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
459 
464  inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
465 
470  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
471 
476  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
477 
482  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
483 
488  inline CreateEnvironmentRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
489 
494  inline CreateEnvironmentRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
495 
500  inline CreateEnvironmentRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
501 
502 
508  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
509 
515  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
516 
522  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
523 
529  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
530 
536  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
537 
543  inline CreateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
544 
550  inline CreateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
551 
557  inline CreateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
558 
559 
570  inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
571 
582  inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
583 
594  inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
595 
606  inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::move(value); }
607 
618  inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
619 
630  inline CreateEnvironmentRequest& WithSolutionStackName(const Aws::String& value) { SetSolutionStackName(value); return *this;}
631 
642  inline CreateEnvironmentRequest& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(std::move(value)); return *this;}
643 
654  inline CreateEnvironmentRequest& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
655 
656 
665  inline const Aws::String& GetPlatformArn() const{ return m_platformArn; }
666 
675  inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
676 
685  inline void SetPlatformArn(const Aws::String& value) { m_platformArnHasBeenSet = true; m_platformArn = value; }
686 
695  inline void SetPlatformArn(Aws::String&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::move(value); }
696 
705  inline void SetPlatformArn(const char* value) { m_platformArnHasBeenSet = true; m_platformArn.assign(value); }
706 
715  inline CreateEnvironmentRequest& WithPlatformArn(const Aws::String& value) { SetPlatformArn(value); return *this;}
716 
725  inline CreateEnvironmentRequest& WithPlatformArn(Aws::String&& value) { SetPlatformArn(std::move(value)); return *this;}
726 
735  inline CreateEnvironmentRequest& WithPlatformArn(const char* value) { SetPlatformArn(value); return *this;}
736 
737 
744  inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
745 
752  inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
753 
760  inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
761 
768  inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
769 
776  inline CreateEnvironmentRequest& WithOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { SetOptionSettings(value); return *this;}
777 
784  inline CreateEnvironmentRequest& WithOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
785 
792  inline CreateEnvironmentRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
793 
800  inline CreateEnvironmentRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
801 
802 
807  inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const{ return m_optionsToRemove; }
808 
813  inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
814 
819  inline void SetOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
820 
825  inline void SetOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::move(value); }
826 
831  inline CreateEnvironmentRequest& WithOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { SetOptionsToRemove(value); return *this;}
832 
837  inline CreateEnvironmentRequest& WithOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { SetOptionsToRemove(std::move(value)); return *this;}
838 
843  inline CreateEnvironmentRequest& AddOptionsToRemove(const OptionSpecification& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
844 
849  inline CreateEnvironmentRequest& AddOptionsToRemove(OptionSpecification&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(std::move(value)); return *this; }
850 
851 
862  inline const Aws::String& GetOperationsRole() const{ return m_operationsRole; }
863 
874  inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
875 
886  inline void SetOperationsRole(const Aws::String& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = value; }
887 
898  inline void SetOperationsRole(Aws::String&& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = std::move(value); }
899 
910  inline void SetOperationsRole(const char* value) { m_operationsRoleHasBeenSet = true; m_operationsRole.assign(value); }
911 
922  inline CreateEnvironmentRequest& WithOperationsRole(const Aws::String& value) { SetOperationsRole(value); return *this;}
923 
934  inline CreateEnvironmentRequest& WithOperationsRole(Aws::String&& value) { SetOperationsRole(std::move(value)); return *this;}
935 
946  inline CreateEnvironmentRequest& WithOperationsRole(const char* value) { SetOperationsRole(value); return *this;}
947 
948  private:
949 
950  Aws::String m_applicationName;
951  bool m_applicationNameHasBeenSet;
952 
953  Aws::String m_environmentName;
954  bool m_environmentNameHasBeenSet;
955 
956  Aws::String m_groupName;
957  bool m_groupNameHasBeenSet;
958 
959  Aws::String m_description;
960  bool m_descriptionHasBeenSet;
961 
962  Aws::String m_cNAMEPrefix;
963  bool m_cNAMEPrefixHasBeenSet;
964 
965  EnvironmentTier m_tier;
966  bool m_tierHasBeenSet;
967 
968  Aws::Vector<Tag> m_tags;
969  bool m_tagsHasBeenSet;
970 
971  Aws::String m_versionLabel;
972  bool m_versionLabelHasBeenSet;
973 
974  Aws::String m_templateName;
975  bool m_templateNameHasBeenSet;
976 
977  Aws::String m_solutionStackName;
978  bool m_solutionStackNameHasBeenSet;
979 
980  Aws::String m_platformArn;
981  bool m_platformArnHasBeenSet;
982 
984  bool m_optionSettingsHasBeenSet;
985 
986  Aws::Vector<OptionSpecification> m_optionsToRemove;
987  bool m_optionsToRemoveHasBeenSet;
988 
989  Aws::String m_operationsRole;
990  bool m_operationsRoleHasBeenSet;
991  };
992 
993 } // namespace Model
994 } // namespace ElasticBeanstalk
995 } // 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)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreateEnvironmentRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
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 & WithPlatformArn(Aws::String &&value)
CreateEnvironmentRequest & WithOperationsRole(const char *value)
CreateEnvironmentRequest & AddOptionsToRemove(OptionSpecification &&value)
CreateEnvironmentRequest & AddTags(const Tag &value)
CreateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
CreateEnvironmentRequest & WithSolutionStackName(const char *value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreateEnvironmentRequest & WithGroupName(Aws::String &&value)
CreateEnvironmentRequest & WithEnvironmentName(const char *value)
CreateEnvironmentRequest & WithPlatformArn(const Aws::String &value)
CreateEnvironmentRequest & WithOperationsRole(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateEnvironmentRequest & WithOperationsRole(const Aws::String &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)
CreateEnvironmentRequest & WithPlatformArn(const char *value)
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
CreateEnvironmentRequest & WithApplicationName(Aws::String &&value)
CreateEnvironmentRequest & WithDescription(const char *value)
CreateEnvironmentRequest & WithVersionLabel(const char *value)
CreateEnvironmentRequest & WithCNAMEPrefix(const Aws::String &value)