AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
51 inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); }
52 inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
53 inline AddJobFlowStepsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
54 inline AddJobFlowStepsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;}
55 inline AddJobFlowStepsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
57
59
62 inline const Aws::Vector<StepConfig>& GetSteps() const{ return m_steps; }
63 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
64 inline void SetSteps(const Aws::Vector<StepConfig>& value) { m_stepsHasBeenSet = true; m_steps = value; }
65 inline void SetSteps(Aws::Vector<StepConfig>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
66 inline AddJobFlowStepsRequest& WithSteps(const Aws::Vector<StepConfig>& value) { SetSteps(value); return *this;}
67 inline AddJobFlowStepsRequest& WithSteps(Aws::Vector<StepConfig>&& value) { SetSteps(std::move(value)); return *this;}
68 inline AddJobFlowStepsRequest& AddSteps(const StepConfig& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
69 inline AddJobFlowStepsRequest& AddSteps(StepConfig&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; }
71
73
81 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
82 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
83 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
84 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
85 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
86 inline AddJobFlowStepsRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
87 inline AddJobFlowStepsRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
88 inline AddJobFlowStepsRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
90 private:
91
92 Aws::String m_jobFlowId;
93 bool m_jobFlowIdHasBeenSet = false;
94
96 bool m_stepsHasBeenSet = false;
97
98 Aws::String m_executionRoleArn;
99 bool m_executionRoleArnHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace EMR
104} // namespace Aws
AddJobFlowStepsRequest & AddSteps(StepConfig &&value)
void SetSteps(const Aws::Vector< StepConfig > &value)
AddJobFlowStepsRequest & AddSteps(const StepConfig &value)
AddJobFlowStepsRequest & WithExecutionRoleArn(Aws::String &&value)
void SetExecutionRoleArn(const Aws::String &value)
void SetSteps(Aws::Vector< StepConfig > &&value)
AWS_EMR_API Aws::String SerializePayload() const override
AddJobFlowStepsRequest & WithJobFlowId(const char *value)
AddJobFlowStepsRequest & WithExecutionRoleArn(const Aws::String &value)
const Aws::Vector< StepConfig > & GetSteps() const
AddJobFlowStepsRequest & WithJobFlowId(const Aws::String &value)
AddJobFlowStepsRequest & WithSteps(const Aws::Vector< StepConfig > &value)
AddJobFlowStepsRequest & WithSteps(Aws::Vector< StepConfig > &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddJobFlowStepsRequest & WithJobFlowId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AddJobFlowStepsRequest & WithExecutionRoleArn(const char *value)
const Aws::String & GetExecutionRoleArn() const
void SetJobFlowId(const 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