AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CancelStepsRequest.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/StepCancellationOption.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EMR {
17namespace Model {
18
26 public:
27 AWS_EMR_API CancelStepsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CancelSteps"; }
34
35 AWS_EMR_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetClusterId() const { return m_clusterId; }
45 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
46 template <typename ClusterIdT = Aws::String>
47 void SetClusterId(ClusterIdT&& value) {
48 m_clusterIdHasBeenSet = true;
49 m_clusterId = std::forward<ClusterIdT>(value);
50 }
51 template <typename ClusterIdT = Aws::String>
52 CancelStepsRequest& WithClusterId(ClusterIdT&& value) {
53 SetClusterId(std::forward<ClusterIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<Aws::String>& GetStepIds() const { return m_stepIds; }
64 inline bool StepIdsHasBeenSet() const { return m_stepIdsHasBeenSet; }
65 template <typename StepIdsT = Aws::Vector<Aws::String>>
66 void SetStepIds(StepIdsT&& value) {
67 m_stepIdsHasBeenSet = true;
68 m_stepIds = std::forward<StepIdsT>(value);
69 }
70 template <typename StepIdsT = Aws::Vector<Aws::String>>
71 CancelStepsRequest& WithStepIds(StepIdsT&& value) {
72 SetStepIds(std::forward<StepIdsT>(value));
73 return *this;
74 }
75 template <typename StepIdsT = Aws::String>
76 CancelStepsRequest& AddStepIds(StepIdsT&& value) {
77 m_stepIdsHasBeenSet = true;
78 m_stepIds.emplace_back(std::forward<StepIdsT>(value));
79 return *this;
80 }
82
84
88 inline StepCancellationOption GetStepCancellationOption() const { return m_stepCancellationOption; }
89 inline bool StepCancellationOptionHasBeenSet() const { return m_stepCancellationOptionHasBeenSet; }
91 m_stepCancellationOptionHasBeenSet = true;
92 m_stepCancellationOption = value;
93 }
96 return *this;
97 }
99 private:
100 Aws::String m_clusterId;
101
102 Aws::Vector<Aws::String> m_stepIds;
103
105 bool m_clusterIdHasBeenSet = false;
106 bool m_stepIdsHasBeenSet = false;
107 bool m_stepCancellationOptionHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace EMR
112} // 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