AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PlatformApplication.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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 Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace SNS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SNS_API PlatformApplication() = default;
36 AWS_SNS_API PlatformApplication(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetPlatformApplicationArn() const { return m_platformApplicationArn; }
48 inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
49 template<typename PlatformApplicationArnT = Aws::String>
50 void SetPlatformApplicationArn(PlatformApplicationArnT&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = std::forward<PlatformApplicationArnT>(value); }
51 template<typename PlatformApplicationArnT = Aws::String>
52 PlatformApplication& WithPlatformApplicationArn(PlatformApplicationArnT&& value) { SetPlatformApplicationArn(std::forward<PlatformApplicationArnT>(value)); return *this;}
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) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
63 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
64 PlatformApplication& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
65 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
66 PlatformApplication& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
67 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
68 }
70 private:
71
72 Aws::String m_platformApplicationArn;
73 bool m_platformApplicationArnHasBeenSet = false;
74
76 bool m_attributesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SNS
81} // 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