/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A query, where QueryString is the list of SQL query statements
* that comprise the query.See Also:
AWS
* API Reference
The query name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The query name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The query name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The query name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The query name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The query name.
*/ inline NamedQuery& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The query name.
*/ inline NamedQuery& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The query name.
*/ inline NamedQuery& WithName(const char* value) { SetName(value); return *this;} /** *The query description.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The query description.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The query description.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The query description.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The query description.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The query description.
*/ inline NamedQuery& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The query description.
*/ inline NamedQuery& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The query description.
*/ inline NamedQuery& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The database to which the query belongs.
*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *The database to which the query belongs.
*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *The database to which the query belongs.
*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *The database to which the query belongs.
*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *The database to which the query belongs.
*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *The database to which the query belongs.
*/ inline NamedQuery& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *The database to which the query belongs.
*/ inline NamedQuery& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *The database to which the query belongs.
*/ inline NamedQuery& WithDatabase(const char* value) { SetDatabase(value); return *this;} /** *The SQL query statements that comprise the query.
*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *The SQL query statements that comprise the query.
*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *The SQL query statements that comprise the query.
*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *The SQL query statements that comprise the query.
*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *The SQL query statements that comprise the query.
*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *The SQL query statements that comprise the query.
*/ inline NamedQuery& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *The SQL query statements that comprise the query.
*/ inline NamedQuery& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *The SQL query statements that comprise the query.
*/ inline NamedQuery& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *The unique identifier of the query.
*/ inline const Aws::String& GetNamedQueryId() const{ return m_namedQueryId; } /** *The unique identifier of the query.
*/ inline bool NamedQueryIdHasBeenSet() const { return m_namedQueryIdHasBeenSet; } /** *The unique identifier of the query.
*/ inline void SetNamedQueryId(const Aws::String& value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId = value; } /** *The unique identifier of the query.
*/ inline void SetNamedQueryId(Aws::String&& value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId = std::move(value); } /** *The unique identifier of the query.
*/ inline void SetNamedQueryId(const char* value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId.assign(value); } /** *The unique identifier of the query.
*/ inline NamedQuery& WithNamedQueryId(const Aws::String& value) { SetNamedQueryId(value); return *this;} /** *The unique identifier of the query.
*/ inline NamedQuery& WithNamedQueryId(Aws::String&& value) { SetNamedQueryId(std::move(value)); return *this;} /** *The unique identifier of the query.
*/ inline NamedQuery& WithNamedQueryId(const char* value) { SetNamedQueryId(value); return *this;} /** *The name of the workgroup that contains the named query.
*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *The name of the workgroup that contains the named query.
*/ inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; } /** *The name of the workgroup that contains the named query.
*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; } /** *The name of the workgroup that contains the named query.
*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); } /** *The name of the workgroup that contains the named query.
*/ inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); } /** *The name of the workgroup that contains the named query.
*/ inline NamedQuery& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *The name of the workgroup that contains the named query.
*/ inline NamedQuery& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *The name of the workgroup that contains the named query.
*/ inline NamedQuery& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_database; bool m_databaseHasBeenSet; Aws::String m_queryString; bool m_queryStringHasBeenSet; Aws::String m_namedQueryId; bool m_namedQueryIdHasBeenSet; Aws::String m_workGroup; bool m_workGroupHasBeenSet; }; } // namespace Model } // namespace Athena } // namespace Aws