AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddJobFlowStepsRequest.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/StepConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EMR
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_EMR_API AddJobFlowStepsRequest() = 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 "AddJobFlowSteps"; }
37
38 AWS_EMR_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetJobFlowId() const { return m_jobFlowId; }
49 inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
50 template<typename JobFlowIdT = Aws::String>
51 void SetJobFlowId(JobFlowIdT&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::forward<JobFlowIdT>(value); }
52 template<typename JobFlowIdT = Aws::String>
53 AddJobFlowStepsRequest& WithJobFlowId(JobFlowIdT&& value) { SetJobFlowId(std::forward<JobFlowIdT>(value)); return *this;}
55
57
60 inline const Aws::Vector<StepConfig>& GetSteps() const { return m_steps; }
61 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
62 template<typename StepsT = Aws::Vector<StepConfig>>
63 void SetSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps = std::forward<StepsT>(value); }
64 template<typename StepsT = Aws::Vector<StepConfig>>
65 AddJobFlowStepsRequest& WithSteps(StepsT&& value) { SetSteps(std::forward<StepsT>(value)); return *this;}
66 template<typename StepsT = StepConfig>
67 AddJobFlowStepsRequest& AddSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps.emplace_back(std::forward<StepsT>(value)); return *this; }
69
71
79 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
80 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
81 template<typename ExecutionRoleArnT = Aws::String>
82 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
83 template<typename ExecutionRoleArnT = Aws::String>
84 AddJobFlowStepsRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
86 private:
87
88 Aws::String m_jobFlowId;
89 bool m_jobFlowIdHasBeenSet = false;
90
92 bool m_stepsHasBeenSet = false;
93
94 Aws::String m_executionRoleArn;
95 bool m_executionRoleArnHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EMR
100} // namespace Aws
AddJobFlowStepsRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_EMR_API Aws::String SerializePayload() const override
const Aws::Vector< StepConfig > & GetSteps() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_EMR_API AddJobFlowStepsRequest()=default
AddJobFlowStepsRequest & WithJobFlowId(JobFlowIdT &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AddJobFlowStepsRequest & AddSteps(StepsT &&value)
const Aws::String & GetExecutionRoleArn() const
AddJobFlowStepsRequest & WithSteps(StepsT &&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