AWS SDK for C++  0.14.3
AWS SDK for C++
SetPlatformApplicationAttributesRequest.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>
17 #include <aws/sns/SNSRequest.h>
20 
21 namespace Aws
22 {
23 namespace SNS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
41 
45  inline void SetPlatformApplicationArn(const Aws::String& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
46 
50  inline void SetPlatformApplicationArn(Aws::String&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
51 
55  inline void SetPlatformApplicationArn(const char* value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn.assign(value); }
56 
60  inline SetPlatformApplicationAttributesRequest& WithPlatformApplicationArn(const Aws::String& value) { SetPlatformApplicationArn(value); return *this;}
61 
65  inline SetPlatformApplicationAttributesRequest& WithPlatformApplicationArn(Aws::String&& value) { SetPlatformApplicationArn(value); return *this;}
66 
70  inline SetPlatformApplicationAttributesRequest& WithPlatformApplicationArn(const char* value) { SetPlatformApplicationArn(value); return *this;}
71 
98  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
99 
126  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
127 
154  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
155 
182  inline SetPlatformApplicationAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
183 
210  inline SetPlatformApplicationAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
211 
238  inline SetPlatformApplicationAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
239 
266  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
267 
294  inline SetPlatformApplicationAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
295 
322  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
323 
350  inline SetPlatformApplicationAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
351 
378  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
379 
406  inline SetPlatformApplicationAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
407 
408  private:
409  Aws::String m_platformApplicationArn;
410  bool m_platformApplicationArnHasBeenSet;
412  bool m_attributesHasBeenSet;
413  };
414 
415 } // namespace Model
416 } // namespace SNS
417 } // namespace Aws
SetPlatformApplicationAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
SetPlatformApplicationAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
SetPlatformApplicationAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SetPlatformApplicationAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
SetPlatformApplicationAttributesRequest & WithPlatformApplicationArn(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
SetPlatformApplicationAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
SetPlatformApplicationAttributesRequest & WithPlatformApplicationArn(const char *value)
SetPlatformApplicationAttributesRequest & AddAttributes(const char *key, const char *value)
SetPlatformApplicationAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
SetPlatformApplicationAttributesRequest & AddAttributes(Aws::String &&key, const char *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:37
SetPlatformApplicationAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SetPlatformApplicationAttributesRequest & WithPlatformApplicationArn(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)