AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ListChannelsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediapackagev2/Mediapackagev2Request.h>
9#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace mediapackagev2 {
18namespace Model {
19
23 public:
24 AWS_MEDIAPACKAGEV2_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_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
33
34 AWS_MEDIAPACKAGEV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
42 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
43 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
44 template <typename ChannelGroupNameT = Aws::String>
45 void SetChannelGroupName(ChannelGroupNameT&& value) {
46 m_channelGroupNameHasBeenSet = true;
47 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
48 }
49 template <typename ChannelGroupNameT = Aws::String>
50 ListChannelsRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
51 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
52 return *this;
53 }
55
57
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
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template <typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) {
81 m_nextTokenHasBeenSet = true;
82 m_nextToken = std::forward<NextTokenT>(value);
83 }
84 template <typename NextTokenT = Aws::String>
85 ListChannelsRequest& WithNextToken(NextTokenT&& value) {
86 SetNextToken(std::forward<NextTokenT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_channelGroupName;
92 bool m_channelGroupNameHasBeenSet = false;
93
94 int m_maxResults{0};
95 bool m_maxResultsHasBeenSet = false;
96
97 Aws::String m_nextToken;
98 bool m_nextTokenHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace mediapackagev2
103} // namespace Aws
AWS_MEDIAPACKAGEV2_API ListChannelsRequest()=default
ListChannelsRequest & WithMaxResults(int value)
ListChannelsRequest & WithChannelGroupName(ChannelGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
ListChannelsRequest & WithNextToken(NextTokenT &&value)
void SetChannelGroupName(ChannelGroupNameT &&value)
AWS_MEDIAPACKAGEV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String