/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A job flow step consisting of a JAR file whose main function will be
* executed. The main function submits a job for Hadoop to execute and waits for
* the job to finish or fail.See Also:
AWS
* API Reference
A list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline const Aws::VectorA list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *A list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline void SetProperties(const Aws::VectorA list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline void SetProperties(Aws::VectorA list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline HadoopJarStepConfig& WithProperties(const Aws::VectorA list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline HadoopJarStepConfig& WithProperties(Aws::VectorA list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline HadoopJarStepConfig& AddProperties(const KeyValue& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; } /** *A list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.
*/ inline HadoopJarStepConfig& AddProperties(KeyValue&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; } /** *A path to a JAR file run during the step.
*/ inline const Aws::String& GetJar() const{ return m_jar; } /** *A path to a JAR file run during the step.
*/ inline bool JarHasBeenSet() const { return m_jarHasBeenSet; } /** *A path to a JAR file run during the step.
*/ inline void SetJar(const Aws::String& value) { m_jarHasBeenSet = true; m_jar = value; } /** *A path to a JAR file run during the step.
*/ inline void SetJar(Aws::String&& value) { m_jarHasBeenSet = true; m_jar = std::move(value); } /** *A path to a JAR file run during the step.
*/ inline void SetJar(const char* value) { m_jarHasBeenSet = true; m_jar.assign(value); } /** *A path to a JAR file run during the step.
*/ inline HadoopJarStepConfig& WithJar(const Aws::String& value) { SetJar(value); return *this;} /** *A path to a JAR file run during the step.
*/ inline HadoopJarStepConfig& WithJar(Aws::String&& value) { SetJar(std::move(value)); return *this;} /** *A path to a JAR file run during the step.
*/ inline HadoopJarStepConfig& WithJar(const char* value) { SetJar(value); return *this;} /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline const Aws::String& GetMainClass() const{ return m_mainClass; } /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline bool MainClassHasBeenSet() const { return m_mainClassHasBeenSet; } /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline void SetMainClass(const Aws::String& value) { m_mainClassHasBeenSet = true; m_mainClass = value; } /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline void SetMainClass(Aws::String&& value) { m_mainClassHasBeenSet = true; m_mainClass = std::move(value); } /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline void SetMainClass(const char* value) { m_mainClassHasBeenSet = true; m_mainClass.assign(value); } /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline HadoopJarStepConfig& WithMainClass(const Aws::String& value) { SetMainClass(value); return *this;} /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline HadoopJarStepConfig& WithMainClass(Aws::String&& value) { SetMainClass(std::move(value)); return *this;} /** *The name of the main class in the specified Java file. If not specified, the * JAR file should specify a Main-Class in its manifest file.
*/ inline HadoopJarStepConfig& WithMainClass(const char* value) { SetMainClass(value); return *this;} /** *A list of command line arguments passed to the JAR file's main function when * executed.
*/ inline const Aws::VectorA list of command line arguments passed to the JAR file's main function when * executed.
*/ inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; } /** *A list of command line arguments passed to the JAR file's main function when * executed.
*/ inline void SetArgs(const Aws::VectorA list of command line arguments passed to the JAR file's main function when * executed.
*/ inline void SetArgs(Aws::VectorA list of command line arguments passed to the JAR file's main function when * executed.
*/ inline HadoopJarStepConfig& WithArgs(const Aws::VectorA list of command line arguments passed to the JAR file's main function when * executed.
*/ inline HadoopJarStepConfig& WithArgs(Aws::VectorA list of command line arguments passed to the JAR file's main function when * executed.
*/ inline HadoopJarStepConfig& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } /** *A list of command line arguments passed to the JAR file's main function when * executed.
*/ inline HadoopJarStepConfig& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; } /** *A list of command line arguments passed to the JAR file's main function when * executed.
*/ inline HadoopJarStepConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } private: Aws::Vector