AWS SDK for C++  0.12.9
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 
90  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
91 
110  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
111 
130  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
131 
150  inline SetPlatformApplicationAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
151 
170  inline SetPlatformApplicationAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
171 
190  inline SetPlatformApplicationAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
191 
210  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
211 
230  inline SetPlatformApplicationAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
231 
250  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
251 
270  inline SetPlatformApplicationAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
271 
290  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
291 
310  inline SetPlatformApplicationAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
311 
312  private:
313  Aws::String m_platformApplicationArn;
314  bool m_platformApplicationArnHasBeenSet;
316  bool m_attributesHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace SNS
321 } // 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:34
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)