AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
50 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
51 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
52 inline ListSchedulesRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
53 inline ListSchedulesRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
54 inline ListSchedulesRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
56
58
63 inline int GetMaxResults() const{ return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
66 inline ListSchedulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
68
70
73 inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
74 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
75 inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
76 inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
77 inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
78 inline ListSchedulesRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
79 inline ListSchedulesRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
80 inline ListSchedulesRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
82
84
88 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
91 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
92 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
93 inline ListSchedulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
94 inline ListSchedulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 inline ListSchedulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
97
99
103 inline const ScheduleState& GetState() const{ return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(const ScheduleState& value) { m_stateHasBeenSet = true; m_state = value; }
106 inline void SetState(ScheduleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
107 inline ListSchedulesRequest& WithState(const ScheduleState& value) { SetState(value); return *this;}
108 inline ListSchedulesRequest& WithState(ScheduleState&& value) { SetState(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_groupName;
113 bool m_groupNameHasBeenSet = false;
114
115 int m_maxResults;
116 bool m_maxResultsHasBeenSet = false;
117
118 Aws::String m_namePrefix;
119 bool m_namePrefixHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
124 ScheduleState m_state;
125 bool m_stateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Scheduler
130} // namespace Aws
ListSchedulesRequest & WithNamePrefix(const char *value)
ListSchedulesRequest & WithMaxResults(int value)
ListSchedulesRequest & WithNamePrefix(Aws::String &&value)
ListSchedulesRequest & WithNextToken(Aws::String &&value)
ListSchedulesRequest & WithGroupName(const Aws::String &value)
ListSchedulesRequest & WithNextToken(const char *value)
ListSchedulesRequest & WithState(ScheduleState &&value)
AWS_SCHEDULER_API Aws::String SerializePayload() const override
AWS_SCHEDULER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListSchedulesRequest & WithNamePrefix(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListSchedulesRequest & WithGroupName(const char *value)
ListSchedulesRequest & WithGroupName(Aws::String &&value)
ListSchedulesRequest & WithNextToken(const Aws::String &value)
ListSchedulesRequest & WithState(const ScheduleState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String