AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListClustersRequest.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/elasticmapreduce/model/ClusterState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EMR
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_EMR_API ListClustersRequest() = 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 "ListClusters"; }
38
39 AWS_EMR_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
49 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
50 template<typename CreatedAfterT = Aws::Utils::DateTime>
51 void SetCreatedAfter(CreatedAfterT&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::forward<CreatedAfterT>(value); }
52 template<typename CreatedAfterT = Aws::Utils::DateTime>
53 ListClustersRequest& WithCreatedAfter(CreatedAfterT&& value) { SetCreatedAfter(std::forward<CreatedAfterT>(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 ListClustersRequest& WithCreatedBefore(CreatedBeforeT&& value) { SetCreatedBefore(std::forward<CreatedBeforeT>(value)); return *this;}
67
69
74 inline const Aws::Vector<ClusterState>& GetClusterStates() const { return m_clusterStates; }
75 inline bool ClusterStatesHasBeenSet() const { return m_clusterStatesHasBeenSet; }
76 template<typename ClusterStatesT = Aws::Vector<ClusterState>>
77 void SetClusterStates(ClusterStatesT&& value) { m_clusterStatesHasBeenSet = true; m_clusterStates = std::forward<ClusterStatesT>(value); }
78 template<typename ClusterStatesT = Aws::Vector<ClusterState>>
79 ListClustersRequest& WithClusterStates(ClusterStatesT&& value) { SetClusterStates(std::forward<ClusterStatesT>(value)); return *this;}
80 inline ListClustersRequest& AddClusterStates(ClusterState value) { m_clusterStatesHasBeenSet = true; m_clusterStates.push_back(value); return *this; }
82
84
87 inline const Aws::String& GetMarker() const { return m_marker; }
88 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
89 template<typename MarkerT = Aws::String>
90 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
91 template<typename MarkerT = Aws::String>
92 ListClustersRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
94 private:
95
96 Aws::Utils::DateTime m_createdAfter{};
97 bool m_createdAfterHasBeenSet = false;
98
99 Aws::Utils::DateTime m_createdBefore{};
100 bool m_createdBeforeHasBeenSet = false;
101
102 Aws::Vector<ClusterState> m_clusterStates;
103 bool m_clusterStatesHasBeenSet = false;
104
105 Aws::String m_marker;
106 bool m_markerHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EMR
111} // 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