AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePlatformApplicationRequest.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 CreatePlatformApplicationRequest() = 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 "CreatePlatformApplication"; }
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
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 CreatePlatformApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
63 inline const Aws::String& GetPlatform() const { return m_platform; }
64 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
65 template<typename PlatformT = Aws::String>
66 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
67 template<typename PlatformT = Aws::String>
68 CreatePlatformApplicationRequest& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
70
72
77 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
78 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
79 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
80 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
81 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
82 CreatePlatformApplicationRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
83 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
84 CreatePlatformApplicationRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
85 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
86 }
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 Aws::String m_platform;
94 bool m_platformHasBeenSet = false;
95
97 bool m_attributesHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SNS
102} // 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