AWS SDK for C++  1.9.20
AWS SDK for C++
CancelStepsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EMR
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CancelSteps"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
48 
53  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
54 
59  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
60 
65  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
66 
71  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
72 
77  inline CancelStepsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
78 
83  inline CancelStepsRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
84 
89  inline CancelStepsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
90 
91 
96  inline const Aws::Vector<Aws::String>& GetStepIds() const{ return m_stepIds; }
97 
102  inline bool StepIdsHasBeenSet() const { return m_stepIdsHasBeenSet; }
103 
108  inline void SetStepIds(const Aws::Vector<Aws::String>& value) { m_stepIdsHasBeenSet = true; m_stepIds = value; }
109 
114  inline void SetStepIds(Aws::Vector<Aws::String>&& value) { m_stepIdsHasBeenSet = true; m_stepIds = std::move(value); }
115 
120  inline CancelStepsRequest& WithStepIds(const Aws::Vector<Aws::String>& value) { SetStepIds(value); return *this;}
121 
126  inline CancelStepsRequest& WithStepIds(Aws::Vector<Aws::String>&& value) { SetStepIds(std::move(value)); return *this;}
127 
132  inline CancelStepsRequest& AddStepIds(const Aws::String& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
133 
138  inline CancelStepsRequest& AddStepIds(Aws::String&& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(std::move(value)); return *this; }
139 
144  inline CancelStepsRequest& AddStepIds(const char* value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
145 
146 
151  inline const StepCancellationOption& GetStepCancellationOption() const{ return m_stepCancellationOption; }
152 
157  inline bool StepCancellationOptionHasBeenSet() const { return m_stepCancellationOptionHasBeenSet; }
158 
163  inline void SetStepCancellationOption(const StepCancellationOption& value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = value; }
164 
169  inline void SetStepCancellationOption(StepCancellationOption&& value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = std::move(value); }
170 
175  inline CancelStepsRequest& WithStepCancellationOption(const StepCancellationOption& value) { SetStepCancellationOption(value); return *this;}
176 
181  inline CancelStepsRequest& WithStepCancellationOption(StepCancellationOption&& value) { SetStepCancellationOption(std::move(value)); return *this;}
182 
183  private:
184 
185  Aws::String m_clusterId;
186  bool m_clusterIdHasBeenSet;
187 
188  Aws::Vector<Aws::String> m_stepIds;
189  bool m_stepIdsHasBeenSet;
190 
191  StepCancellationOption m_stepCancellationOption;
192  bool m_stepCancellationOptionHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace EMR
197 } // namespace Aws
Aws::EMR::Model::CancelStepsRequest::GetStepCancellationOption
const StepCancellationOption & GetStepCancellationOption() const
Definition: CancelStepsRequest.h:151
Aws::EMR::Model::CancelStepsRequest::SetClusterId
void SetClusterId(const char *value)
Definition: CancelStepsRequest.h:71
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::CancelStepsRequest::GetStepIds
const Aws::Vector< Aws::String > & GetStepIds() const
Definition: CancelStepsRequest.h:96
Aws::EMR::Model::CancelStepsRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: CancelStepsRequest.h:53
EMR_EXPORTS.h
Aws::EMR::Model::CancelStepsRequest::WithStepIds
CancelStepsRequest & WithStepIds(const Aws::Vector< Aws::String > &value)
Definition: CancelStepsRequest.h:120
EMRRequest.h
Aws::EMR::Model::CancelStepsRequest::WithStepIds
CancelStepsRequest & WithStepIds(Aws::Vector< Aws::String > &&value)
Definition: CancelStepsRequest.h:126
Aws::EMR::Model::CancelStepsRequest::AddStepIds
CancelStepsRequest & AddStepIds(Aws::String &&value)
Definition: CancelStepsRequest.h:138
Aws::EMR::Model::StepCancellationOption
StepCancellationOption
Definition: StepCancellationOption.h:17
Aws::EMR::Model::CancelStepsRequest::AddStepIds
CancelStepsRequest & AddStepIds(const char *value)
Definition: CancelStepsRequest.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::CancelStepsRequest::SetStepIds
void SetStepIds(Aws::Vector< Aws::String > &&value)
Definition: CancelStepsRequest.h:114
Aws::EMR::Model::CancelStepsRequest::SetStepCancellationOption
void SetStepCancellationOption(const StepCancellationOption &value)
Definition: CancelStepsRequest.h:163
Aws::EMR::Model::CancelStepsRequest::WithStepCancellationOption
CancelStepsRequest & WithStepCancellationOption(const StepCancellationOption &value)
Definition: CancelStepsRequest.h:175
AWSVector.h
Aws::EMR::Model::CancelStepsRequest
Definition: CancelStepsRequest.h:28
Aws::EMR::Model::CancelStepsRequest::WithClusterId
CancelStepsRequest & WithClusterId(const Aws::String &value)
Definition: CancelStepsRequest.h:77
Aws::EMR::Model::CancelStepsRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: CancelStepsRequest.h:59
Aws::EMR::Model::CancelStepsRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: CancelStepsRequest.h:65
Aws::EMR::Model::CancelStepsRequest::SetStepCancellationOption
void SetStepCancellationOption(StepCancellationOption &&value)
Definition: CancelStepsRequest.h:169
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::CancelStepsRequest::WithStepCancellationOption
CancelStepsRequest & WithStepCancellationOption(StepCancellationOption &&value)
Definition: CancelStepsRequest.h:181
Aws::EMR::Model::CancelStepsRequest::CancelStepsRequest
CancelStepsRequest()
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::CancelStepsRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: CancelStepsRequest.h:47
AWSString.h
Aws::EMR::Model::CancelStepsRequest::StepCancellationOptionHasBeenSet
bool StepCancellationOptionHasBeenSet() const
Definition: CancelStepsRequest.h:157
Aws::EMR::Model::CancelStepsRequest::AddStepIds
CancelStepsRequest & AddStepIds(const Aws::String &value)
Definition: CancelStepsRequest.h:132
Aws::EMR::Model::CancelStepsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelStepsRequest.h:36
StepCancellationOption.h
Aws::EMR::Model::CancelStepsRequest::StepIdsHasBeenSet
bool StepIdsHasBeenSet() const
Definition: CancelStepsRequest.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::CancelStepsRequest::SetStepIds
void SetStepIds(const Aws::Vector< Aws::String > &value)
Definition: CancelStepsRequest.h:108
Aws::EMR::Model::CancelStepsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::CancelStepsRequest::WithClusterId
CancelStepsRequest & WithClusterId(Aws::String &&value)
Definition: CancelStepsRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::CancelStepsRequest::WithClusterId
CancelStepsRequest & WithClusterId(const char *value)
Definition: CancelStepsRequest.h:89
Aws::EMR::Model::CancelStepsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28