/** * 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 { /** *

Configuration of the script to run during a bootstrap action.

See * Also:

AWS * API Reference

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

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline ScriptBootstrapActionConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline ScriptBootstrapActionConfig& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

Location in Amazon S3 of the script to run during a bootstrap action.

*/ inline ScriptBootstrapActionConfig& WithPath(const char* value) { SetPath(value); return *this;} /** *

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

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

A list of command line arguments to pass to the bootstrap action script.

*/ inline ScriptBootstrapActionConfig& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } private: Aws::String m_path; bool m_pathHasBeenSet = false; Aws::Vector m_args; bool m_argsHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws