AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListStepsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMRRequest.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11#include <aws/elasticmapreduce/model/StepState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EMR {
17namespace Model {
18
25 public:
26 AWS_EMR_API ListStepsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListSteps"; }
33
34 AWS_EMR_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetClusterId() const { return m_clusterId; }
43 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
44 template <typename ClusterIdT = Aws::String>
45 void SetClusterId(ClusterIdT&& value) {
46 m_clusterIdHasBeenSet = true;
47 m_clusterId = std::forward<ClusterIdT>(value);
48 }
49 template <typename ClusterIdT = Aws::String>
50 ListStepsRequest& WithClusterId(ClusterIdT&& value) {
51 SetClusterId(std::forward<ClusterIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<StepState>& GetStepStates() const { return m_stepStates; }
61 inline bool StepStatesHasBeenSet() const { return m_stepStatesHasBeenSet; }
62 template <typename StepStatesT = Aws::Vector<StepState>>
63 void SetStepStates(StepStatesT&& value) {
64 m_stepStatesHasBeenSet = true;
65 m_stepStates = std::forward<StepStatesT>(value);
66 }
67 template <typename StepStatesT = Aws::Vector<StepState>>
68 ListStepsRequest& WithStepStates(StepStatesT&& value) {
69 SetStepStates(std::forward<StepStatesT>(value));
70 return *this;
71 }
73 m_stepStatesHasBeenSet = true;
74 m_stepStates.push_back(value);
75 return *this;
76 }
78
80
85 inline const Aws::Vector<Aws::String>& GetStepIds() const { return m_stepIds; }
86 inline bool StepIdsHasBeenSet() const { return m_stepIdsHasBeenSet; }
87 template <typename StepIdsT = Aws::Vector<Aws::String>>
88 void SetStepIds(StepIdsT&& value) {
89 m_stepIdsHasBeenSet = true;
90 m_stepIds = std::forward<StepIdsT>(value);
91 }
92 template <typename StepIdsT = Aws::Vector<Aws::String>>
93 ListStepsRequest& WithStepIds(StepIdsT&& value) {
94 SetStepIds(std::forward<StepIdsT>(value));
95 return *this;
96 }
97 template <typename StepIdsT = Aws::String>
98 ListStepsRequest& AddStepIds(StepIdsT&& value) {
99 m_stepIdsHasBeenSet = true;
100 m_stepIds.emplace_back(std::forward<StepIdsT>(value));
101 return *this;
102 }
104
106
113 inline const Aws::String& GetMarker() const { return m_marker; }
114 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
115 template <typename MarkerT = Aws::String>
116 void SetMarker(MarkerT&& value) {
117 m_markerHasBeenSet = true;
118 m_marker = std::forward<MarkerT>(value);
119 }
120 template <typename MarkerT = Aws::String>
121 ListStepsRequest& WithMarker(MarkerT&& value) {
122 SetMarker(std::forward<MarkerT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_clusterId;
128
129 Aws::Vector<StepState> m_stepStates;
130
131 Aws::Vector<Aws::String> m_stepIds;
132
133 Aws::String m_marker;
134 bool m_clusterIdHasBeenSet = false;
135 bool m_stepStatesHasBeenSet = false;
136 bool m_stepIdsHasBeenSet = false;
137 bool m_markerHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace EMR
142} // namespace Aws
ListStepsRequest & WithMarker(MarkerT &&value)
AWS_EMR_API ListStepsRequest()=default
ListStepsRequest & WithStepIds(StepIdsT &&value)
const Aws::String & GetMarker() const
const Aws::String & GetClusterId() const
AWS_EMR_API Aws::String SerializePayload() const override
void SetStepIds(StepIdsT &&value)
ListStepsRequest & AddStepStates(StepState value)
void SetStepStates(StepStatesT &&value)
const Aws::Vector< Aws::String > & GetStepIds() const
ListStepsRequest & WithClusterId(ClusterIdT &&value)
const Aws::Vector< StepState > & GetStepStates() const
ListStepsRequest & WithStepStates(StepStatesT &&value)
void SetClusterId(ClusterIdT &&value)
ListStepsRequest & AddStepIds(StepIdsT &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() 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