AWS SDK for C++  1.9.129
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
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateApplicationRequest.h:183
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApplicationRequest.h:36
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateApplicationRequest.h:204
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:114
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:104
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetResourceLifecycleConfig
void SetResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)
Definition: CreateApplicationRequest.h:143
Tag.h
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithApplicationName
CreateApplicationRequest & WithApplicationName(Aws::String &&value)
Definition: CreateApplicationRequest.h:78
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::ResourceLifecycleConfigHasBeenSet
bool ResourceLifecycleConfigHasBeenSet() const
Definition: CreateApplicationRequest.h:137
ApplicationResourceLifecycleConfig.h
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetApplicationName
void SetApplicationName(Aws::String &&value)
Definition: CreateApplicationRequest.h:63
ElasticBeanstalkRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Tag &&value)
Definition: CreateApplicationRequest.h:218
AWSVector.h
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:119
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateApplicationRequest.h:190
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApplicationRequest.h:89
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithResourceLifecycleConfig
CreateApplicationRequest & WithResourceLifecycleConfig(const ApplicationResourceLifecycleConfig &value)
Definition: CreateApplicationRequest.h:155
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateApplicationRequest.h:176
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const char *value)
Definition: CreateApplicationRequest.h:124
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetResourceLifecycleConfig
void SetResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
Definition: CreateApplicationRequest.h:149
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:99
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateApplicationRequest.h:169
AWSString.h
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetApplicationName
void SetApplicationName(const Aws::String &value)
Definition: CreateApplicationRequest.h:58
Aws::ElasticBeanstalk::Model::ApplicationResourceLifecycleConfig
Definition: ApplicationResourceLifecycleConfig.h:37
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApplicationRequest.h:109
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithResourceLifecycleConfig
CreateApplicationRequest & WithResourceLifecycleConfig(ApplicationResourceLifecycleConfig &&value)
Definition: CreateApplicationRequest.h:161
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithApplicationName
CreateApplicationRequest & WithApplicationName(const Aws::String &value)
Definition: CreateApplicationRequest.h:73
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const Tag &value)
Definition: CreateApplicationRequest.h:211
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::CreateApplicationRequest
CreateApplicationRequest()
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::ApplicationNameHasBeenSet
bool ApplicationNameHasBeenSet() const
Definition: CreateApplicationRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateApplicationRequest.h:197
Aws::ElasticBeanstalk::ElasticBeanstalkRequest
Definition: ElasticBeanstalkRequest.h:17
Aws::ElasticBeanstalk::Model::Tag
Definition: Tag.h:33
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApplicationRequest.h:94
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::SetApplicationName
void SetApplicationName(const char *value)
Definition: CreateApplicationRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::WithApplicationName
CreateApplicationRequest & WithApplicationName(const char *value)
Definition: CreateApplicationRequest.h:83
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::GetApplicationName
const Aws::String & GetApplicationName() const
Definition: CreateApplicationRequest.h:48
Aws::ElasticBeanstalk::Model::CreateApplicationRequest
Definition: CreateApplicationRequest.h:28
Aws::ElasticBeanstalk::Model::CreateApplicationRequest::GetResourceLifecycleConfig
const ApplicationResourceLifecycleConfig & GetResourceLifecycleConfig() const
Definition: CreateApplicationRequest.h:131