AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListChannelsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/notifications/NotificationsRequest.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Notifications {
18namespace Model {
19
23 public:
24 AWS_NOTIFICATIONS_API ListChannelsRequest() = 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 "ListChannels"; }
31
32 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
33
34 AWS_NOTIFICATIONS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
41 inline const Aws::String& GetNotificationConfigurationArn() const { return m_notificationConfigurationArn; }
42 inline bool NotificationConfigurationArnHasBeenSet() const { return m_notificationConfigurationArnHasBeenSet; }
43 template <typename NotificationConfigurationArnT = Aws::String>
44 void SetNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
45 m_notificationConfigurationArnHasBeenSet = true;
46 m_notificationConfigurationArn = std::forward<NotificationConfigurationArnT>(value);
47 }
48 template <typename NotificationConfigurationArnT = Aws::String>
49 ListChannelsRequest& WithNotificationConfigurationArn(NotificationConfigurationArnT&& value) {
50 SetNotificationConfigurationArn(std::forward<NotificationConfigurationArnT>(value));
51 return *this;
52 }
54
56
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
86 ListChannelsRequest& WithNextToken(NextTokenT&& value) {
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_notificationConfigurationArn;
93
94 int m_maxResults{0};
95
96 Aws::String m_nextToken;
97 bool m_notificationConfigurationArnHasBeenSet = false;
98 bool m_maxResultsHasBeenSet = false;
99 bool m_nextTokenHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Notifications
104} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNotificationConfigurationArn() const
AWS_NOTIFICATIONS_API ListChannelsRequest()=default
ListChannelsRequest & WithMaxResults(int value)
AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override
void SetNotificationConfigurationArn(NotificationConfigurationArnT &&value)
AWS_NOTIFICATIONS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListChannelsRequest & WithNotificationConfigurationArn(NotificationConfigurationArnT &&value)
ListChannelsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String