AWS SDK for C++  0.14.3
AWS SDK for C++
AddJobFlowStepsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace EMR
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
45 
50  inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
51 
56  inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
57 
62  inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
63 
68  inline AddJobFlowStepsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
69 
74  inline AddJobFlowStepsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(value); return *this;}
75 
80  inline AddJobFlowStepsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
81 
85  inline const Aws::Vector<StepConfig>& GetSteps() const{ return m_steps; }
86 
90  inline void SetSteps(const Aws::Vector<StepConfig>& value) { m_stepsHasBeenSet = true; m_steps = value; }
91 
95  inline void SetSteps(Aws::Vector<StepConfig>&& value) { m_stepsHasBeenSet = true; m_steps = value; }
96 
100  inline AddJobFlowStepsRequest& WithSteps(const Aws::Vector<StepConfig>& value) { SetSteps(value); return *this;}
101 
105  inline AddJobFlowStepsRequest& WithSteps(Aws::Vector<StepConfig>&& value) { SetSteps(value); return *this;}
106 
110  inline AddJobFlowStepsRequest& AddSteps(const StepConfig& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
111 
115  inline AddJobFlowStepsRequest& AddSteps(StepConfig&& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
116 
117  private:
118  Aws::String m_jobFlowId;
119  bool m_jobFlowIdHasBeenSet;
120  Aws::Vector<StepConfig> m_steps;
121  bool m_stepsHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EMR
126 } // namespace Aws
AddJobFlowStepsRequest & AddSteps(const StepConfig &value)
AddJobFlowStepsRequest & WithJobFlowId(Aws::String &&value)
AddJobFlowStepsRequest & WithSteps(Aws::Vector< StepConfig > &&value)
void SetSteps(const Aws::Vector< StepConfig > &value)
AddJobFlowStepsRequest & AddSteps(StepConfig &&value)
AddJobFlowStepsRequest & WithJobFlowId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AddJobFlowStepsRequest & WithSteps(const Aws::Vector< StepConfig > &value)
void SetSteps(Aws::Vector< StepConfig > &&value)
const Aws::Vector< StepConfig > & GetSteps() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddJobFlowStepsRequest & WithJobFlowId(const char *value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
void SetJobFlowId(const Aws::String &value)
JSON (JavaScript Object Notation).