AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
170 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
171 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
172 template <typename AttributeNameT = Aws::String>
173 void SetAttributeName(AttributeNameT&& value) {
174 m_attributeNameHasBeenSet = true;
175 m_attributeName = std::forward<AttributeNameT>(value);
176 }
177 template <typename AttributeNameT = Aws::String>
179 SetAttributeName(std::forward<AttributeNameT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
189 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
190 template <typename AttributeValueT = Aws::String>
191 void SetAttributeValue(AttributeValueT&& value) {
192 m_attributeValueHasBeenSet = true;
193 m_attributeValue = std::forward<AttributeValueT>(value);
194 }
195 template <typename AttributeValueT = Aws::String>
197 SetAttributeValue(std::forward<AttributeValueT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_topicArn;
203
204 Aws::String m_attributeName;
205
206 Aws::String m_attributeValue;
207 bool m_topicArnHasBeenSet = false;
208 bool m_attributeNameHasBeenSet = false;
209 bool m_attributeValueHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace SNS
214} // 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