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

The configurations for the Hive job driver.

See Also:

AWS * API Reference

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

The query for the Hive job run.

*/ inline const Aws::String& GetQuery() const{ return m_query; } /** *

The query for the Hive job run.

*/ inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; } /** *

The query for the Hive job run.

*/ inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; } /** *

The query for the Hive job run.

*/ inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); } /** *

The query for the Hive job run.

*/ inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); } /** *

The query for the Hive job run.

*/ inline Hive& WithQuery(const Aws::String& value) { SetQuery(value); return *this;} /** *

The query for the Hive job run.

*/ inline Hive& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;} /** *

The query for the Hive job run.

*/ inline Hive& WithQuery(const char* value) { SetQuery(value); return *this;} /** *

The query file for the Hive job run.

*/ inline const Aws::String& GetInitQueryFile() const{ return m_initQueryFile; } /** *

The query file for the Hive job run.

*/ inline bool InitQueryFileHasBeenSet() const { return m_initQueryFileHasBeenSet; } /** *

The query file for the Hive job run.

*/ inline void SetInitQueryFile(const Aws::String& value) { m_initQueryFileHasBeenSet = true; m_initQueryFile = value; } /** *

The query file for the Hive job run.

*/ inline void SetInitQueryFile(Aws::String&& value) { m_initQueryFileHasBeenSet = true; m_initQueryFile = std::move(value); } /** *

The query file for the Hive job run.

*/ inline void SetInitQueryFile(const char* value) { m_initQueryFileHasBeenSet = true; m_initQueryFile.assign(value); } /** *

The query file for the Hive job run.

*/ inline Hive& WithInitQueryFile(const Aws::String& value) { SetInitQueryFile(value); return *this;} /** *

The query file for the Hive job run.

*/ inline Hive& WithInitQueryFile(Aws::String&& value) { SetInitQueryFile(std::move(value)); return *this;} /** *

The query file for the Hive job run.

*/ inline Hive& WithInitQueryFile(const char* value) { SetInitQueryFile(value); return *this;} /** *

The parameters for the Hive job run.

*/ inline const Aws::String& GetParameters() const{ return m_parameters; } /** *

The parameters for the Hive job run.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The parameters for the Hive job run.

*/ inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The parameters for the Hive job run.

*/ inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The parameters for the Hive job run.

*/ inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); } /** *

The parameters for the Hive job run.

*/ inline Hive& WithParameters(const Aws::String& value) { SetParameters(value); return *this;} /** *

The parameters for the Hive job run.

*/ inline Hive& WithParameters(Aws::String&& value) { SetParameters(std::move(value)); return *this;} /** *

The parameters for the Hive job run.

*/ inline Hive& WithParameters(const char* value) { SetParameters(value); return *this;} private: Aws::String m_query; bool m_queryHasBeenSet = false; Aws::String m_initQueryFile; bool m_initQueryFileHasBeenSet = false; Aws::String m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws