AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListClustersRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMRRequest.h>
11#include <aws/elasticmapreduce/EMR_EXPORTS.h>
12#include <aws/elasticmapreduce/model/ClusterState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EMR {
18namespace Model {
19
27 public:
28 AWS_EMR_API ListClustersRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListClusters"; }
35
36 AWS_EMR_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
45 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
46 template <typename CreatedAfterT = Aws::Utils::DateTime>
47 void SetCreatedAfter(CreatedAfterT&& value) {
48 m_createdAfterHasBeenSet = true;
49 m_createdAfter = std::forward<CreatedAfterT>(value);
50 }
51 template <typename CreatedAfterT = Aws::Utils::DateTime>
52 ListClustersRequest& WithCreatedAfter(CreatedAfterT&& value) {
53 SetCreatedAfter(std::forward<CreatedAfterT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
63 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
64 template <typename CreatedBeforeT = Aws::Utils::DateTime>
65 void SetCreatedBefore(CreatedBeforeT&& value) {
66 m_createdBeforeHasBeenSet = true;
67 m_createdBefore = std::forward<CreatedBeforeT>(value);
68 }
69 template <typename CreatedBeforeT = Aws::Utils::DateTime>
70 ListClustersRequest& WithCreatedBefore(CreatedBeforeT&& value) {
71 SetCreatedBefore(std::forward<CreatedBeforeT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Vector<ClusterState>& GetClusterStates() const { return m_clusterStates; }
83 inline bool ClusterStatesHasBeenSet() const { return m_clusterStatesHasBeenSet; }
84 template <typename ClusterStatesT = Aws::Vector<ClusterState>>
85 void SetClusterStates(ClusterStatesT&& value) {
86 m_clusterStatesHasBeenSet = true;
87 m_clusterStates = std::forward<ClusterStatesT>(value);
88 }
89 template <typename ClusterStatesT = Aws::Vector<ClusterState>>
90 ListClustersRequest& WithClusterStates(ClusterStatesT&& value) {
91 SetClusterStates(std::forward<ClusterStatesT>(value));
92 return *this;
93 }
95 m_clusterStatesHasBeenSet = true;
96 m_clusterStates.push_back(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetMarker() const { return m_marker; }
106 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
107 template <typename MarkerT = Aws::String>
108 void SetMarker(MarkerT&& value) {
109 m_markerHasBeenSet = true;
110 m_marker = std::forward<MarkerT>(value);
111 }
112 template <typename MarkerT = Aws::String>
113 ListClustersRequest& WithMarker(MarkerT&& value) {
114 SetMarker(std::forward<MarkerT>(value));
115 return *this;
116 }
118 private:
119 Aws::Utils::DateTime m_createdAfter{};
120
121 Aws::Utils::DateTime m_createdBefore{};
122
123 Aws::Vector<ClusterState> m_clusterStates;
124
125 Aws::String m_marker;
126 bool m_createdAfterHasBeenSet = false;
127 bool m_createdBeforeHasBeenSet = false;
128 bool m_clusterStatesHasBeenSet = false;
129 bool m_markerHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace EMR
134} // namespace Aws
AWS_EMR_API Aws::String SerializePayload() const override
ListClustersRequest & WithClusterStates(ClusterStatesT &&value)
virtual const char * GetServiceRequestName() const override
ListClustersRequest & WithCreatedBefore(CreatedBeforeT &&value)
const Aws::Vector< ClusterState > & GetClusterStates() const
ListClustersRequest & WithCreatedAfter(CreatedAfterT &&value)
ListClustersRequest & WithMarker(MarkerT &&value)
ListClustersRequest & AddClusterStates(ClusterState value)
const Aws::Utils::DateTime & GetCreatedBefore() const
void SetCreatedBefore(CreatedBeforeT &&value)
const Aws::Utils::DateTime & GetCreatedAfter() const
void SetCreatedAfter(CreatedAfterT &&value)
AWS_EMR_API ListClustersRequest()=default
const Aws::String & GetMarker() const
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClusterStates(ClusterStatesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector