AWS SDK for C++  1.8.95
AWS SDK for C++
CreateApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ElasticBeanstalk
18 {
19 namespace Model
20 {
21 
28  {
29  public:
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::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
49 
53  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
54 
58  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
59 
63  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
64 
68  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
69 
73  inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
74 
78  inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
79 
83  inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
84 
85 
89  inline const Aws::String& GetDescription() const{ return m_description; }
90 
94  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 
99  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 
104  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 
109  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 
114  inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115 
119  inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
120 
124  inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
125 
126 
131  inline const ApplicationResourceLifecycleConfig& GetResourceLifecycleConfig() const{ return m_resourceLifecycleConfig; }
132 
137  inline bool ResourceLifecycleConfigHasBeenSet() const { return m_resourceLifecycleConfigHasBeenSet; }
138 
143  inline void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = value; }
144 
149  inline void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { m_resourceLifecycleConfigHasBeenSet = true; m_resourceLifecycleConfig = std::move(value); }
150 
155  inline CreateApplicationRequest& WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig& value) { SetResourceLifecycleConfig(value); return *this;}
156 
161  inline CreateApplicationRequest& WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig&& value) { SetResourceLifecycleConfig(std::move(value)); return *this;}
162 
163 
169  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
170 
176  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 
183  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
184 
190  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
191 
197  inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
198 
204  inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
205 
211  inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
212 
218  inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
219 
220  private:
221 
222  Aws::String m_applicationName;
223  bool m_applicationNameHasBeenSet;
224 
225  Aws::String m_description;
226  bool m_descriptionHasBeenSet;
227 
228  ApplicationResourceLifecycleConfig m_resourceLifecycleConfig;
229  bool m_resourceLifecycleConfigHasBeenSet;
230 
231  Aws::Vector<Tag> m_tags;
232  bool m_tagsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace ElasticBeanstalk
237 } // namespace Aws
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
#define AWS_ELASTICBEANSTALK_API
CreateApplicationRequest & WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)
CreateApplicationRequest & WithApplicationName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateApplicationRequest & AddTags(const Tag &value)
CreateApplicationRequest & WithDescription(const char *value)
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
const ApplicationResourceLifecycleConfig & GetResourceLifecycleConfig() const
virtual const char * GetServiceRequestName() const override
void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)
CreateApplicationRequest & WithApplicationName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & WithApplicationName(Aws::String &&value)
CreateApplicationRequest & WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
CreateApplicationRequest & WithDescription(Aws::String &&value)