AWS SDK for C++  0.12.9
AWS SDK for C++
PlatformApplication.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sns/SNS_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace SNS
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  PlatformApplication& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
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 = 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(value); return *this;}
77 
81  inline PlatformApplication& WithPlatformApplicationArn(const char* value) { SetPlatformApplicationArn(value); return *this;}
82 
86  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
87 
91  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
92 
96  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
97 
101  inline PlatformApplication& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
102 
106  inline PlatformApplication& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
107 
111  inline PlatformApplication& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
112 
116  inline PlatformApplication& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
117 
121  inline PlatformApplication& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
122 
126  inline PlatformApplication& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
127 
131  inline PlatformApplication& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
132 
136  inline PlatformApplication& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
137 
141  inline PlatformApplication& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
142 
143  private:
144  Aws::String m_platformApplicationArn;
145  bool m_platformApplicationArnHasBeenSet;
147  bool m_attributesHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace SNS
152 } // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
PlatformApplication & AddAttributes(Aws::String &&key, Aws::String &&value)
PlatformApplication & AddAttributes(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
PlatformApplication & AddAttributes(const char *key, const char *value)
PlatformApplication & AddAttributes(const char *key, Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PlatformApplication & WithPlatformApplicationArn(Aws::String &&value)
void SetPlatformApplicationArn(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetPlatformApplicationArn(Aws::String &&value)
PlatformApplication & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PlatformApplication & AddAttributes(Aws::String &&key, const char *value)
PlatformApplication & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetPlatformApplicationArn(const Aws::String &value)
PlatformApplication & WithPlatformApplicationArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:34
PlatformApplication & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetPlatformApplicationArn() const
PlatformApplication & AddAttributes(Aws::String &&key, const Aws::String &value)
PlatformApplication & WithPlatformApplicationArn(const char *value)
JSON (JavaScript Object Notation).