AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CancelStepsRequest.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/StepCancellationOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EMR
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_EMR_API CancelStepsRequest() = default;
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_EMR_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetClusterId() const { return m_clusterId; }
49 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
50 template<typename ClusterIdT = Aws::String>
51 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
52 template<typename ClusterIdT = Aws::String>
53 CancelStepsRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetStepIds() const { return m_stepIds; }
62 inline bool StepIdsHasBeenSet() const { return m_stepIdsHasBeenSet; }
63 template<typename StepIdsT = Aws::Vector<Aws::String>>
64 void SetStepIds(StepIdsT&& value) { m_stepIdsHasBeenSet = true; m_stepIds = std::forward<StepIdsT>(value); }
65 template<typename StepIdsT = Aws::Vector<Aws::String>>
66 CancelStepsRequest& WithStepIds(StepIdsT&& value) { SetStepIds(std::forward<StepIdsT>(value)); return *this;}
67 template<typename StepIdsT = Aws::String>
68 CancelStepsRequest& AddStepIds(StepIdsT&& value) { m_stepIdsHasBeenSet = true; m_stepIds.emplace_back(std::forward<StepIdsT>(value)); return *this; }
70
72
76 inline StepCancellationOption GetStepCancellationOption() const { return m_stepCancellationOption; }
77 inline bool StepCancellationOptionHasBeenSet() const { return m_stepCancellationOptionHasBeenSet; }
78 inline void SetStepCancellationOption(StepCancellationOption value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = value; }
81 private:
82
83 Aws::String m_clusterId;
84 bool m_clusterIdHasBeenSet = false;
85
87 bool m_stepIdsHasBeenSet = false;
88
90 bool m_stepCancellationOptionHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EMR
95} // namespace Aws
CancelStepsRequest & WithStepIds(StepIdsT &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EMR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
StepCancellationOption GetStepCancellationOption() const
void SetClusterId(ClusterIdT &&value)
CancelStepsRequest & AddStepIds(StepIdsT &&value)
const Aws::Vector< Aws::String > & GetStepIds() const
CancelStepsRequest & WithStepCancellationOption(StepCancellationOption value)
CancelStepsRequest & WithClusterId(ClusterIdT &&value)
AWS_EMR_API CancelStepsRequest()=default
const Aws::String & GetClusterId() const
void SetStepCancellationOption(StepCancellationOption 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