AWS SDK for C++  1.9.103
AWS SDK for C++
CreateApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AppConfig
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetName() const{ return m_name; }
40 
44  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 
49  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 
54  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 
59  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 
64  inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 
69  inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 
74  inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
75 
76 
80  inline const Aws::String& GetDescription() const{ return m_description; }
81 
85  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 
90  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 
95  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 
100  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 
105  inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 
110  inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 
115  inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116 
117 
123  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
124 
130  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 
137  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 
144  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 
151  inline CreateApplicationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
152 
158  inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
159 
165  inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
166 
172  inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
173 
179  inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
180 
186  inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
187 
193  inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
194 
200  inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 
207  inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
208 
209  private:
210 
211  Aws::String m_name;
212  bool m_nameHasBeenSet;
213 
214  Aws::String m_description;
215  bool m_descriptionHasBeenSet;
216 
218  bool m_tagsHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace AppConfig
223 } // namespace Aws
Aws::AppConfig::Model::CreateApplicationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApplicationRequest.h:80
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateApplicationRequest.h:186
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateApplicationRequest.h:179
Aws::AppConfig::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:105
Aws::AppConfig::Model::CreateApplicationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:95
Aws::AppConfig::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const char *value)
Definition: CreateApplicationRequest.h:115
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateApplicationRequest.h:200
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateApplicationRequest.h:165
Aws::AppConfig::Model::CreateApplicationRequest::SetName
void SetName(const char *value)
Definition: CreateApplicationRequest.h:59
Aws::AppConfig::Model::CreateApplicationRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateApplicationRequest.h:49
AppConfig_EXPORTS.h
Aws::AppConfig::Model::CreateApplicationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApplicationRequest.h:85
Aws::AppConfig::Model::CreateApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApplicationRequest.h:31
Aws::AppConfig::Model::CreateApplicationRequest::GetName
const Aws::String & GetName() const
Definition: CreateApplicationRequest.h:39
Aws::AppConfig::Model::CreateApplicationRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateApplicationRequest.h:54
Aws::AppConfig::Model::CreateApplicationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateApplicationRequest.h:44
AppConfigRequest.h
Aws::AppConfig::Model::CreateApplicationRequest
Definition: CreateApplicationRequest.h:23
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateApplicationRequest.h:172
Aws::AppConfig::AppConfigRequest
Definition: AppConfigRequest.h:18
Aws::AppConfig::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:110
AWSString.h
Aws::AppConfig::Model::CreateApplicationRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateApplicationRequest.h:144
Aws::AppConfig::Model::CreateApplicationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApplicationRequest.h:100
Aws::AppConfig::Model::CreateApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::AppConfig::Model::CreateApplicationRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateApplicationRequest.h:123
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateApplicationRequest.h:193
Aws::AppConfig::Model::CreateApplicationRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateApplicationRequest.h:137
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_APPCONFIG_API
#define AWS_APPCONFIG_API
Definition: AppConfig_EXPORTS.h:28
Aws::AppConfig::Model::CreateApplicationRequest::CreateApplicationRequest
CreateApplicationRequest()
Aws::AppConfig::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateApplicationRequest.h:151
Aws::AppConfig::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(const Aws::String &value)
Definition: CreateApplicationRequest.h:64
Aws::AppConfig::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(Aws::String &&value)
Definition: CreateApplicationRequest.h:69
Aws::AppConfig::Model::CreateApplicationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:90
Aws::AppConfig::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateApplicationRequest.h:158
AWSMap.h
Aws::AppConfig::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(const char *value)
Definition: CreateApplicationRequest.h:74
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::AppConfig::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const char *key, const char *value)
Definition: CreateApplicationRequest.h:207
Aws::AppConfig::Model::CreateApplicationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateApplicationRequest.h:130