AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVirtualClusterId(const Aws::String& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = value; }
51 inline void SetVirtualClusterId(Aws::String&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::move(value); }
52 inline void SetVirtualClusterId(const char* value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId.assign(value); }
53 inline ListJobRunsRequest& WithVirtualClusterId(const Aws::String& value) { SetVirtualClusterId(value); return *this;}
54 inline ListJobRunsRequest& WithVirtualClusterId(Aws::String&& value) { SetVirtualClusterId(std::move(value)); return *this;}
55 inline ListJobRunsRequest& WithVirtualClusterId(const char* value) { SetVirtualClusterId(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; }
63 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
64 inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
65 inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
66 inline ListJobRunsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
67 inline ListJobRunsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; }
75 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
76 inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
77 inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
78 inline ListJobRunsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
79 inline ListJobRunsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline ListJobRunsRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline ListJobRunsRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline ListJobRunsRequest& WithName(const char* value) { SetName(value); return *this;}
95
97
100 inline const Aws::Vector<JobRunState>& GetStates() const{ return m_states; }
101 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
102 inline void SetStates(const Aws::Vector<JobRunState>& value) { m_statesHasBeenSet = true; m_states = value; }
103 inline void SetStates(Aws::Vector<JobRunState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
104 inline ListJobRunsRequest& WithStates(const Aws::Vector<JobRunState>& value) { SetStates(value); return *this;}
105 inline ListJobRunsRequest& WithStates(Aws::Vector<JobRunState>&& value) { SetStates(std::move(value)); return *this;}
106 inline ListJobRunsRequest& AddStates(const JobRunState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
107 inline ListJobRunsRequest& AddStates(JobRunState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
109
111
114 inline int GetMaxResults() const{ return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
117 inline ListJobRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
119
121
124 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
127 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
129 inline ListJobRunsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 inline ListJobRunsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
131 inline ListJobRunsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
133 private:
134
135 Aws::String m_virtualClusterId;
136 bool m_virtualClusterIdHasBeenSet = false;
137
138 Aws::Utils::DateTime m_createdBefore;
139 bool m_createdBeforeHasBeenSet = false;
140
141 Aws::Utils::DateTime m_createdAfter;
142 bool m_createdAfterHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
148 bool m_statesHasBeenSet = false;
149
150 int m_maxResults;
151 bool m_maxResultsHasBeenSet = false;
152
153 Aws::String m_nextToken;
154 bool m_nextTokenHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace EMRContainers
159} // namespace Aws
ListJobRunsRequest & WithStates(const Aws::Vector< JobRunState > &value)
ListJobRunsRequest & AddStates(const JobRunState &value)
void SetCreatedBefore(Aws::Utils::DateTime &&value)
ListJobRunsRequest & WithVirtualClusterId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListJobRunsRequest & WithNextToken(const char *value)
void SetStates(Aws::Vector< JobRunState > &&value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetCreatedAfter() const
ListJobRunsRequest & WithVirtualClusterId(const Aws::String &value)
AWS_EMRCONTAINERS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< JobRunState > & GetStates() const
void SetCreatedAfter(const Aws::Utils::DateTime &value)
ListJobRunsRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
ListJobRunsRequest & WithVirtualClusterId(const char *value)
const Aws::Utils::DateTime & GetCreatedBefore() const
ListJobRunsRequest & AddStates(JobRunState &&value)
ListJobRunsRequest & WithMaxResults(int value)
ListJobRunsRequest & WithName(const char *value)
void SetStates(const Aws::Vector< JobRunState > &value)
ListJobRunsRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
ListJobRunsRequest & WithStates(Aws::Vector< JobRunState > &&value)
void SetCreatedAfter(Aws::Utils::DateTime &&value)
ListJobRunsRequest & WithName(const Aws::String &value)
ListJobRunsRequest & WithNextToken(const Aws::String &value)
void SetCreatedBefore(const Aws::Utils::DateTime &value)
ListJobRunsRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
ListJobRunsRequest & WithNextToken(Aws::String &&value)
void SetVirtualClusterId(const Aws::String &value)
ListJobRunsRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
ListJobRunsRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector