AWS SDK for C++  1.8.71
AWS SDK for C++
SetSMSAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SNS
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SetSMSAttributes"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
95  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
96 
149  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
150 
203  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
204 
257  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
258 
311  inline SetSMSAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
312 
365  inline SetSMSAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
366 
419  inline SetSMSAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
420 
473  inline SetSMSAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
474 
527  inline SetSMSAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
528 
581  inline SetSMSAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
582 
635  inline SetSMSAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
636 
689  inline SetSMSAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
690 
743  inline SetSMSAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
744 
745  private:
746 
748  bool m_attributesHasBeenSet;
749  };
750 
751 } // namespace Model
752 } // namespace SNS
753 } // 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:19
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)
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:28
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SetSMSAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SetSMSAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override