AWS SDK for C++  0.14.3
AWS SDK for C++
SetSMSAttributesRequest.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 
84  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
85 
133  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
134 
182  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
183 
231  inline SetSMSAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
232 
280  inline SetSMSAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
281 
329  inline SetSMSAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
330 
378  inline SetSMSAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
379 
427  inline SetSMSAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
428 
476  inline SetSMSAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
477 
525  inline SetSMSAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
526 
574  inline SetSMSAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
575 
623  inline SetSMSAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
624 
625  private:
627  bool m_attributesHasBeenSet;
628  };
629 
630 } // namespace Model
631 } // namespace SNS
632 } // namespace Aws
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SetSMSAttributesRequest & AddAttributes(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
SetSMSAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
SetSMSAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
SetSMSAttributesRequest & AddAttributes(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SetSMSAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
SetSMSAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SetSMSAttributesRequest & WithAttributes(const Aws::Map< Aws::String, 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:37
SetSMSAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SetSMSAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
JSON (JavaScript Object Notation).