AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListSchedulesRequest.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/scheduler/SchedulerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/scheduler/model/ScheduleState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Scheduler
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SCHEDULER_API ListSchedulesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListSchedules"; }
36
37 AWS_SCHEDULER_API Aws::String SerializePayload() const override;
38
39 AWS_SCHEDULER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::String& GetGroupName() const { return m_groupName; }
48 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
49 template<typename GroupNameT = Aws::String>
50 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
51 template<typename GroupNameT = Aws::String>
52 ListSchedulesRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
54
56
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline ListSchedulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
71 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
72 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
73 template<typename NamePrefixT = Aws::String>
74 void SetNamePrefix(NamePrefixT&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::forward<NamePrefixT>(value); }
75 template<typename NamePrefixT = Aws::String>
76 ListSchedulesRequest& WithNamePrefix(NamePrefixT&& value) { SetNamePrefix(std::forward<NamePrefixT>(value)); return *this;}
78
80
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 template<typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
88 template<typename NextTokenT = Aws::String>
89 ListSchedulesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
91
93
97 inline ScheduleState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(ScheduleState value) { m_stateHasBeenSet = true; m_state = value; }
100 inline ListSchedulesRequest& WithState(ScheduleState value) { SetState(value); return *this;}
102 private:
103
104 Aws::String m_groupName;
105 bool m_groupNameHasBeenSet = false;
106
107 int m_maxResults{0};
108 bool m_maxResultsHasBeenSet = false;
109
110 Aws::String m_namePrefix;
111 bool m_namePrefixHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
117 bool m_stateHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Scheduler
122} // 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