AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateApplicationRequest.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/ApplicationResourceLifecycleConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticbeanstalk/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ElasticBeanstalk
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_ELASTICBEANSTALK_API CreateApplicationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
37
38 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 template<typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
53 template<typename ApplicationNameT = Aws::String>
54 CreateApplicationRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
74 inline const ApplicationResourceLifecycleConfig& GetResourceLifecycleConfig() const { return m_resourceLifecycleConfig; }
75 inline bool ResourceLifecycleConfigHasBeenSet() const { return m_resourceLifecycleConfigHasBeenSet; }
76 template<typename ResourceLifecycleConfigT = ApplicationResourceLifecycleConfig>
77 void SetResourceLifecycleConfig(ResourceLifecycleConfigT&& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = std::forward<ResourceLifecycleConfigT>(value); }
78 template<typename ResourceLifecycleConfigT = ApplicationResourceLifecycleConfig>
79 CreateApplicationRequest& WithResourceLifecycleConfig(ResourceLifecycleConfigT&& value) { SetResourceLifecycleConfig(std::forward<ResourceLifecycleConfigT>(value)); return *this;}
81
83
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Vector<Tag>>
93 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsT = Tag>
95 CreateApplicationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
97 private:
98
99 Aws::String m_applicationName;
100 bool m_applicationNameHasBeenSet = false;
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 ApplicationResourceLifecycleConfig m_resourceLifecycleConfig;
106 bool m_resourceLifecycleConfigHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ElasticBeanstalk
114} // 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