AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
51 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
52 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
53 inline CancelStepsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
54 inline CancelStepsRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
55 inline CancelStepsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetStepIds() const{ return m_stepIds; }
64 inline bool StepIdsHasBeenSet() const { return m_stepIdsHasBeenSet; }
65 inline void SetStepIds(const Aws::Vector<Aws::String>& value) { m_stepIdsHasBeenSet = true; m_stepIds = value; }
66 inline void SetStepIds(Aws::Vector<Aws::String>&& value) { m_stepIdsHasBeenSet = true; m_stepIds = std::move(value); }
67 inline CancelStepsRequest& WithStepIds(const Aws::Vector<Aws::String>& value) { SetStepIds(value); return *this;}
68 inline CancelStepsRequest& WithStepIds(Aws::Vector<Aws::String>&& value) { SetStepIds(std::move(value)); return *this;}
69 inline CancelStepsRequest& AddStepIds(const Aws::String& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
70 inline CancelStepsRequest& AddStepIds(Aws::String&& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(std::move(value)); return *this; }
71 inline CancelStepsRequest& AddStepIds(const char* value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; }
73
75
79 inline const StepCancellationOption& GetStepCancellationOption() const{ return m_stepCancellationOption; }
80 inline bool StepCancellationOptionHasBeenSet() const { return m_stepCancellationOptionHasBeenSet; }
81 inline void SetStepCancellationOption(const StepCancellationOption& value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = value; }
82 inline void SetStepCancellationOption(StepCancellationOption&& value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = std::move(value); }
86 private:
87
88 Aws::String m_clusterId;
89 bool m_clusterIdHasBeenSet = false;
90
92 bool m_stepIdsHasBeenSet = false;
93
94 StepCancellationOption m_stepCancellationOption;
95 bool m_stepCancellationOptionHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EMR
100} // namespace Aws
void SetStepIds(Aws::Vector< Aws::String > &&value)
CancelStepsRequest & AddStepIds(const Aws::String &value)
CancelStepsRequest & WithClusterId(Aws::String &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const StepCancellationOption & GetStepCancellationOption() const
AWS_EMR_API Aws::String SerializePayload() const override
void SetStepCancellationOption(StepCancellationOption &&value)
void SetStepIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CancelStepsRequest & AddStepIds(Aws::String &&value)
CancelStepsRequest & WithStepIds(const Aws::Vector< Aws::String > &value)
CancelStepsRequest & WithClusterId(const Aws::String &value)
CancelStepsRequest & WithStepIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetStepIds() const
CancelStepsRequest & WithStepCancellationOption(const StepCancellationOption &value)
void SetStepCancellationOption(const StepCancellationOption &value)
void SetClusterId(const Aws::String &value)
const Aws::String & GetClusterId() const
CancelStepsRequest & WithStepCancellationOption(StepCancellationOption &&value)
CancelStepsRequest & WithClusterId(const char *value)
CancelStepsRequest & AddStepIds(const char *value)
void SetClusterId(Aws::String &&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