AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListJobRunsRequest.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/EMRContainersRequest.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-containers/model/JobRunState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace EMRContainers
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_EMRCONTAINERS_API ListJobRunsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListJobRuns"; }
38
39 AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override;
40
41 AWS_EMRCONTAINERS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetVirtualClusterId() const { return m_virtualClusterId; }
49 inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; }
50 template<typename VirtualClusterIdT = Aws::String>
51 void SetVirtualClusterId(VirtualClusterIdT&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::forward<VirtualClusterIdT>(value); }
52 template<typename VirtualClusterIdT = Aws::String>
53 ListJobRunsRequest& WithVirtualClusterId(VirtualClusterIdT&& value) { SetVirtualClusterId(std::forward<VirtualClusterIdT>(value)); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
61 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
62 template<typename CreatedBeforeT = Aws::Utils::DateTime>
63 void SetCreatedBefore(CreatedBeforeT&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::forward<CreatedBeforeT>(value); }
64 template<typename CreatedBeforeT = Aws::Utils::DateTime>
65 ListJobRunsRequest& WithCreatedBefore(CreatedBeforeT&& value) { SetCreatedBefore(std::forward<CreatedBeforeT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
73 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
74 template<typename CreatedAfterT = Aws::Utils::DateTime>
75 void SetCreatedAfter(CreatedAfterT&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::forward<CreatedAfterT>(value); }
76 template<typename CreatedAfterT = Aws::Utils::DateTime>
77 ListJobRunsRequest& WithCreatedAfter(CreatedAfterT&& value) { SetCreatedAfter(std::forward<CreatedAfterT>(value)); return *this;}
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 ListJobRunsRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
96 inline const Aws::Vector<JobRunState>& GetStates() const { return m_states; }
97 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
98 template<typename StatesT = Aws::Vector<JobRunState>>
99 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
100 template<typename StatesT = Aws::Vector<JobRunState>>
101 ListJobRunsRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
102 inline ListJobRunsRequest& AddStates(JobRunState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
104
106
109 inline int GetMaxResults() const { return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 inline ListJobRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
114
116
119 inline const Aws::String& GetNextToken() const { return m_nextToken; }
120 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
121 template<typename NextTokenT = Aws::String>
122 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
123 template<typename NextTokenT = Aws::String>
124 ListJobRunsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
126 private:
127
128 Aws::String m_virtualClusterId;
129 bool m_virtualClusterIdHasBeenSet = false;
130
131 Aws::Utils::DateTime m_createdBefore{};
132 bool m_createdBeforeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_createdAfter{};
135 bool m_createdAfterHasBeenSet = false;
136
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
141 bool m_statesHasBeenSet = false;
142
143 int m_maxResults{0};
144 bool m_maxResultsHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EMRContainers
152} // namespace Aws
ListJobRunsRequest & WithVirtualClusterId(VirtualClusterIdT &&value)
ListJobRunsRequest & AddStates(JobRunState value)
virtual const char * GetServiceRequestName() const override
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetCreatedAfter() const
AWS_EMRCONTAINERS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< JobRunState > & GetStates() const
ListJobRunsRequest & WithName(NameT &&value)
AWS_EMRCONTAINERS_API ListJobRunsRequest()=default
const Aws::Utils::DateTime & GetCreatedBefore() const
ListJobRunsRequest & WithMaxResults(int value)
void SetVirtualClusterId(VirtualClusterIdT &&value)
ListJobRunsRequest & WithCreatedBefore(CreatedBeforeT &&value)
ListJobRunsRequest & WithStates(StatesT &&value)
ListJobRunsRequest & WithNextToken(NextTokenT &&value)
ListJobRunsRequest & WithCreatedAfter(CreatedAfterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector