AWS SDK for C++  1.9.104
AWS SDK for C++
CreateApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace AppRegistry
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
71  inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
77  inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
83  inline CreateApplicationRequest& WithName(const char* value) { SetName(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 
130  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 
135  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 
140  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 
145  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 
150  inline CreateApplicationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
151 
155  inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
156 
160  inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161 
165  inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 
170  inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
171 
175  inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
176 
180  inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
181 
185  inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
186 
190  inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
191 
192 
200  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
201 
209  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
210 
218  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
219 
227  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
228 
236  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
237 
245  inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
246 
254  inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
255 
263  inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
264 
265  private:
266 
267  Aws::String m_name;
268  bool m_nameHasBeenSet;
269 
270  Aws::String m_description;
271  bool m_descriptionHasBeenSet;
272 
274  bool m_tagsHasBeenSet;
275 
276  Aws::String m_clientToken;
277  bool m_clientTokenHasBeenSet;
278  };
279 
280 } // namespace Model
281 } // namespace AppRegistry
282 } // namespace Aws
Aws::AppRegistry::Model::CreateApplicationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:104
Aws::AppRegistry::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(Aws::String &&value)
Definition: CreateApplicationRequest.h:77
Aws::AppRegistry::AppRegistryRequest
Definition: AppRegistryRequest.h:17
Aws::AppRegistry::Model::CreateApplicationRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateApplicationRequest.h:209
AWS_APPREGISTRY_API
#define AWS_APPREGISTRY_API
Definition: AppRegistry_EXPORTS.h:28
Aws::AppRegistry::Model::CreateApplicationRequest::WithClientToken
CreateApplicationRequest & WithClientToken(const char *value)
Definition: CreateApplicationRequest.h:263
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateApplicationRequest.h:180
Aws::AppRegistry::Model::CreateApplicationRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateApplicationRequest.h:140
Aws::AppRegistry::Model::CreateApplicationRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateApplicationRequest.h:145
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateApplicationRequest.h:165
Aws::AppRegistry::Model::CreateApplicationRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateApplicationRequest.h:227
Aws::AppRegistry::Model::CreateApplicationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:99
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateApplicationRequest.h:160
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const char *key, const char *value)
Definition: CreateApplicationRequest.h:190
Aws::AppRegistry::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateApplicationRequest.h:150
Aws::AppRegistry::Model::CreateApplicationRequest
Definition: CreateApplicationRequest.h:24
Aws::AppRegistry::Model::CreateApplicationRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateApplicationRequest.h:53
Aws::AppRegistry::Model::CreateApplicationRequest::SetName
void SetName(const char *value)
Definition: CreateApplicationRequest.h:65
Aws::AppRegistry::Model::CreateApplicationRequest::CreateApplicationRequest
CreateApplicationRequest()
Aws::AppRegistry::Model::CreateApplicationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApplicationRequest.h:89
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateApplicationRequest.h:175
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateApplicationRequest.h:185
Aws::AppRegistry::Model::CreateApplicationRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateApplicationRequest.h:218
Aws::AppRegistry::Model::CreateApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRegistry::Model::CreateApplicationRequest::WithClientToken
CreateApplicationRequest & WithClientToken(Aws::String &&value)
Definition: CreateApplicationRequest.h:254
AWSString.h
Aws::AppRegistry::Model::CreateApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApplicationRequest.h:32
Aws::AppRegistry::Model::CreateApplicationRequest::WithClientToken
CreateApplicationRequest & WithClientToken(const Aws::String &value)
Definition: CreateApplicationRequest.h:245
Aws::AppRegistry::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const char *value)
Definition: CreateApplicationRequest.h:124
AppRegistryRequest.h
Aws::AppRegistry::Model::CreateApplicationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateApplicationRequest.h:47
Aws::AppRegistry::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::AppRegistry::Model::CreateApplicationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApplicationRequest.h:94
Aws::AppRegistry::Model::CreateApplicationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateApplicationRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppRegistry::Model::CreateApplicationRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateApplicationRequest.h:236
Aws::AppRegistry::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(const char *value)
Definition: CreateApplicationRequest.h:83
Aws::AppRegistry::Model::CreateApplicationRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateApplicationRequest.h:130
Aws::AppRegistry::Model::CreateApplicationRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateApplicationRequest.h:59
Aws::AppRegistry::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:114
Aws::AppRegistry::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateApplicationRequest.h:170
Aws::AppRegistry::Model::CreateApplicationRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateApplicationRequest.h:200
Aws::AppRegistry::Model::CreateApplicationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApplicationRequest.h:109
UUID.h
Aws::AppRegistry::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(const Aws::String &value)
Definition: CreateApplicationRequest.h:71
AWSMap.h
Aws::AppRegistry::Model::CreateApplicationRequest::GetName
const Aws::String & GetName() const
Definition: CreateApplicationRequest.h:41
AppRegistry_EXPORTS.h
Aws::AppRegistry::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateApplicationRequest.h:155
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19