AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListJobRunsRequest.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/emr-serverless/EMRServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/emr-serverless/model/JobRunMode.h>
13#include <aws/emr-serverless/model/JobRunState.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace EMRServerless
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_EMRSERVERLESS_API ListJobRunsRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListJobRuns"; }
39
40 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
41
42 AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
50 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
51 template<typename ApplicationIdT = Aws::String>
52 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
53 template<typename ApplicationIdT = Aws::String>
54 ListJobRunsRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template<typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
65 template<typename NextTokenT = Aws::String>
66 ListJobRunsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
68
70
73 inline int GetMaxResults() const { return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline ListJobRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreatedAtAfter() const { return m_createdAtAfter; }
84 inline bool CreatedAtAfterHasBeenSet() const { return m_createdAtAfterHasBeenSet; }
85 template<typename CreatedAtAfterT = Aws::Utils::DateTime>
86 void SetCreatedAtAfter(CreatedAtAfterT&& value) { m_createdAtAfterHasBeenSet = true; m_createdAtAfter = std::forward<CreatedAtAfterT>(value); }
87 template<typename CreatedAtAfterT = Aws::Utils::DateTime>
88 ListJobRunsRequest& WithCreatedAtAfter(CreatedAtAfterT&& value) { SetCreatedAtAfter(std::forward<CreatedAtAfterT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetCreatedAtBefore() const { return m_createdAtBefore; }
96 inline bool CreatedAtBeforeHasBeenSet() const { return m_createdAtBeforeHasBeenSet; }
97 template<typename CreatedAtBeforeT = Aws::Utils::DateTime>
98 void SetCreatedAtBefore(CreatedAtBeforeT&& value) { m_createdAtBeforeHasBeenSet = true; m_createdAtBefore = std::forward<CreatedAtBeforeT>(value); }
99 template<typename CreatedAtBeforeT = Aws::Utils::DateTime>
100 ListJobRunsRequest& WithCreatedAtBefore(CreatedAtBeforeT&& value) { SetCreatedAtBefore(std::forward<CreatedAtBeforeT>(value)); return *this;}
102
104
108 inline const Aws::Vector<JobRunState>& GetStates() const { return m_states; }
109 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
110 template<typename StatesT = Aws::Vector<JobRunState>>
111 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
112 template<typename StatesT = Aws::Vector<JobRunState>>
113 ListJobRunsRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
114 inline ListJobRunsRequest& AddStates(JobRunState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
116
118
121 inline JobRunMode GetMode() const { return m_mode; }
122 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
123 inline void SetMode(JobRunMode value) { m_modeHasBeenSet = true; m_mode = value; }
124 inline ListJobRunsRequest& WithMode(JobRunMode value) { SetMode(value); return *this;}
126 private:
127
128 Aws::String m_applicationId;
129 bool m_applicationIdHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 int m_maxResults{0};
135 bool m_maxResultsHasBeenSet = false;
136
137 Aws::Utils::DateTime m_createdAtAfter{};
138 bool m_createdAtAfterHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createdAtBefore{};
141 bool m_createdAtBeforeHasBeenSet = false;
142
144 bool m_statesHasBeenSet = false;
145
147 bool m_modeHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EMRServerless
152} // namespace Aws
AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetCreatedAtBefore(CreatedAtBeforeT &&value)
const Aws::Utils::DateTime & GetCreatedAtBefore() const
void SetCreatedAtAfter(CreatedAtAfterT &&value)
ListJobRunsRequest & WithStates(StatesT &&value)
ListJobRunsRequest & AddStates(JobRunState value)
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetCreatedAtAfter() const
const Aws::Vector< JobRunState > & GetStates() const
ListJobRunsRequest & WithMode(JobRunMode value)
ListJobRunsRequest & WithApplicationId(ApplicationIdT &&value)
ListJobRunsRequest & WithNextToken(NextTokenT &&value)
AWS_EMRSERVERLESS_API ListJobRunsRequest()=default
ListJobRunsRequest & WithCreatedAtBefore(CreatedAtBeforeT &&value)
ListJobRunsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListJobRunsRequest & WithCreatedAtAfter(CreatedAtAfterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector