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

With Amazon EMR release version 4.0 and later, the only accepted parameter is * the application name. To pass arguments to applications, you use configuration * classifications specified using configuration JSON objects. For more * information, see Configuring * Applications.

With earlier Amazon EMR releases, the application is * any Amazon or third-party software that you can add to the cluster. This * structure contains a list of strings that indicates the software to use with the * cluster and accepts a user argument list. Amazon EMR accepts and forwards the * argument list to the corresponding installation script as bootstrap action * argument.

See Also:

AWS * API Reference

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

The name of the application.

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

The name of the application.

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

The name of the application.

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

The name of the application.

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

The name of the application.

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

The name of the application.

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

The name of the application.

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

The name of the application.

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

The version of the application.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the application.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version of the application.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version of the application.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version of the application.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version of the application.

*/ inline Application& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the application.

*/ inline Application& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the application.

*/ inline Application& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

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

Arguments for Amazon EMR to pass to the application.

*/ inline Application& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline const Aws::Map& GetAdditionalInfo() const{ return m_additionalInfo; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline void SetAdditionalInfo(const Aws::Map& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline void SetAdditionalInfo(Aws::Map&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& WithAdditionalInfo(const Aws::Map& value) { SetAdditionalInfo(value); return *this;} /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& WithAdditionalInfo(Aws::Map&& value) { SetAdditionalInfo(std::move(value)); return *this;} /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(const Aws::String& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(Aws::String&& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(const Aws::String& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(Aws::String&& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(const char* key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(Aws::String&& key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } /** *

This option is for advanced users only. This is meta information about * third-party applications that third-party vendors use for testing purposes.

*/ inline Application& AddAdditionalInfo(const char* key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::Vector m_args; bool m_argsHasBeenSet = false; Aws::Map m_additionalInfo; bool m_additionalInfoHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws