128 lines
6.4 KiB
C++
128 lines
6.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kendra/Kendra_EXPORTS.h>
|
|
#include <aws/kendra/model/QueryIdentifiersEnclosingOption.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace kendra
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides information that configures Amazon Kendra to use a SQL
|
|
* database.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/SqlConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_KENDRA_API SqlConfiguration
|
|
{
|
|
public:
|
|
SqlConfiguration();
|
|
SqlConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
|
SqlConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>Determines whether Amazon Kendra encloses SQL identifiers in double quotes
|
|
* (") when making a database query.</p> <p>By default, Amazon Kendra passes SQL
|
|
* identifiers the way that they are entered into the data source configuration. It
|
|
* does not change the case of identifiers or enclose them in quotes.</p>
|
|
* <p>PostgreSQL internally converts uppercase characters to lower case characters
|
|
* in identifiers unless they are quoted. Choosing this option encloses identifiers
|
|
* in quotes so that PostgreSQL does not convert the character's case.</p> <p>For
|
|
* MySQL databases, you must enable the <code>ansi_quotes</code> option when you
|
|
* choose this option.</p>
|
|
*/
|
|
inline const QueryIdentifiersEnclosingOption& GetQueryIdentifiersEnclosingOption() const{ return m_queryIdentifiersEnclosingOption; }
|
|
|
|
/**
|
|
* <p>Determines whether Amazon Kendra encloses SQL identifiers in double quotes
|
|
* (") when making a database query.</p> <p>By default, Amazon Kendra passes SQL
|
|
* identifiers the way that they are entered into the data source configuration. It
|
|
* does not change the case of identifiers or enclose them in quotes.</p>
|
|
* <p>PostgreSQL internally converts uppercase characters to lower case characters
|
|
* in identifiers unless they are quoted. Choosing this option encloses identifiers
|
|
* in quotes so that PostgreSQL does not convert the character's case.</p> <p>For
|
|
* MySQL databases, you must enable the <code>ansi_quotes</code> option when you
|
|
* choose this option.</p>
|
|
*/
|
|
inline bool QueryIdentifiersEnclosingOptionHasBeenSet() const { return m_queryIdentifiersEnclosingOptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Determines whether Amazon Kendra encloses SQL identifiers in double quotes
|
|
* (") when making a database query.</p> <p>By default, Amazon Kendra passes SQL
|
|
* identifiers the way that they are entered into the data source configuration. It
|
|
* does not change the case of identifiers or enclose them in quotes.</p>
|
|
* <p>PostgreSQL internally converts uppercase characters to lower case characters
|
|
* in identifiers unless they are quoted. Choosing this option encloses identifiers
|
|
* in quotes so that PostgreSQL does not convert the character's case.</p> <p>For
|
|
* MySQL databases, you must enable the <code>ansi_quotes</code> option when you
|
|
* choose this option.</p>
|
|
*/
|
|
inline void SetQueryIdentifiersEnclosingOption(const QueryIdentifiersEnclosingOption& value) { m_queryIdentifiersEnclosingOptionHasBeenSet = true; m_queryIdentifiersEnclosingOption = value; }
|
|
|
|
/**
|
|
* <p>Determines whether Amazon Kendra encloses SQL identifiers in double quotes
|
|
* (") when making a database query.</p> <p>By default, Amazon Kendra passes SQL
|
|
* identifiers the way that they are entered into the data source configuration. It
|
|
* does not change the case of identifiers or enclose them in quotes.</p>
|
|
* <p>PostgreSQL internally converts uppercase characters to lower case characters
|
|
* in identifiers unless they are quoted. Choosing this option encloses identifiers
|
|
* in quotes so that PostgreSQL does not convert the character's case.</p> <p>For
|
|
* MySQL databases, you must enable the <code>ansi_quotes</code> option when you
|
|
* choose this option.</p>
|
|
*/
|
|
inline void SetQueryIdentifiersEnclosingOption(QueryIdentifiersEnclosingOption&& value) { m_queryIdentifiersEnclosingOptionHasBeenSet = true; m_queryIdentifiersEnclosingOption = std::move(value); }
|
|
|
|
/**
|
|
* <p>Determines whether Amazon Kendra encloses SQL identifiers in double quotes
|
|
* (") when making a database query.</p> <p>By default, Amazon Kendra passes SQL
|
|
* identifiers the way that they are entered into the data source configuration. It
|
|
* does not change the case of identifiers or enclose them in quotes.</p>
|
|
* <p>PostgreSQL internally converts uppercase characters to lower case characters
|
|
* in identifiers unless they are quoted. Choosing this option encloses identifiers
|
|
* in quotes so that PostgreSQL does not convert the character's case.</p> <p>For
|
|
* MySQL databases, you must enable the <code>ansi_quotes</code> option when you
|
|
* choose this option.</p>
|
|
*/
|
|
inline SqlConfiguration& WithQueryIdentifiersEnclosingOption(const QueryIdentifiersEnclosingOption& value) { SetQueryIdentifiersEnclosingOption(value); return *this;}
|
|
|
|
/**
|
|
* <p>Determines whether Amazon Kendra encloses SQL identifiers in double quotes
|
|
* (") when making a database query.</p> <p>By default, Amazon Kendra passes SQL
|
|
* identifiers the way that they are entered into the data source configuration. It
|
|
* does not change the case of identifiers or enclose them in quotes.</p>
|
|
* <p>PostgreSQL internally converts uppercase characters to lower case characters
|
|
* in identifiers unless they are quoted. Choosing this option encloses identifiers
|
|
* in quotes so that PostgreSQL does not convert the character's case.</p> <p>For
|
|
* MySQL databases, you must enable the <code>ansi_quotes</code> option when you
|
|
* choose this option.</p>
|
|
*/
|
|
inline SqlConfiguration& WithQueryIdentifiersEnclosingOption(QueryIdentifiersEnclosingOption&& value) { SetQueryIdentifiersEnclosingOption(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
QueryIdentifiersEnclosingOption m_queryIdentifiersEnclosingOption;
|
|
bool m_queryIdentifiersEnclosingOptionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace kendra
|
|
} // namespace Aws
|