AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
51 inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
52 inline ListClustersRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
53 inline ListClustersRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(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 inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
63 inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
64 inline ListClustersRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
65 inline ListClustersRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(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 inline void SetClusterStates(const Aws::Vector<ClusterState>& value) { m_clusterStatesHasBeenSet = true; m_clusterStates = value; }
77 inline void SetClusterStates(Aws::Vector<ClusterState>&& value) { m_clusterStatesHasBeenSet = true; m_clusterStates = std::move(value); }
79 inline ListClustersRequest& WithClusterStates(Aws::Vector<ClusterState>&& value) { SetClusterStates(std::move(value)); return *this;}
80 inline ListClustersRequest& AddClusterStates(const ClusterState& value) { m_clusterStatesHasBeenSet = true; m_clusterStates.push_back(value); return *this; }
81 inline ListClustersRequest& AddClusterStates(ClusterState&& value) { m_clusterStatesHasBeenSet = true; m_clusterStates.push_back(std::move(value)); return *this; }
83
85
88 inline const Aws::String& GetMarker() const{ return m_marker; }
89 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
90 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
91 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
92 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
93 inline ListClustersRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
94 inline ListClustersRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
95 inline ListClustersRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
97 private:
98
99 Aws::Utils::DateTime m_createdAfter;
100 bool m_createdAfterHasBeenSet = false;
101
102 Aws::Utils::DateTime m_createdBefore;
103 bool m_createdBeforeHasBeenSet = false;
104
105 Aws::Vector<ClusterState> m_clusterStates;
106 bool m_clusterStatesHasBeenSet = false;
107
108 Aws::String m_marker;
109 bool m_markerHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EMR
114} // namespace Aws
void SetCreatedBefore(Aws::Utils::DateTime &&value)
AWS_EMR_API Aws::String SerializePayload() const override
ListClustersRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
ListClustersRequest & WithClusterStates(Aws::Vector< ClusterState > &&value)
virtual const char * GetServiceRequestName() const override
ListClustersRequest & WithMarker(const char *value)
void SetClusterStates(const Aws::Vector< ClusterState > &value)
ListClustersRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
const Aws::Vector< ClusterState > & GetClusterStates() const
ListClustersRequest & AddClusterStates(const ClusterState &value)
ListClustersRequest & WithMarker(const Aws::String &value)
void SetMarker(const Aws::String &value)
ListClustersRequest & WithClusterStates(const Aws::Vector< ClusterState > &value)
ListClustersRequest & AddClusterStates(ClusterState &&value)
const Aws::Utils::DateTime & GetCreatedBefore() const
void SetCreatedAfter(const Aws::Utils::DateTime &value)
void SetClusterStates(Aws::Vector< ClusterState > &&value)
void SetCreatedBefore(const Aws::Utils::DateTime &value)
ListClustersRequest & WithMarker(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAfter() const
ListClustersRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
void SetCreatedAfter(Aws::Utils::DateTime &&value)
ListClustersRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
const Aws::String & GetMarker() const
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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