AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SetEndpointAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sns/SNSRequest.h>
10#include <aws/sns/SNS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SNS {
16namespace Model {
17
25 public:
26 AWS_SNS_API SetEndpointAttributesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SetEndpointAttributes"; }
33
34 AWS_SNS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
44 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
45 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
46 template <typename EndpointArnT = Aws::String>
47 void SetEndpointArn(EndpointArnT&& value) {
48 m_endpointArnHasBeenSet = true;
49 m_endpointArn = std::forward<EndpointArnT>(value);
50 }
51 template <typename EndpointArnT = Aws::String>
53 SetEndpointArn(std::forward<EndpointArnT>(value));
54 return *this;
55 }
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 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
75 void SetAttributes(AttributesT&& value) {
76 m_attributesHasBeenSet = true;
77 m_attributes = std::forward<AttributesT>(value);
78 }
79 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
81 SetAttributes(std::forward<AttributesT>(value));
82 return *this;
83 }
84 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
85 SetEndpointAttributesRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
86 m_attributesHasBeenSet = true;
87 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_endpointArn;
93
95 bool m_endpointArnHasBeenSet = false;
96 bool m_attributesHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SNS
101} // namespace Aws
AWS_SNS_API SetEndpointAttributesRequest()=default
SetEndpointAttributesRequest & WithEndpointArn(EndpointArnT &&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 & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SetEndpointAttributesRequest & WithAttributes(AttributesT &&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