AWS SDK for C++  0.12.9
AWS SDK for C++
Step.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 Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace EMR
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  Step();
43  Step(const Aws::Utils::Json::JsonValue& jsonValue);
44  Step& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline Step& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline Step& WithId(Aws::String&& value) { SetId(value); return *this;}
76 
80  inline Step& WithId(const char* value) { SetId(value); return *this;}
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 
95  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 
105  inline Step& WithName(const Aws::String& value) { SetName(value); return *this;}
106 
110  inline Step& WithName(Aws::String&& value) { SetName(value); return *this;}
111 
115  inline Step& WithName(const char* value) { SetName(value); return *this;}
116 
120  inline const HadoopStepConfig& GetConfig() const{ return m_config; }
121 
125  inline void SetConfig(const HadoopStepConfig& value) { m_configHasBeenSet = true; m_config = value; }
126 
130  inline void SetConfig(HadoopStepConfig&& value) { m_configHasBeenSet = true; m_config = value; }
131 
135  inline Step& WithConfig(const HadoopStepConfig& value) { SetConfig(value); return *this;}
136 
140  inline Step& WithConfig(HadoopStepConfig&& value) { SetConfig(value); return *this;}
141 
146  inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
147 
152  inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
153 
158  inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
159 
164  inline Step& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
165 
170  inline Step& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(value); return *this;}
171 
175  inline const StepStatus& GetStatus() const{ return m_status; }
176 
180  inline void SetStatus(const StepStatus& value) { m_statusHasBeenSet = true; m_status = value; }
181 
185  inline void SetStatus(StepStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
186 
190  inline Step& WithStatus(const StepStatus& value) { SetStatus(value); return *this;}
191 
195  inline Step& WithStatus(StepStatus&& value) { SetStatus(value); return *this;}
196 
197  private:
198  Aws::String m_id;
199  bool m_idHasBeenSet;
200  Aws::String m_name;
201  bool m_nameHasBeenSet;
202  HadoopStepConfig m_config;
203  bool m_configHasBeenSet;
204  ActionOnFailure m_actionOnFailure;
205  bool m_actionOnFailureHasBeenSet;
206  StepStatus m_status;
207  bool m_statusHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace EMR
212 } // namespace Aws
void SetConfig(const HadoopStepConfig &value)
Definition: Step.h:125
void SetName(Aws::String &&value)
Definition: Step.h:95
Step & WithId(const Aws::String &value)
Definition: Step.h:70
Step & WithName(Aws::String &&value)
Definition: Step.h:110
Step & WithConfig(HadoopStepConfig &&value)
Definition: Step.h:140
void SetConfig(HadoopStepConfig &&value)
Definition: Step.h:130
Step & WithId(const char *value)
Definition: Step.h:80
void SetStatus(const StepStatus &value)
Definition: Step.h:180
Step & WithStatus(StepStatus &&value)
Definition: Step.h:195
const ActionOnFailure & GetActionOnFailure() const
Definition: Step.h:146
void SetId(const char *value)
Definition: Step.h:65
const Aws::String & GetName() const
Definition: Step.h:85
Step & WithConfig(const HadoopStepConfig &value)
Definition: Step.h:135
const Aws::String & GetId() const
Definition: Step.h:50
Step & WithActionOnFailure(ActionOnFailure &&value)
Definition: Step.h:170
const HadoopStepConfig & GetConfig() const
Definition: Step.h:120
void SetActionOnFailure(const ActionOnFailure &value)
Definition: Step.h:152
Step & WithName(const Aws::String &value)
Definition: Step.h:105
Step & WithStatus(const StepStatus &value)
Definition: Step.h:190
void SetName(const Aws::String &value)
Definition: Step.h:90
Step & WithName(const char *value)
Definition: Step.h:115
void SetStatus(StepStatus &&value)
Definition: Step.h:185
Step & WithActionOnFailure(const ActionOnFailure &value)
Definition: Step.h:164
const StepStatus & GetStatus() const
Definition: Step.h:175
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetActionOnFailure(ActionOnFailure &&value)
Definition: Step.h:158
void SetName(const char *value)
Definition: Step.h:100
Step & WithId(Aws::String &&value)
Definition: Step.h:75
void SetId(Aws::String &&value)
Definition: Step.h:60
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
JSON (JavaScript Object Notation).
void SetId(const Aws::String &value)
Definition: Step.h:55