AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePlatformVersionRequest.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/model/S3Location.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
13#include <aws/elasticbeanstalk/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ElasticBeanstalk
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_ELASTICBEANSTALK_API CreatePlatformVersionRequest() = default;
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 "CreatePlatformVersion"; }
38
39 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
50 inline const Aws::String& GetPlatformName() const { return m_platformName; }
51 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
52 template<typename PlatformNameT = Aws::String>
53 void SetPlatformName(PlatformNameT&& value) { m_platformNameHasBeenSet = true; m_platformName = std::forward<PlatformNameT>(value); }
54 template<typename PlatformNameT = Aws::String>
55 CreatePlatformVersionRequest& WithPlatformName(PlatformNameT&& value) { SetPlatformName(std::forward<PlatformNameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
63 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
64 template<typename PlatformVersionT = Aws::String>
65 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
66 template<typename PlatformVersionT = Aws::String>
67 CreatePlatformVersionRequest& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
69
71
74 inline const S3Location& GetPlatformDefinitionBundle() const { return m_platformDefinitionBundle; }
75 inline bool PlatformDefinitionBundleHasBeenSet() const { return m_platformDefinitionBundleHasBeenSet; }
76 template<typename PlatformDefinitionBundleT = S3Location>
77 void SetPlatformDefinitionBundle(PlatformDefinitionBundleT&& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = std::forward<PlatformDefinitionBundleT>(value); }
78 template<typename PlatformDefinitionBundleT = S3Location>
79 CreatePlatformVersionRequest& WithPlatformDefinitionBundle(PlatformDefinitionBundleT&& value) { SetPlatformDefinitionBundle(std::forward<PlatformDefinitionBundleT>(value)); return *this;}
81
83
86 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
87 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
88 template<typename EnvironmentNameT = Aws::String>
89 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
90 template<typename EnvironmentNameT = Aws::String>
91 CreatePlatformVersionRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
93
95
98 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
99 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
100 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
101 void SetOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::forward<OptionSettingsT>(value); }
102 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
103 CreatePlatformVersionRequest& WithOptionSettings(OptionSettingsT&& value) { SetOptionSettings(std::forward<OptionSettingsT>(value)); return *this;}
104 template<typename OptionSettingsT = ConfigurationOptionSetting>
105 CreatePlatformVersionRequest& AddOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value)); return *this; }
107
109
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Vector<Tag>>
119 CreatePlatformVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsT = Tag>
121 CreatePlatformVersionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
123 private:
124
125 Aws::String m_platformName;
126 bool m_platformNameHasBeenSet = false;
127
128 Aws::String m_platformVersion;
129 bool m_platformVersionHasBeenSet = false;
130
131 S3Location m_platformDefinitionBundle;
132 bool m_platformDefinitionBundleHasBeenSet = false;
133
134 Aws::String m_environmentName;
135 bool m_environmentNameHasBeenSet = false;
136
138 bool m_optionSettingsHasBeenSet = false;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace ElasticBeanstalk
146} // namespace Aws
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreatePlatformVersionRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreatePlatformVersionRequest & WithPlatformVersion(PlatformVersionT &&value)
CreatePlatformVersionRequest & WithPlatformName(PlatformNameT &&value)
CreatePlatformVersionRequest & WithPlatformDefinitionBundle(PlatformDefinitionBundleT &&value)
AWS_ELASTICBEANSTALK_API CreatePlatformVersionRequest()=default
CreatePlatformVersionRequest & WithOptionSettings(OptionSettingsT &&value)
CreatePlatformVersionRequest & AddOptionSettings(OptionSettingsT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector