AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ConfirmSubscriptionRequest.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 ConfirmSubscriptionRequest() = 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 "ConfirmSubscription"; }
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
61 inline const Aws::String& GetToken() const { return m_token; }
62 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
63 template <typename TokenT = Aws::String>
64 void SetToken(TokenT&& value) {
65 m_tokenHasBeenSet = true;
66 m_token = std::forward<TokenT>(value);
67 }
68 template <typename TokenT = Aws::String>
70 SetToken(std::forward<TokenT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::String& GetAuthenticateOnUnsubscribe() const { return m_authenticateOnUnsubscribe; }
84 inline bool AuthenticateOnUnsubscribeHasBeenSet() const { return m_authenticateOnUnsubscribeHasBeenSet; }
85 template <typename AuthenticateOnUnsubscribeT = Aws::String>
86 void SetAuthenticateOnUnsubscribe(AuthenticateOnUnsubscribeT&& value) {
87 m_authenticateOnUnsubscribeHasBeenSet = true;
88 m_authenticateOnUnsubscribe = std::forward<AuthenticateOnUnsubscribeT>(value);
89 }
90 template <typename AuthenticateOnUnsubscribeT = Aws::String>
91 ConfirmSubscriptionRequest& WithAuthenticateOnUnsubscribe(AuthenticateOnUnsubscribeT&& value) {
92 SetAuthenticateOnUnsubscribe(std::forward<AuthenticateOnUnsubscribeT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_topicArn;
98
99 Aws::String m_token;
100
101 Aws::String m_authenticateOnUnsubscribe;
102 bool m_topicArnHasBeenSet = false;
103 bool m_tokenHasBeenSet = false;
104 bool m_authenticateOnUnsubscribeHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SNS
109} // namespace Aws
AWS_SNS_API ConfirmSubscriptionRequest()=default
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ConfirmSubscriptionRequest & WithTopicArn(TopicArnT &&value)
ConfirmSubscriptionRequest & WithAuthenticateOnUnsubscribe(AuthenticateOnUnsubscribeT &&value)
AWS_SNS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetAuthenticateOnUnsubscribe(AuthenticateOnUnsubscribeT &&value)
ConfirmSubscriptionRequest & WithToken(TokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String