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

The list of supported product configurations that allow user-supplied * arguments. Amazon EMR accepts these arguments and forwards them to the * corresponding installation script as bootstrap action arguments.

See * Also:

AWS * API Reference

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

The name of the product configuration.

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

The name of the product configuration.

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

The name of the product configuration.

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

The name of the product configuration.

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

The name of the product configuration.

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

The name of the product configuration.

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

The name of the product configuration.

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

The name of the product configuration.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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

The list of user-supplied arguments.

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