AWS SDK for C++  1.8.71
AWS SDK for C++
SetPlatformApplicationAttributesRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "SetPlatformApplicationAttributes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
48 
52  inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
53 
57  inline void SetPlatformApplicationArn(const Aws::String& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
58 
62  inline void SetPlatformApplicationArn(Aws::String&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = std::move(value); }
63 
67  inline void SetPlatformApplicationArn(const char* value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn.assign(value); }
68 
72  inline SetPlatformApplicationAttributesRequest& WithPlatformApplicationArn(const Aws::String& value) { SetPlatformApplicationArn(value); return *this;}
73 
77  inline SetPlatformApplicationAttributesRequest& WithPlatformApplicationArn(Aws::String&& value) { SetPlatformApplicationArn(std::move(value)); return *this;}
78 
82  inline SetPlatformApplicationAttributesRequest& WithPlatformApplicationArn(const char* value) { SetPlatformApplicationArn(value); return *this;}
83 
84 
115  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
116 
147  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
148 
179  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
180 
211  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
212 
243  inline SetPlatformApplicationAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
244 
275  inline SetPlatformApplicationAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
276 
307  inline SetPlatformApplicationAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
308 
339  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
340 
371  inline SetPlatformApplicationAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
372 
403  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
404 
435  inline SetPlatformApplicationAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
436 
467  inline SetPlatformApplicationAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
468 
499  inline SetPlatformApplicationAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
500 
501  private:
502 
503  Aws::String m_platformApplicationArn;
504  bool m_platformApplicationArnHasBeenSet;
505 
507  bool m_attributesHasBeenSet;
508  };
509 
510 } // namespace Model
511 } // namespace SNS
512 } // namespace Aws
SetPlatformApplicationAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
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:19
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:28
SetPlatformApplicationAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SetPlatformApplicationAttributesRequest & WithPlatformApplicationArn(Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)