AWS SDK for C++  1.9.107
AWS SDK for C++
CreatePlatformApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SNS
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreatePlatformApplication"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
62  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 
69  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 
76  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 
83  inline CreatePlatformApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
84 
90  inline CreatePlatformApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
91 
97  inline CreatePlatformApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
98 
99 
105  inline const Aws::String& GetPlatform() const{ return m_platform; }
106 
112  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
113 
119  inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
120 
126  inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
127 
133  inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
134 
140  inline CreatePlatformApplicationRequest& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
141 
147  inline CreatePlatformApplicationRequest& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
148 
154  inline CreatePlatformApplicationRequest& WithPlatform(const char* value) { SetPlatform(value); return *this;}
155 
156 
161  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
162 
167  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
168 
173  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
174 
179  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
180 
185  inline CreatePlatformApplicationRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
186 
191  inline CreatePlatformApplicationRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
192 
197  inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
198 
203  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
204 
209  inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
210 
215  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
216 
221  inline CreatePlatformApplicationRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
222 
227  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
228 
233  inline CreatePlatformApplicationRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
234 
235  private:
236 
237  Aws::String m_name;
238  bool m_nameHasBeenSet;
239 
240  Aws::String m_platform;
241  bool m_platformHasBeenSet;
242 
244  bool m_attributesHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace SNS
249 } // namespace Aws
Aws::SNS::Model::CreatePlatformApplicationRequest::SetPlatform
void SetPlatform(const Aws::String &value)
Definition: CreatePlatformApplicationRequest.h:119
Aws::SNS::Model::CreatePlatformApplicationRequest::SetPlatform
void SetPlatform(const char *value)
Definition: CreatePlatformApplicationRequest.h:133
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::CreatePlatformApplicationRequest::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: CreatePlatformApplicationRequest.h:161
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:215
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, const char *value)
Definition: CreatePlatformApplicationRequest.h:227
Aws::SNS::Model::CreatePlatformApplicationRequest::WithPlatform
CreatePlatformApplicationRequest & WithPlatform(const Aws::String &value)
Definition: CreatePlatformApplicationRequest.h:140
Aws::SNS::Model::CreatePlatformApplicationRequest::GetName
const Aws::String & GetName() const
Definition: CreatePlatformApplicationRequest.h:48
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(const char *key, Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:221
Aws::SNS::Model::CreatePlatformApplicationRequest::CreatePlatformApplicationRequest
CreatePlatformApplicationRequest()
Aws::SNS::Model::CreatePlatformApplicationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: CreatePlatformApplicationRequest.h:197
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(const char *key, const char *value)
Definition: CreatePlatformApplicationRequest.h:233
Aws::SNS::Model::CreatePlatformApplicationRequest::WithAttributes
CreatePlatformApplicationRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePlatformApplicationRequest.h:185
Aws::SNS::Model::CreatePlatformApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePlatformApplicationRequest.h:34
Aws::SNS::Model::CreatePlatformApplicationRequest::WithPlatform
CreatePlatformApplicationRequest & WithPlatform(Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:147
SNSRequest.h
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:209
Aws::SNS::Model::CreatePlatformApplicationRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePlatformApplicationRequest.h:62
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::CreatePlatformApplicationRequest::AddAttributes
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: CreatePlatformApplicationRequest.h:203
AWSString.h
Aws::SNS::Model::CreatePlatformApplicationRequest::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: CreatePlatformApplicationRequest.h:112
Aws::SNS::Model::CreatePlatformApplicationRequest::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePlatformApplicationRequest.h:179
Aws::SNS::Model::CreatePlatformApplicationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePlatformApplicationRequest.h:55
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::CreatePlatformApplicationRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: CreatePlatformApplicationRequest.h:167
Aws::SNS::Model::CreatePlatformApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SNS::Model::CreatePlatformApplicationRequest::SetName
void SetName(const char *value)
Definition: CreatePlatformApplicationRequest.h:76
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::CreatePlatformApplicationRequest::SetPlatform
void SetPlatform(Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:126
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::CreatePlatformApplicationRequest::WithName
CreatePlatformApplicationRequest & WithName(const char *value)
Definition: CreatePlatformApplicationRequest.h:97
Aws::SNS::Model::CreatePlatformApplicationRequest
Definition: CreatePlatformApplicationRequest.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::CreatePlatformApplicationRequest::GetPlatform
const Aws::String & GetPlatform() const
Definition: CreatePlatformApplicationRequest.h:105
Aws::SNS::Model::CreatePlatformApplicationRequest::WithName
CreatePlatformApplicationRequest & WithName(const Aws::String &value)
Definition: CreatePlatformApplicationRequest.h:83
Aws::SNS::Model::CreatePlatformApplicationRequest::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePlatformApplicationRequest.h:173
Aws::SNS::Model::CreatePlatformApplicationRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:69
Aws::SNS::Model::CreatePlatformApplicationRequest::WithAttributes
CreatePlatformApplicationRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePlatformApplicationRequest.h:191
AWSMap.h
Aws::SNS::Model::CreatePlatformApplicationRequest::WithPlatform
CreatePlatformApplicationRequest & WithPlatform(const char *value)
Definition: CreatePlatformApplicationRequest.h:154
Aws::SNS::Model::CreatePlatformApplicationRequest::WithName
CreatePlatformApplicationRequest & WithName(Aws::String &&value)
Definition: CreatePlatformApplicationRequest.h:90
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19