AWS SDK for C++  1.8.71
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 
162  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
163 
169  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
170 
176  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
177 
183  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
184 
190  inline CreatePlatformApplicationRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
191 
197  inline CreatePlatformApplicationRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
198 
204  inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
205 
211  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
212 
218  inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
219 
225  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
226 
232  inline CreatePlatformApplicationRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
233 
239  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
240 
246  inline CreatePlatformApplicationRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
247 
248  private:
249 
250  Aws::String m_name;
251  bool m_nameHasBeenSet;
252 
253  Aws::String m_platform;
254  bool m_platformHasBeenSet;
255 
257  bool m_attributesHasBeenSet;
258  };
259 
260 } // namespace Model
261 } // namespace SNS
262 } // namespace Aws
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlatformApplicationRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
CreatePlatformApplicationRequest & WithPlatform(Aws::String &&value)
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, const char *value)
CreatePlatformApplicationRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreatePlatformApplicationRequest & WithPlatform(const Aws::String &value)
CreatePlatformApplicationRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePlatformApplicationRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlatformApplicationRequest & WithPlatform(const char *value)
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreatePlatformApplicationRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlatformApplicationRequest & WithName(const Aws::String &value)
CreatePlatformApplicationRequest & AddAttributes(const char *key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
CreatePlatformApplicationRequest & WithName(Aws::String &&value)
CreatePlatformApplicationRequest & WithName(const char *value)