AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
SetTopicAttributesRequest.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 SetTopicAttributesRequest() = 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 "SetTopicAttributes"; }
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& GetTopicArn() const { return m_topicArn; }
43 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
44 template <typename TopicArnT = Aws::String>
45 void SetTopicArn(TopicArnT&& value) {
46 m_topicArnHasBeenSet = true;
47 m_topicArn = std::forward<TopicArnT>(value);
48 }
49 template <typename TopicArnT = Aws::String>
51 SetTopicArn(std::forward<TopicArnT>(value));
52 return *this;
53 }
55
57
186 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
187 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
188 template <typename AttributeNameT = Aws::String>
189 void SetAttributeName(AttributeNameT&& value) {
190 m_attributeNameHasBeenSet = true;
191 m_attributeName = std::forward<AttributeNameT>(value);
192 }
193 template <typename AttributeNameT = Aws::String>
195 SetAttributeName(std::forward<AttributeNameT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
205 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
206 template <typename AttributeValueT = Aws::String>
207 void SetAttributeValue(AttributeValueT&& value) {
208 m_attributeValueHasBeenSet = true;
209 m_attributeValue = std::forward<AttributeValueT>(value);
210 }
211 template <typename AttributeValueT = Aws::String>
213 SetAttributeValue(std::forward<AttributeValueT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_topicArn;
219
220 Aws::String m_attributeName;
221
222 Aws::String m_attributeValue;
223 bool m_topicArnHasBeenSet = false;
224 bool m_attributeNameHasBeenSet = false;
225 bool m_attributeValueHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace SNS
230} // namespace Aws
SetTopicAttributesRequest & WithAttributeValue(AttributeValueT &&value)
AWS_SNS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_SNS_API SetTopicAttributesRequest()=default
SetTopicAttributesRequest & WithAttributeName(AttributeNameT &&value)
SetTopicAttributesRequest & WithTopicArn(TopicArnT &&value)
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String