AWS SDK for C++  0.14.3
AWS SDK for C++
ListStepsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace EMR
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
44 
48  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
49 
53  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
54 
58  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
59 
63  inline ListStepsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
64 
68  inline ListStepsRequest& WithClusterId(Aws::String&& value) { SetClusterId(value); return *this;}
69 
73  inline ListStepsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
74 
78  inline const Aws::Vector<StepState>& GetStepStates() const{ return m_stepStates; }
79 
83  inline void SetStepStates(const Aws::Vector<StepState>& value) { m_stepStatesHasBeenSet = true; m_stepStates = value; }
84 
88  inline void SetStepStates(Aws::Vector<StepState>&& value) { m_stepStatesHasBeenSet = true; m_stepStates = value; }
89 
93  inline ListStepsRequest& WithStepStates(const Aws::Vector<StepState>& value) { SetStepStates(value); return *this;}
94 
98  inline ListStepsRequest& WithStepStates(Aws::Vector<StepState>&& value) { SetStepStates(value); return *this;}
99 
103  inline ListStepsRequest& AddStepStates(const StepState& value) { m_stepStatesHasBeenSet = true; m_stepStates.push_back(value); return *this; }
104 
108  inline ListStepsRequest& AddStepStates(StepState&& value) { m_stepStatesHasBeenSet = true; m_stepStates.push_back(value); return *this; }
109 
113  inline const Aws::Vector<Aws::String>& GetStepIds() const{ return m_stepIds; }
114 
118  inline void SetStepIds(const Aws::Vector<Aws::String>& value) { m_stepIdsHasBeenSet = true; m_stepIds = value; }
119 
123  inline void SetStepIds(Aws::Vector<Aws::String>&& value) { m_stepIdsHasBeenSet = true; m_stepIds = value; }
124 
128  inline ListStepsRequest& WithStepIds(const Aws::Vector<Aws::String>& value) { SetStepIds(value); return *this;}
129 
133  inline ListStepsRequest& WithStepIds(Aws::Vector<Aws::String>&& value) { SetStepIds(value); return *this;}
134 
138  inline ListStepsRequest& AddStepIds(const Aws::String& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
139 
143  inline ListStepsRequest& AddStepIds(Aws::String&& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
144 
148  inline ListStepsRequest& AddStepIds(const char* value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
149 
153  inline const Aws::String& GetMarker() const{ return m_marker; }
154 
158  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
159 
163  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
164 
168  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
169 
173  inline ListStepsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
174 
178  inline ListStepsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
179 
183  inline ListStepsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
184 
185  private:
186  Aws::String m_clusterId;
187  bool m_clusterIdHasBeenSet;
188  Aws::Vector<StepState> m_stepStates;
189  bool m_stepStatesHasBeenSet;
190  Aws::Vector<Aws::String> m_stepIds;
191  bool m_stepIdsHasBeenSet;
192  Aws::String m_marker;
193  bool m_markerHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace EMR
198 } // namespace Aws
ListStepsRequest & WithStepStates(Aws::Vector< StepState > &&value)
ListStepsRequest & AddStepStates(const StepState &value)
void SetMarker(Aws::String &&value)
void SetStepStates(Aws::Vector< StepState > &&value)
const Aws::String & GetClusterId() const
ListStepsRequest & WithMarker(Aws::String &&value)
ListStepsRequest & WithMarker(const Aws::String &value)
ListStepsRequest & WithClusterId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetClusterId(const Aws::String &value)
ListStepsRequest & WithMarker(const char *value)
ListStepsRequest & WithStepStates(const Aws::Vector< StepState > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetStepIds(Aws::Vector< Aws::String > &&value)
ListStepsRequest & WithClusterId(Aws::String &&value)
void SetStepIds(const Aws::Vector< Aws::String > &value)
void SetStepStates(const Aws::Vector< StepState > &value)
void SetMarker(const Aws::String &value)
const Aws::Vector< Aws::String > & GetStepIds() const
ListStepsRequest & WithClusterId(const Aws::String &value)
void SetMarker(const char *value)
ListStepsRequest & AddStepStates(StepState &&value)
void SetClusterId(Aws::String &&value)
ListStepsRequest & AddStepIds(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListStepsRequest & WithStepIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetMarker() const
const Aws::Vector< StepState > & GetStepStates() const
ListStepsRequest & AddStepIds(Aws::String &&value)
ListStepsRequest & AddStepIds(const char *value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
ListStepsRequest & WithStepIds(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).
void SetClusterId(const char *value)