AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
SetSubscriptionAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sns/SNSRequest.h>
9#include <aws/sns/SNS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SNS {
15namespace Model {
16
23 public:
24 AWS_SNS_API SetSubscriptionAttributesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SetSubscriptionAttributes"; }
31
32 AWS_SNS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetSubscriptionArn() const { return m_subscriptionArn; }
43 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
44 template <typename SubscriptionArnT = Aws::String>
45 void SetSubscriptionArn(SubscriptionArnT&& value) {
46 m_subscriptionArnHasBeenSet = true;
47 m_subscriptionArn = std::forward<SubscriptionArnT>(value);
48 }
49 template <typename SubscriptionArnT = Aws::String>
51 SetSubscriptionArn(std::forward<SubscriptionArnT>(value));
52 return *this;
53 }
55
57
89 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
90 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
91 template <typename AttributeNameT = Aws::String>
92 void SetAttributeName(AttributeNameT&& value) {
93 m_attributeNameHasBeenSet = true;
94 m_attributeName = std::forward<AttributeNameT>(value);
95 }
96 template <typename AttributeNameT = Aws::String>
98 SetAttributeName(std::forward<AttributeNameT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
108 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
109 template <typename AttributeValueT = Aws::String>
110 void SetAttributeValue(AttributeValueT&& value) {
111 m_attributeValueHasBeenSet = true;
112 m_attributeValue = std::forward<AttributeValueT>(value);
113 }
114 template <typename AttributeValueT = Aws::String>
116 SetAttributeValue(std::forward<AttributeValueT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_subscriptionArn;
122
123 Aws::String m_attributeName;
124
125 Aws::String m_attributeValue;
126 bool m_subscriptionArnHasBeenSet = false;
127 bool m_attributeNameHasBeenSet = false;
128 bool m_attributeValueHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SNS
133} // namespace Aws
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SetSubscriptionAttributesRequest & WithSubscriptionArn(SubscriptionArnT &&value)
SetSubscriptionAttributesRequest & WithAttributeValue(AttributeValueT &&value)
SetSubscriptionAttributesRequest & WithAttributeName(AttributeNameT &&value)
AWS_SNS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String