AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListPresetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconvert/MediaConvertRequest.h>
9#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
10#include <aws/mediaconvert/model/Order.h>
11#include <aws/mediaconvert/model/PresetListBy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace MediaConvert {
20namespace Model {
21
25 public:
26 AWS_MEDIACONVERT_API ListPresetsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListPresets"; }
33
34 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
35
36 AWS_MEDIACONVERT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
43 inline const Aws::String& GetCategory() const { return m_category; }
44 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
45 template <typename CategoryT = Aws::String>
46 void SetCategory(CategoryT&& value) {
47 m_categoryHasBeenSet = true;
48 m_category = std::forward<CategoryT>(value);
49 }
50 template <typename CategoryT = Aws::String>
51 ListPresetsRequest& WithCategory(CategoryT&& value) {
52 SetCategory(std::forward<CategoryT>(value));
53 return *this;
54 }
56
58
63 inline PresetListBy GetListBy() const { return m_listBy; }
64 inline bool ListByHasBeenSet() const { return m_listByHasBeenSet; }
65 inline void SetListBy(PresetListBy value) {
66 m_listByHasBeenSet = true;
67 m_listBy = value;
68 }
70 SetListBy(value);
71 return *this;
72 }
74
76
79 inline int GetMaxResults() const { return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) {
82 m_maxResultsHasBeenSet = true;
83 m_maxResults = value;
84 }
86 SetMaxResults(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template <typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) {
100 m_nextTokenHasBeenSet = true;
101 m_nextToken = std::forward<NextTokenT>(value);
102 }
103 template <typename NextTokenT = Aws::String>
104 ListPresetsRequest& WithNextToken(NextTokenT&& value) {
105 SetNextToken(std::forward<NextTokenT>(value));
106 return *this;
107 }
109
111
115 inline Order GetOrder() const { return m_order; }
116 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
117 inline void SetOrder(Order value) {
118 m_orderHasBeenSet = true;
119 m_order = value;
120 }
122 SetOrder(value);
123 return *this;
124 }
126 private:
127 Aws::String m_category;
128
130
131 int m_maxResults{0};
132
133 Aws::String m_nextToken;
134
135 Order m_order{Order::NOT_SET};
136 bool m_categoryHasBeenSet = false;
137 bool m_listByHasBeenSet = false;
138 bool m_maxResultsHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140 bool m_orderHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace MediaConvert
145} // namespace Aws
ListPresetsRequest & WithListBy(PresetListBy value)
AWS_MEDIACONVERT_API ListPresetsRequest()=default
ListPresetsRequest & WithCategory(CategoryT &&value)
AWS_MEDIACONVERT_API Aws::String SerializePayload() const override
ListPresetsRequest & WithMaxResults(int value)
ListPresetsRequest & WithOrder(Order value)
virtual const char * GetServiceRequestName() const override
ListPresetsRequest & WithNextToken(NextTokenT &&value)
AWS_MEDIACONVERT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String