AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PlatformApplication.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sns/SNS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace SNS {
21namespace Model {
22
29 public:
30 AWS_SNS_API PlatformApplication() = default;
31 AWS_SNS_API PlatformApplication(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetPlatformApplicationArn() const { return m_platformApplicationArn; }
42 inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
43 template <typename PlatformApplicationArnT = Aws::String>
44 void SetPlatformApplicationArn(PlatformApplicationArnT&& value) {
45 m_platformApplicationArnHasBeenSet = true;
46 m_platformApplicationArn = std::forward<PlatformApplicationArnT>(value);
47 }
48 template <typename PlatformApplicationArnT = Aws::String>
49 PlatformApplication& WithPlatformApplicationArn(PlatformApplicationArnT&& value) {
50 SetPlatformApplicationArn(std::forward<PlatformApplicationArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
60 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
61 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
62 void SetAttributes(AttributesT&& value) {
63 m_attributesHasBeenSet = true;
64 m_attributes = std::forward<AttributesT>(value);
65 }
66 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
67 PlatformApplication& WithAttributes(AttributesT&& value) {
68 SetAttributes(std::forward<AttributesT>(value));
69 return *this;
70 }
71 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
72 PlatformApplication& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
73 m_attributesHasBeenSet = true;
74 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_platformApplicationArn;
80
82 bool m_platformApplicationArnHasBeenSet = false;
83 bool m_attributesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace SNS
88} // namespace Aws
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SNS_API PlatformApplication()=default
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PlatformApplication & WithPlatformApplicationArn(PlatformApplicationArnT &&value)
void SetAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
PlatformApplication & WithAttributes(AttributesT &&value)
const Aws::String & GetPlatformApplicationArn() const
AWS_SNS_API PlatformApplication & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPlatformApplicationArn(PlatformApplicationArnT &&value)
AWS_SNS_API PlatformApplication(const Aws::Utils::Xml::XmlNode &xmlNode)
PlatformApplication & 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
std::basic_ostream< char, std::char_traits< char > > OStream