AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/ApplicationResourceLifecycleConfig.h>
12#include <aws/elasticbeanstalk/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ElasticBeanstalk {
18namespace Model {
19
26 public:
27 AWS_ELASTICBEANSTALK_API CreateApplicationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
34
35 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
46 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
47 template <typename ApplicationNameT = Aws::String>
48 void SetApplicationName(ApplicationNameT&& value) {
49 m_applicationNameHasBeenSet = true;
50 m_applicationName = std::forward<ApplicationNameT>(value);
51 }
52 template <typename ApplicationNameT = Aws::String>
53 CreateApplicationRequest& WithApplicationName(ApplicationNameT&& value) {
54 SetApplicationName(std::forward<ApplicationNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
82 inline const ApplicationResourceLifecycleConfig& GetResourceLifecycleConfig() const { return m_resourceLifecycleConfig; }
83 inline bool ResourceLifecycleConfigHasBeenSet() const { return m_resourceLifecycleConfigHasBeenSet; }
84 template <typename ResourceLifecycleConfigT = ApplicationResourceLifecycleConfig>
85 void SetResourceLifecycleConfig(ResourceLifecycleConfigT&& value) {
86 m_resourceLifecycleConfigHasBeenSet = true;
87 m_resourceLifecycleConfig = std::forward<ResourceLifecycleConfigT>(value);
88 }
89 template <typename ResourceLifecycleConfigT = ApplicationResourceLifecycleConfig>
90 CreateApplicationRequest& WithResourceLifecycleConfig(ResourceLifecycleConfigT&& value) {
91 SetResourceLifecycleConfig(std::forward<ResourceLifecycleConfigT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_applicationName;
123
124 Aws::String m_description;
125
126 ApplicationResourceLifecycleConfig m_resourceLifecycleConfig;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_applicationNameHasBeenSet = false;
130 bool m_descriptionHasBeenSet = false;
131 bool m_resourceLifecycleConfigHasBeenSet = false;
132 bool m_tagsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace ElasticBeanstalk
137} // namespace Aws
const ApplicationResourceLifecycleConfig & GetResourceLifecycleConfig() const
CreateApplicationRequest & WithApplicationName(ApplicationNameT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetResourceLifecycleConfig(ResourceLifecycleConfigT &&value)
AWS_ELASTICBEANSTALK_API CreateApplicationRequest()=default
CreateApplicationRequest & WithResourceLifecycleConfig(ResourceLifecycleConfigT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector