AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
29 AWS_SNS_API SetEndpointAttributesRequest() = default;
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 template<typename EndpointArnT = Aws::String>
51 void SetEndpointArn(EndpointArnT&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::forward<EndpointArnT>(value); }
52 template<typename EndpointArnT = Aws::String>
53 SetEndpointAttributesRequest& WithEndpointArn(EndpointArnT&& value) { SetEndpointArn(std::forward<EndpointArnT>(value)); return *this;}
55
57
70 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
71 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
72 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
73 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
74 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
75 SetEndpointAttributesRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
76 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
77 SetEndpointAttributesRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
78 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
79 }
81 private:
82
83 Aws::String m_endpointArn;
84 bool m_endpointArnHasBeenSet = false;
85
87 bool m_attributesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SNS
92} // 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