AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreatePlatformEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sns/SNSRequest.h>
10#include <aws/sns/SNS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SNS {
16namespace Model {
17
24 public:
25 AWS_SNS_API CreatePlatformEndpointRequest() = default;
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 "CreatePlatformEndpoint"; }
32
33 AWS_SNS_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
44 inline const Aws::String& GetPlatformApplicationArn() const { return m_platformApplicationArn; }
45 inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
46 template <typename PlatformApplicationArnT = Aws::String>
47 void SetPlatformApplicationArn(PlatformApplicationArnT&& value) {
48 m_platformApplicationArnHasBeenSet = true;
49 m_platformApplicationArn = std::forward<PlatformApplicationArnT>(value);
50 }
51 template <typename PlatformApplicationArnT = Aws::String>
53 SetPlatformApplicationArn(std::forward<PlatformApplicationArnT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetToken() const { return m_token; }
67 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
68 template <typename TokenT = Aws::String>
69 void SetToken(TokenT&& value) {
70 m_tokenHasBeenSet = true;
71 m_token = std::forward<TokenT>(value);
72 }
73 template <typename TokenT = Aws::String>
75 SetToken(std::forward<TokenT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetCustomUserData() const { return m_customUserData; }
86 inline bool CustomUserDataHasBeenSet() const { return m_customUserDataHasBeenSet; }
87 template <typename CustomUserDataT = Aws::String>
88 void SetCustomUserData(CustomUserDataT&& value) {
89 m_customUserDataHasBeenSet = true;
90 m_customUserData = std::forward<CustomUserDataT>(value);
91 }
92 template <typename CustomUserDataT = Aws::String>
94 SetCustomUserData(std::forward<CustomUserDataT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
106 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
107 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
108 void SetAttributes(AttributesT&& value) {
109 m_attributesHasBeenSet = true;
110 m_attributes = std::forward<AttributesT>(value);
111 }
112 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
114 SetAttributes(std::forward<AttributesT>(value));
115 return *this;
116 }
117 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
118 CreatePlatformEndpointRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
119 m_attributesHasBeenSet = true;
120 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_platformApplicationArn;
126
127 Aws::String m_token;
128
129 Aws::String m_customUserData;
130
132 bool m_platformApplicationArnHasBeenSet = false;
133 bool m_tokenHasBeenSet = false;
134 bool m_customUserDataHasBeenSet = false;
135 bool m_attributesHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace SNS
140} // namespace Aws
AWS_SNS_API Aws::String SerializePayload() const override
CreatePlatformEndpointRequest & WithAttributes(AttributesT &&value)
CreatePlatformEndpointRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
void SetPlatformApplicationArn(PlatformApplicationArnT &&value)
CreatePlatformEndpointRequest & WithPlatformApplicationArn(PlatformApplicationArnT &&value)
CreatePlatformEndpointRequest & WithCustomUserData(CustomUserDataT &&value)
CreatePlatformEndpointRequest & WithToken(TokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
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