AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
52 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
53 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
54 inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
55 inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
56 inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
78 inline const ApplicationResourceLifecycleConfig& GetResourceLifecycleConfig() const{ return m_resourceLifecycleConfig; }
79 inline bool ResourceLifecycleConfigHasBeenSet() const { return m_resourceLifecycleConfigHasBeenSet; }
80 inline void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = value; }
81 inline void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = std::move(value); }
85
87
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_applicationName;
104 bool m_applicationNameHasBeenSet = false;
105
106 Aws::String m_description;
107 bool m_descriptionHasBeenSet = false;
108
109 ApplicationResourceLifecycleConfig m_resourceLifecycleConfig;
110 bool m_resourceLifecycleConfigHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace ElasticBeanstalk
118} // namespace Aws
const ApplicationResourceLifecycleConfig & GetResourceLifecycleConfig() const
CreateApplicationRequest & AddTags(const Tag &value)
CreateApplicationRequest & WithApplicationName(const char *value)
CreateApplicationRequest & WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationRequest & WithDescription(Aws::String &&value)
CreateApplicationRequest & WithApplicationName(const Aws::String &value)
void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)
CreateApplicationRequest & WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & WithApplicationName(Aws::String &&value)
CreateApplicationRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector