AWS SDK for C++  0.12.9
AWS SDK for C++
StepConfig.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace EMR
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  StepConfig();
42  StepConfig(const Aws::Utils::Json::JsonValue& jsonValue);
43  StepConfig& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline StepConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline StepConfig& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline StepConfig& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const ActionOnFailure& GetActionOnFailure() const{ return m_actionOnFailure; }
85 
89  inline void SetActionOnFailure(const ActionOnFailure& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
90 
94  inline void SetActionOnFailure(ActionOnFailure&& value) { m_actionOnFailureHasBeenSet = true; m_actionOnFailure = value; }
95 
99  inline StepConfig& WithActionOnFailure(const ActionOnFailure& value) { SetActionOnFailure(value); return *this;}
100 
104  inline StepConfig& WithActionOnFailure(ActionOnFailure&& value) { SetActionOnFailure(value); return *this;}
105 
109  inline const HadoopJarStepConfig& GetHadoopJarStep() const{ return m_hadoopJarStep; }
110 
114  inline void SetHadoopJarStep(const HadoopJarStepConfig& value) { m_hadoopJarStepHasBeenSet = true; m_hadoopJarStep = value; }
115 
119  inline void SetHadoopJarStep(HadoopJarStepConfig&& value) { m_hadoopJarStepHasBeenSet = true; m_hadoopJarStep = value; }
120 
124  inline StepConfig& WithHadoopJarStep(const HadoopJarStepConfig& value) { SetHadoopJarStep(value); return *this;}
125 
129  inline StepConfig& WithHadoopJarStep(HadoopJarStepConfig&& value) { SetHadoopJarStep(value); return *this;}
130 
131  private:
132  Aws::String m_name;
133  bool m_nameHasBeenSet;
134  ActionOnFailure m_actionOnFailure;
135  bool m_actionOnFailureHasBeenSet;
136  HadoopJarStepConfig m_hadoopJarStep;
137  bool m_hadoopJarStepHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace EMR
142 } // namespace Aws
StepConfig & WithName(const Aws::String &value)
Definition: StepConfig.h:69
void SetName(Aws::String &&value)
Definition: StepConfig.h:59
StepConfig & WithHadoopJarStep(const HadoopJarStepConfig &value)
Definition: StepConfig.h:124
void SetHadoopJarStep(HadoopJarStepConfig &&value)
Definition: StepConfig.h:119
void SetActionOnFailure(const ActionOnFailure &value)
Definition: StepConfig.h:89
StepConfig & WithActionOnFailure(const ActionOnFailure &value)
Definition: StepConfig.h:99
void SetName(const char *value)
Definition: StepConfig.h:64
const HadoopJarStepConfig & GetHadoopJarStep() const
Definition: StepConfig.h:109
StepConfig & WithName(const char *value)
Definition: StepConfig.h:79
void SetActionOnFailure(ActionOnFailure &&value)
Definition: StepConfig.h:94
StepConfig & WithHadoopJarStep(HadoopJarStepConfig &&value)
Definition: StepConfig.h:129
StepConfig & WithName(Aws::String &&value)
Definition: StepConfig.h:74
void SetName(const Aws::String &value)
Definition: StepConfig.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetName() const
Definition: StepConfig.h:49
void SetHadoopJarStep(const HadoopJarStepConfig &value)
Definition: StepConfig.h:114
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
const ActionOnFailure & GetActionOnFailure() const
Definition: StepConfig.h:84
StepConfig & WithActionOnFailure(ActionOnFailure &&value)
Definition: StepConfig.h:104
JSON (JavaScript Object Notation).