AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListStreamsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivs/IVSRequest.h>
9#include <aws/ivs/IVS_EXPORTS.h>
10#include <aws/ivs/model/StreamFilters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IVS {
16namespace Model {
17
21 public:
22 AWS_IVS_API ListStreamsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListStreams"; }
29
30 AWS_IVS_API Aws::String SerializePayload() const override;
31
33
36 inline const StreamFilters& GetFilterBy() const { return m_filterBy; }
37 inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; }
38 template <typename FilterByT = StreamFilters>
39 void SetFilterBy(FilterByT&& value) {
40 m_filterByHasBeenSet = true;
41 m_filterBy = std::forward<FilterByT>(value);
42 }
43 template <typename FilterByT = StreamFilters>
44 ListStreamsRequest& WithFilterBy(FilterByT&& value) {
45 SetFilterBy(std::forward<FilterByT>(value));
46 return *this;
47 }
49
51
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
56 inline void SetMaxResults(int value) {
57 m_maxResultsHasBeenSet = true;
58 m_maxResults = value;
59 }
61 SetMaxResults(value);
62 return *this;
63 }
65
67
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 template <typename NextTokenT = Aws::String>
74 void SetNextToken(NextTokenT&& value) {
75 m_nextTokenHasBeenSet = true;
76 m_nextToken = std::forward<NextTokenT>(value);
77 }
78 template <typename NextTokenT = Aws::String>
79 ListStreamsRequest& WithNextToken(NextTokenT&& value) {
80 SetNextToken(std::forward<NextTokenT>(value));
81 return *this;
82 }
84 private:
85 StreamFilters m_filterBy;
86
87 int m_maxResults{0};
88
89 Aws::String m_nextToken;
90 bool m_filterByHasBeenSet = false;
91 bool m_maxResultsHasBeenSet = false;
92 bool m_nextTokenHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace IVS
97} // namespace Aws
ListStreamsRequest & WithNextToken(NextTokenT &&value)
ListStreamsRequest & WithFilterBy(FilterByT &&value)
const StreamFilters & GetFilterBy() const
ListStreamsRequest & WithMaxResults(int value)
void SetNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
virtual const char * GetServiceRequestName() const override
AWS_IVS_API ListStreamsRequest()=default
AWS_IVS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String