AWS SDK for C++  1.9.45
AWS SDK for C++
ListClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EMR
18 {
19 namespace Model
20 {
21 
29  {
30  public:
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 "ListClusters"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
47  inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; }
48 
52  inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
53 
57  inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
58 
62  inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
63 
67  inline ListClustersRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
68 
72  inline ListClustersRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;}
73 
74 
78  inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; }
79 
83  inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
84 
88  inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
89 
93  inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
94 
98  inline ListClustersRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
99 
103  inline ListClustersRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;}
104 
105 
109  inline const Aws::Vector<ClusterState>& GetClusterStates() const{ return m_clusterStates; }
110 
114  inline bool ClusterStatesHasBeenSet() const { return m_clusterStatesHasBeenSet; }
115 
119  inline void SetClusterStates(const Aws::Vector<ClusterState>& value) { m_clusterStatesHasBeenSet = true; m_clusterStates = value; }
120 
124  inline void SetClusterStates(Aws::Vector<ClusterState>&& value) { m_clusterStatesHasBeenSet = true; m_clusterStates = std::move(value); }
125 
129  inline ListClustersRequest& WithClusterStates(const Aws::Vector<ClusterState>& value) { SetClusterStates(value); return *this;}
130 
134  inline ListClustersRequest& WithClusterStates(Aws::Vector<ClusterState>&& value) { SetClusterStates(std::move(value)); return *this;}
135 
139  inline ListClustersRequest& AddClusterStates(const ClusterState& value) { m_clusterStatesHasBeenSet = true; m_clusterStates.push_back(value); return *this; }
140 
144  inline ListClustersRequest& AddClusterStates(ClusterState&& value) { m_clusterStatesHasBeenSet = true; m_clusterStates.push_back(std::move(value)); return *this; }
145 
146 
150  inline const Aws::String& GetMarker() const{ return m_marker; }
151 
155  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
156 
160  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
161 
165  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
166 
170  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
171 
175  inline ListClustersRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
176 
180  inline ListClustersRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
181 
185  inline ListClustersRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
186 
187  private:
188 
189  Aws::Utils::DateTime m_createdAfter;
190  bool m_createdAfterHasBeenSet;
191 
192  Aws::Utils::DateTime m_createdBefore;
193  bool m_createdBeforeHasBeenSet;
194 
195  Aws::Vector<ClusterState> m_clusterStates;
196  bool m_clusterStatesHasBeenSet;
197 
198  Aws::String m_marker;
199  bool m_markerHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace EMR
204 } // namespace Aws
Aws::EMR::Model::ListClustersRequest::SetCreatedAfter
void SetCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListClustersRequest.h:57
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EMR::Model::ListClustersRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListClustersRequest.h:155
Aws::EMR::Model::ListClustersRequest::SetClusterStates
void SetClusterStates(Aws::Vector< ClusterState > &&value)
Definition: ListClustersRequest.h:124
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ClusterState.h
Aws::EMR::Model::ListClustersRequest::CreatedBeforeHasBeenSet
bool CreatedBeforeHasBeenSet() const
Definition: ListClustersRequest.h:83
Aws::EMR::Model::ListClustersRequest::WithClusterStates
ListClustersRequest & WithClusterStates(Aws::Vector< ClusterState > &&value)
Definition: ListClustersRequest.h:134
EMR_EXPORTS.h
Aws::EMR::Model::ListClustersRequest::WithMarker
ListClustersRequest & WithMarker(Aws::String &&value)
Definition: ListClustersRequest.h:180
Aws::EMR::Model::ListClustersRequest::WithCreatedAfter
ListClustersRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListClustersRequest.h:72
EMRRequest.h
Aws::EMR::Model::ListClustersRequest::ClusterStatesHasBeenSet
bool ClusterStatesHasBeenSet() const
Definition: ListClustersRequest.h:114
DateTime.h
Aws::EMR::Model::ListClustersRequest::AddClusterStates
ListClustersRequest & AddClusterStates(ClusterState &&value)
Definition: ListClustersRequest.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EMR::Model::ListClustersRequest::SetMarker
void SetMarker(const char *value)
Definition: ListClustersRequest.h:170
Aws::EMR::Model::ListClustersRequest::SetCreatedBefore
void SetCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListClustersRequest.h:88
Aws::EMR::Model::ListClustersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListClustersRequest.h:37
Aws::EMR::Model::ListClustersRequest
Definition: ListClustersRequest.h:29
Aws::EMR::Model::ListClustersRequest::SetCreatedBefore
void SetCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListClustersRequest.h:93
Aws::EMR::Model::ClusterState
ClusterState
Definition: ClusterState.h:17
Aws::EMR::Model::ListClustersRequest::GetCreatedAfter
const Aws::Utils::DateTime & GetCreatedAfter() const
Definition: ListClustersRequest.h:47
Aws::EMR::Model::ListClustersRequest::WithCreatedBefore
ListClustersRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListClustersRequest.h:103
Aws::EMR::Model::ListClustersRequest::WithMarker
ListClustersRequest & WithMarker(const Aws::String &value)
Definition: ListClustersRequest.h:175
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::ListClustersRequest::GetClusterStates
const Aws::Vector< ClusterState > & GetClusterStates() const
Definition: ListClustersRequest.h:109
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::ListClustersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::EMR::Model::ListClustersRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListClustersRequest.h:160
Aws::EMR::Model::ListClustersRequest::GetCreatedBefore
const Aws::Utils::DateTime & GetCreatedBefore() const
Definition: ListClustersRequest.h:78
Aws::EMR::Model::ListClustersRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListClustersRequest.h:150
Aws::EMR::Model::ListClustersRequest::WithCreatedAfter
ListClustersRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListClustersRequest.h:67
Aws::EMR::Model::ListClustersRequest::WithMarker
ListClustersRequest & WithMarker(const char *value)
Definition: ListClustersRequest.h:185
Aws::EMR::Model::ListClustersRequest::SetCreatedAfter
void SetCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListClustersRequest.h:62
Aws::EMR::Model::ListClustersRequest::SetClusterStates
void SetClusterStates(const Aws::Vector< ClusterState > &value)
Definition: ListClustersRequest.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ListClustersRequest::AddClusterStates
ListClustersRequest & AddClusterStates(const ClusterState &value)
Definition: ListClustersRequest.h:139
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ListClustersRequest::ListClustersRequest
ListClustersRequest()
Aws::EMR::Model::ListClustersRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListClustersRequest.h:165
Aws::EMR::Model::ListClustersRequest::CreatedAfterHasBeenSet
bool CreatedAfterHasBeenSet() const
Definition: ListClustersRequest.h:52
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ListClustersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::ListClustersRequest::WithClusterStates
ListClustersRequest & WithClusterStates(const Aws::Vector< ClusterState > &value)
Definition: ListClustersRequest.h:129
Aws::EMR::Model::ListClustersRequest::WithCreatedBefore
ListClustersRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListClustersRequest.h:98