AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AddJobFlowStepsRequest.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/StepConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EMR {
17namespace Model {
18
26 public:
27 AWS_EMR_API AddJobFlowStepsRequest() = 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 "AddJobFlowSteps"; }
34
35 AWS_EMR_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetJobFlowId() const { return m_jobFlowId; }
45 inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
46 template <typename JobFlowIdT = Aws::String>
47 void SetJobFlowId(JobFlowIdT&& value) {
48 m_jobFlowIdHasBeenSet = true;
49 m_jobFlowId = std::forward<JobFlowIdT>(value);
50 }
51 template <typename JobFlowIdT = Aws::String>
53 SetJobFlowId(std::forward<JobFlowIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<StepConfig>& GetSteps() const { return m_steps; }
63 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
64 template <typename StepsT = Aws::Vector<StepConfig>>
65 void SetSteps(StepsT&& value) {
66 m_stepsHasBeenSet = true;
67 m_steps = std::forward<StepsT>(value);
68 }
69 template <typename StepsT = Aws::Vector<StepConfig>>
71 SetSteps(std::forward<StepsT>(value));
72 return *this;
73 }
74 template <typename StepsT = StepConfig>
76 m_stepsHasBeenSet = true;
77 m_steps.emplace_back(std::forward<StepsT>(value));
78 return *this;
79 }
81
83
91 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
92 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
93 template <typename ExecutionRoleArnT = Aws::String>
94 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
95 m_executionRoleArnHasBeenSet = true;
96 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
97 }
98 template <typename ExecutionRoleArnT = Aws::String>
99 AddJobFlowStepsRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
100 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_jobFlowId;
106
108
109 Aws::String m_executionRoleArn;
110 bool m_jobFlowIdHasBeenSet = false;
111 bool m_stepsHasBeenSet = false;
112 bool m_executionRoleArnHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace EMR
117} // 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