AWS SDK for C++  1.9.19
AWS SDK for C++
AddJobFlowStepsRequest.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 "AddJobFlowSteps"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
48 
53  inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
54 
59  inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
60 
65  inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); }
66 
71  inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
72 
77  inline AddJobFlowStepsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
78 
83  inline AddJobFlowStepsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;}
84 
89  inline AddJobFlowStepsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
90 
91 
95  inline const Aws::Vector<StepConfig>& GetSteps() const{ return m_steps; }
96 
100  inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
101 
105  inline void SetSteps(const Aws::Vector<StepConfig>& value) { m_stepsHasBeenSet = true; m_steps = value; }
106 
110  inline void SetSteps(Aws::Vector<StepConfig>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
111 
115  inline AddJobFlowStepsRequest& WithSteps(const Aws::Vector<StepConfig>& value) { SetSteps(value); return *this;}
116 
120  inline AddJobFlowStepsRequest& WithSteps(Aws::Vector<StepConfig>&& value) { SetSteps(std::move(value)); return *this;}
121 
125  inline AddJobFlowStepsRequest& AddSteps(const StepConfig& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
126 
130  inline AddJobFlowStepsRequest& AddSteps(StepConfig&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; }
131 
132  private:
133 
134  Aws::String m_jobFlowId;
135  bool m_jobFlowIdHasBeenSet;
136 
137  Aws::Vector<StepConfig> m_steps;
138  bool m_stepsHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace EMR
143 } // namespace Aws
Aws::EMR::Model::AddJobFlowStepsRequest::WithJobFlowId
AddJobFlowStepsRequest & WithJobFlowId(const Aws::String &value)
Definition: AddJobFlowStepsRequest.h:77
StepConfig.h
Aws::EMR::Model::AddJobFlowStepsRequest::SetSteps
void SetSteps(const Aws::Vector< StepConfig > &value)
Definition: AddJobFlowStepsRequest.h:105
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::AddJobFlowStepsRequest::WithSteps
AddJobFlowStepsRequest & WithSteps(Aws::Vector< StepConfig > &&value)
Definition: AddJobFlowStepsRequest.h:120
Aws::EMR::Model::AddJobFlowStepsRequest::SetJobFlowId
void SetJobFlowId(const char *value)
Definition: AddJobFlowStepsRequest.h:71
Aws::EMR::Model::AddJobFlowStepsRequest::WithJobFlowId
AddJobFlowStepsRequest & WithJobFlowId(Aws::String &&value)
Definition: AddJobFlowStepsRequest.h:83
Aws::EMR::Model::AddJobFlowStepsRequest::AddSteps
AddJobFlowStepsRequest & AddSteps(StepConfig &&value)
Definition: AddJobFlowStepsRequest.h:130
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::AddJobFlowStepsRequest::SetJobFlowId
void SetJobFlowId(const Aws::String &value)
Definition: AddJobFlowStepsRequest.h:59
AWSVector.h
Aws::EMR::Model::StepConfig
Definition: StepConfig.h:34
Aws::EMR::Model::AddJobFlowStepsRequest::JobFlowIdHasBeenSet
bool JobFlowIdHasBeenSet() const
Definition: AddJobFlowStepsRequest.h:53
Aws::EMR::Model::AddJobFlowStepsRequest::AddSteps
AddJobFlowStepsRequest & AddSteps(const StepConfig &value)
Definition: AddJobFlowStepsRequest.h:125
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::AddJobFlowStepsRequest::SetSteps
void SetSteps(Aws::Vector< StepConfig > &&value)
Definition: AddJobFlowStepsRequest.h:110
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::AddJobFlowStepsRequest::GetJobFlowId
const Aws::String & GetJobFlowId() const
Definition: AddJobFlowStepsRequest.h:47
AWSString.h
Aws::EMR::Model::AddJobFlowStepsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddJobFlowStepsRequest.h:36
Aws::EMR::Model::AddJobFlowStepsRequest::StepsHasBeenSet
bool StepsHasBeenSet() const
Definition: AddJobFlowStepsRequest.h:100
Aws::EMR::Model::AddJobFlowStepsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::AddJobFlowStepsRequest::AddJobFlowStepsRequest
AddJobFlowStepsRequest()
Aws::EMR::Model::AddJobFlowStepsRequest::SetJobFlowId
void SetJobFlowId(Aws::String &&value)
Definition: AddJobFlowStepsRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::AddJobFlowStepsRequest::GetSteps
const Aws::Vector< StepConfig > & GetSteps() const
Definition: AddJobFlowStepsRequest.h:95
Aws::EMR::Model::AddJobFlowStepsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::AddJobFlowStepsRequest::WithJobFlowId
AddJobFlowStepsRequest & WithJobFlowId(const char *value)
Definition: AddJobFlowStepsRequest.h:89
Aws::EMR::Model::AddJobFlowStepsRequest::WithSteps
AddJobFlowStepsRequest & WithSteps(const Aws::Vector< StepConfig > &value)
Definition: AddJobFlowStepsRequest.h:115
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::AddJobFlowStepsRequest
Definition: AddJobFlowStepsRequest.h:28