AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreatePlatformApplicationRequest.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 CreatePlatformApplicationRequest() = 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 "CreatePlatformApplication"; }
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
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetPlatform() const { return m_platform; }
66 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
67 template <typename PlatformT = Aws::String>
68 void SetPlatform(PlatformT&& value) {
69 m_platformHasBeenSet = true;
70 m_platform = std::forward<PlatformT>(value);
71 }
72 template <typename PlatformT = Aws::String>
74 SetPlatform(std::forward<PlatformT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
86 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
87 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
88 void SetAttributes(AttributesT&& value) {
89 m_attributesHasBeenSet = true;
90 m_attributes = std::forward<AttributesT>(value);
91 }
92 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
94 SetAttributes(std::forward<AttributesT>(value));
95 return *this;
96 }
97 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
98 CreatePlatformApplicationRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
99 m_attributesHasBeenSet = true;
100 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_name;
106
107 Aws::String m_platform;
108
110 bool m_nameHasBeenSet = false;
111 bool m_platformHasBeenSet = false;
112 bool m_attributesHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace SNS
117} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlatformApplicationRequest & WithPlatform(PlatformT &&value)
CreatePlatformApplicationRequest & WithName(NameT &&value)
CreatePlatformApplicationRequest & WithAttributes(AttributesT &&value)
AWS_SNS_API Aws::String SerializePayload() const override
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreatePlatformApplicationRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&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