AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePlatformEndpointRequest.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/sns/SNSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SNS
16{
17namespace 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 "CreatePlatformEndpoint"; }
35
36 AWS_SNS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
48 inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
49 inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
50 inline void SetPlatformApplicationArn(const Aws::String& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
51 inline void SetPlatformApplicationArn(Aws::String&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = std::move(value); }
52 inline void SetPlatformApplicationArn(const char* value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn.assign(value); }
57
59
66 inline const Aws::String& GetToken() const{ return m_token; }
67 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
68 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
69 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
70 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
71 inline CreatePlatformEndpointRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
72 inline CreatePlatformEndpointRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
73 inline CreatePlatformEndpointRequest& WithToken(const char* value) { SetToken(value); return *this;}
75
77
81 inline const Aws::String& GetCustomUserData() const{ return m_customUserData; }
82 inline bool CustomUserDataHasBeenSet() const { return m_customUserDataHasBeenSet; }
83 inline void SetCustomUserData(const Aws::String& value) { m_customUserDataHasBeenSet = true; m_customUserData = value; }
84 inline void SetCustomUserData(Aws::String&& value) { m_customUserDataHasBeenSet = true; m_customUserData = std::move(value); }
85 inline void SetCustomUserData(const char* value) { m_customUserDataHasBeenSet = true; m_customUserData.assign(value); }
87 inline CreatePlatformEndpointRequest& WithCustomUserData(Aws::String&& value) { SetCustomUserData(std::move(value)); return *this;}
88 inline CreatePlatformEndpointRequest& WithCustomUserData(const char* value) { SetCustomUserData(value); return *this;}
90
92
97 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
98 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
99 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
100 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
103 inline CreatePlatformEndpointRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
104 inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
105 inline CreatePlatformEndpointRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
106 inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreatePlatformEndpointRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
108 inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
109 inline CreatePlatformEndpointRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
111 private:
112
113 Aws::String m_platformApplicationArn;
114 bool m_platformApplicationArnHasBeenSet = false;
115
116 Aws::String m_token;
117 bool m_tokenHasBeenSet = false;
118
119 Aws::String m_customUserData;
120 bool m_customUserDataHasBeenSet = false;
121
123 bool m_attributesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SNS
128} // namespace Aws
CreatePlatformEndpointRequest & WithCustomUserData(const Aws::String &value)
AWS_SNS_API Aws::String SerializePayload() const override
CreatePlatformEndpointRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, const char *value)
CreatePlatformEndpointRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
CreatePlatformEndpointRequest & WithPlatformApplicationArn(const char *value)
CreatePlatformEndpointRequest & WithCustomUserData(Aws::String &&value)
CreatePlatformEndpointRequest & AddAttributes(const char *key, const char *value)
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlatformEndpointRequest & AddAttributes(const char *key, Aws::String &&value)
CreatePlatformEndpointRequest & WithToken(const Aws::String &value)
CreatePlatformEndpointRequest & WithToken(const char *value)
CreatePlatformEndpointRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlatformEndpointRequest & WithPlatformApplicationArn(const Aws::String &value)
CreatePlatformEndpointRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePlatformEndpointRequest & WithCustomUserData(const char *value)
CreatePlatformEndpointRequest & WithToken(Aws::String &&value)
CreatePlatformEndpointRequest & WithPlatformApplicationArn(Aws::String &&value)
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String