/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EMR { namespace Model { /** *

An entity describing an executable that runs on a cluster.

See * Also:

AWS * API Reference

*/ class Command { public: AWS_EMR_API Command(); AWS_EMR_API Command(Aws::Utils::Json::JsonView jsonValue); AWS_EMR_API Command& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the command.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the command.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the command.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the command.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the command.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the command.

*/ inline Command& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the command.

*/ inline Command& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the command.

*/ inline Command& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon S3 location of the command script.

*/ inline const Aws::String& GetScriptPath() const{ return m_scriptPath; } /** *

The Amazon S3 location of the command script.

*/ inline bool ScriptPathHasBeenSet() const { return m_scriptPathHasBeenSet; } /** *

The Amazon S3 location of the command script.

*/ inline void SetScriptPath(const Aws::String& value) { m_scriptPathHasBeenSet = true; m_scriptPath = value; } /** *

The Amazon S3 location of the command script.

*/ inline void SetScriptPath(Aws::String&& value) { m_scriptPathHasBeenSet = true; m_scriptPath = std::move(value); } /** *

The Amazon S3 location of the command script.

*/ inline void SetScriptPath(const char* value) { m_scriptPathHasBeenSet = true; m_scriptPath.assign(value); } /** *

The Amazon S3 location of the command script.

*/ inline Command& WithScriptPath(const Aws::String& value) { SetScriptPath(value); return *this;} /** *

The Amazon S3 location of the command script.

*/ inline Command& WithScriptPath(Aws::String&& value) { SetScriptPath(std::move(value)); return *this;} /** *

The Amazon S3 location of the command script.

*/ inline Command& WithScriptPath(const char* value) { SetScriptPath(value); return *this;} /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline const Aws::Vector& GetArgs() const{ return m_args; } /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; } /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline void SetArgs(const Aws::Vector& value) { m_argsHasBeenSet = true; m_args = value; } /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline void SetArgs(Aws::Vector&& value) { m_argsHasBeenSet = true; m_args = std::move(value); } /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline Command& WithArgs(const Aws::Vector& value) { SetArgs(value); return *this;} /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline Command& WithArgs(Aws::Vector&& value) { SetArgs(std::move(value)); return *this;} /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline Command& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline Command& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; } /** *

Arguments for Amazon EMR to pass to the command for execution.

*/ inline Command& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_scriptPath; bool m_scriptPathHasBeenSet = false; Aws::Vector m_args; bool m_argsHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws