AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListSchedulesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/scheduler/SchedulerRequest.h>
9#include <aws/scheduler/Scheduler_EXPORTS.h>
10#include <aws/scheduler/model/ScheduleState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Scheduler {
19namespace Model {
20
24 public:
25 AWS_SCHEDULER_API ListSchedulesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListSchedules"; }
32
33 AWS_SCHEDULER_API Aws::String SerializePayload() const override;
34
35 AWS_SCHEDULER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
42 inline const Aws::String& GetGroupName() const { return m_groupName; }
43 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
44 template <typename GroupNameT = Aws::String>
45 void SetGroupName(GroupNameT&& value) {
46 m_groupNameHasBeenSet = true;
47 m_groupName = std::forward<GroupNameT>(value);
48 }
49 template <typename GroupNameT = Aws::String>
50 ListSchedulesRequest& WithGroupName(GroupNameT&& value) {
51 SetGroupName(std::forward<GroupNameT>(value));
52 return *this;
53 }
55
57
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) {
65 m_maxResultsHasBeenSet = true;
66 m_maxResults = value;
67 }
69 SetMaxResults(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
79 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
80 template <typename NamePrefixT = Aws::String>
81 void SetNamePrefix(NamePrefixT&& value) {
82 m_namePrefixHasBeenSet = true;
83 m_namePrefix = std::forward<NamePrefixT>(value);
84 }
85 template <typename NamePrefixT = Aws::String>
86 ListSchedulesRequest& WithNamePrefix(NamePrefixT&& value) {
87 SetNamePrefix(std::forward<NamePrefixT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetNextToken() const { return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 template <typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) {
101 m_nextTokenHasBeenSet = true;
102 m_nextToken = std::forward<NextTokenT>(value);
103 }
104 template <typename NextTokenT = Aws::String>
105 ListSchedulesRequest& WithNextToken(NextTokenT&& value) {
106 SetNextToken(std::forward<NextTokenT>(value));
107 return *this;
108 }
110
112
116 inline ScheduleState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(ScheduleState value) {
119 m_stateHasBeenSet = true;
120 m_state = value;
121 }
123 SetState(value);
124 return *this;
125 }
127 private:
128 Aws::String m_groupName;
129
130 int m_maxResults{0};
131
132 Aws::String m_namePrefix;
133
134 Aws::String m_nextToken;
135
137 bool m_groupNameHasBeenSet = false;
138 bool m_maxResultsHasBeenSet = false;
139 bool m_namePrefixHasBeenSet = false;
140 bool m_nextTokenHasBeenSet = false;
141 bool m_stateHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Scheduler
146} // namespace Aws
ListSchedulesRequest & WithState(ScheduleState value)
ListSchedulesRequest & WithMaxResults(int value)
ListSchedulesRequest & WithNextToken(NextTokenT &&value)
AWS_SCHEDULER_API ListSchedulesRequest()=default
ListSchedulesRequest & WithNamePrefix(NamePrefixT &&value)
AWS_SCHEDULER_API Aws::String SerializePayload() const override
AWS_SCHEDULER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListSchedulesRequest & WithGroupName(GroupNameT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String