AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetEndpointAttributesRequest.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/sns/SNSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SNS
16{
17namespace 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 "SetEndpointAttributes"; }
36
37 AWS_SNS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
49 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
50 inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
51 inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
52 inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
53 inline SetEndpointAttributesRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
54 inline SetEndpointAttributesRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
55 inline SetEndpointAttributesRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
57
59
72 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
73 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
74 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
75 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
78 inline SetEndpointAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
79 inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
80 inline SetEndpointAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
81 inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
82 inline SetEndpointAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
83 inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
84 inline SetEndpointAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
86 private:
87
88 Aws::String m_endpointArn;
89 bool m_endpointArnHasBeenSet = false;
90
92 bool m_attributesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SNS
97} // namespace Aws
SetEndpointAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
SetEndpointAttributesRequest & WithEndpointArn(const Aws::String &value)
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
SetEndpointAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
SetEndpointAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
AWS_SNS_API Aws::String SerializePayload() const override
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SetEndpointAttributesRequest & WithEndpointArn(const char *value)
SetEndpointAttributesRequest & WithEndpointArn(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SetEndpointAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, const char *value)
SetEndpointAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SetEndpointAttributesRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String