AWS SDK for C++  1.9.104
AWS SDK for C++
PlatformApplication.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace SNS
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
47 
51  inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
52 
56  inline void SetPlatformApplicationArn(const Aws::String& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
57 
61  inline void SetPlatformApplicationArn(Aws::String&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = std::move(value); }
62 
66  inline void SetPlatformApplicationArn(const char* value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn.assign(value); }
67 
71  inline PlatformApplication& WithPlatformApplicationArn(const Aws::String& value) { SetPlatformApplicationArn(value); return *this;}
72 
76  inline PlatformApplication& WithPlatformApplicationArn(Aws::String&& value) { SetPlatformApplicationArn(std::move(value)); return *this;}
77 
81  inline PlatformApplication& WithPlatformApplicationArn(const char* value) { SetPlatformApplicationArn(value); return *this;}
82 
83 
87  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
88 
92  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
93 
97  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
98 
102  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
103 
107  inline PlatformApplication& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
108 
112  inline PlatformApplication& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
113 
117  inline PlatformApplication& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
118 
122  inline PlatformApplication& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
123 
127  inline PlatformApplication& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
128 
132  inline PlatformApplication& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
133 
137  inline PlatformApplication& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
138 
142  inline PlatformApplication& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
143 
147  inline PlatformApplication& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
148 
149  private:
150 
151  Aws::String m_platformApplicationArn;
152  bool m_platformApplicationArnHasBeenSet;
153 
155  bool m_attributesHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace SNS
160 } // namespace Aws
Aws::SNS::Model::PlatformApplication::WithPlatformApplicationArn
PlatformApplication & WithPlatformApplicationArn(const char *value)
Definition: PlatformApplication.h:81
Aws::SNS::Model::PlatformApplication::WithAttributes
PlatformApplication & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PlatformApplication.h:107
Aws::SNS::Model::PlatformApplication::GetPlatformApplicationArn
const Aws::String & GetPlatformApplicationArn() const
Definition: PlatformApplication.h:46
Aws::SNS::Model::PlatformApplication::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PlatformApplication.h:97
Aws::SNS::Model::PlatformApplication::WithPlatformApplicationArn
PlatformApplication & WithPlatformApplicationArn(const Aws::String &value)
Definition: PlatformApplication.h:71
Aws::SNS::Model::PlatformApplication::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: PlatformApplication.h:92
AWSStreamFwd.h
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: PlatformApplication.h:117
Aws::SNS::Model::PlatformApplication::PlatformApplicationArnHasBeenSet
bool PlatformApplicationArnHasBeenSet() const
Definition: PlatformApplication.h:51
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: PlatformApplication.h:122
Aws::SNS::Model::PlatformApplication::PlatformApplication
PlatformApplication(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::PlatformApplication::WithAttributes
PlatformApplication & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PlatformApplication.h:112
Aws::SNS::Model::PlatformApplication::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: PlatformApplication.h:87
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(const char *key, Aws::String &&value)
Definition: PlatformApplication.h:137
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(Aws::String &&key, const char *value)
Definition: PlatformApplication.h:142
AWSString.h
Aws::SNS::Model::PlatformApplication::SetPlatformApplicationArn
void SetPlatformApplicationArn(const Aws::String &value)
Definition: PlatformApplication.h:56
Aws::SNS::Model::PlatformApplication::WithPlatformApplicationArn
PlatformApplication & WithPlatformApplicationArn(Aws::String &&value)
Definition: PlatformApplication.h:76
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(const char *key, const char *value)
Definition: PlatformApplication.h:147
SNS_EXPORTS.h
Aws::SNS::Model::PlatformApplication::PlatformApplication
PlatformApplication()
Aws::SNS::Model::PlatformApplication::SetPlatformApplicationArn
void SetPlatformApplicationArn(const char *value)
Definition: PlatformApplication.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::PlatformApplication
Definition: PlatformApplication.h:33
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: PlatformApplication.h:127
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::PlatformApplication::operator=
PlatformApplication & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::PlatformApplication::AddAttributes
PlatformApplication & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: PlatformApplication.h:132
Aws::SNS::Model::PlatformApplication::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PlatformApplication.h:102
Aws::SNS::Model::PlatformApplication::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSMap.h
Aws::SNS::Model::PlatformApplication::SetPlatformApplicationArn
void SetPlatformApplicationArn(Aws::String &&value)
Definition: PlatformApplication.h:61
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SNS::Model::PlatformApplication::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const