AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
28 AWS_SNS_API CreatePlatformEndpointRequest() = default;
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 template<typename PlatformApplicationArnT = Aws::String>
51 void SetPlatformApplicationArn(PlatformApplicationArnT&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = std::forward<PlatformApplicationArnT>(value); }
52 template<typename PlatformApplicationArnT = Aws::String>
53 CreatePlatformEndpointRequest& WithPlatformApplicationArn(PlatformApplicationArnT&& value) { SetPlatformApplicationArn(std::forward<PlatformApplicationArnT>(value)); return *this;}
55
57
64 inline const Aws::String& GetToken() const { return m_token; }
65 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
66 template<typename TokenT = Aws::String>
67 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
68 template<typename TokenT = Aws::String>
69 CreatePlatformEndpointRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
71
73
77 inline const Aws::String& GetCustomUserData() const { return m_customUserData; }
78 inline bool CustomUserDataHasBeenSet() const { return m_customUserDataHasBeenSet; }
79 template<typename CustomUserDataT = Aws::String>
80 void SetCustomUserData(CustomUserDataT&& value) { m_customUserDataHasBeenSet = true; m_customUserData = std::forward<CustomUserDataT>(value); }
81 template<typename CustomUserDataT = Aws::String>
82 CreatePlatformEndpointRequest& WithCustomUserData(CustomUserDataT&& value) { SetCustomUserData(std::forward<CustomUserDataT>(value)); return *this;}
84
86
91 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
92 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
93 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
94 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
95 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
96 CreatePlatformEndpointRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
97 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
98 CreatePlatformEndpointRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
99 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
100 }
102 private:
103
104 Aws::String m_platformApplicationArn;
105 bool m_platformApplicationArnHasBeenSet = false;
106
107 Aws::String m_token;
108 bool m_tokenHasBeenSet = false;
109
110 Aws::String m_customUserData;
111 bool m_customUserDataHasBeenSet = false;
112
114 bool m_attributesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace SNS
119} // 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