278 lines
13 KiB
C++
278 lines
13 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace LexModelBuildingService
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides configuration information for the AMAZON.KendraSearchIntent intent.
|
|
* When you use this intent, Amazon Lex searches the specified Amazon Kendra index
|
|
* and returns documents from the index that match the user's utterance. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html">
|
|
* AMAZON.KendraSearchIntent</a>.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/KendraConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration
|
|
{
|
|
public:
|
|
KendraConfiguration();
|
|
KendraConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
|
KendraConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline const Aws::String& GetKendraIndex() const{ return m_kendraIndex; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline bool KendraIndexHasBeenSet() const { return m_kendraIndexHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline void SetKendraIndex(const Aws::String& value) { m_kendraIndexHasBeenSet = true; m_kendraIndex = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline void SetKendraIndex(Aws::String&& value) { m_kendraIndexHasBeenSet = true; m_kendraIndex = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline void SetKendraIndex(const char* value) { m_kendraIndexHasBeenSet = true; m_kendraIndex.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline KendraConfiguration& WithKendraIndex(const Aws::String& value) { SetKendraIndex(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline KendraConfiguration& WithKendraIndex(Aws::String&& value) { SetKendraIndex(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
|
|
* AMAZON.KendraSearchIntent intent to search. The index must be in the same
|
|
* account and Region as the Amazon Lex bot. If the Amazon Kendra index does not
|
|
* exist, you get an exception when you call the <code>PutIntent</code>
|
|
* operation.</p>
|
|
*/
|
|
inline KendraConfiguration& WithKendraIndex(const char* value) { SetKendraIndex(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline const Aws::String& GetQueryFilterString() const{ return m_queryFilterString; }
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline bool QueryFilterStringHasBeenSet() const { return m_queryFilterStringHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline void SetQueryFilterString(const Aws::String& value) { m_queryFilterStringHasBeenSet = true; m_queryFilterString = value; }
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline void SetQueryFilterString(Aws::String&& value) { m_queryFilterStringHasBeenSet = true; m_queryFilterString = std::move(value); }
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline void SetQueryFilterString(const char* value) { m_queryFilterStringHasBeenSet = true; m_queryFilterString.assign(value); }
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline KendraConfiguration& WithQueryFilterString(const Aws::String& value) { SetQueryFilterString(value); return *this;}
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline KendraConfiguration& WithQueryFilterString(Aws::String&& value) { SetQueryFilterString(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
|
|
* from the query. The filter is in the format defined by Amazon Kendra. For more
|
|
* information, see <a
|
|
* href="http://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
|
|
* queries</a>.</p> <p>You can override this filter string with a new filter string
|
|
* at runtime.</p>
|
|
*/
|
|
inline KendraConfiguration& WithQueryFilterString(const char* value) { SetQueryFilterString(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline const Aws::String& GetRole() const{ return m_role; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline KendraConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline KendraConfiguration& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of an IAM role that has permission to search
|
|
* the Amazon Kendra index. The role must be in the same account and Region as the
|
|
* Amazon Lex bot. If the role does not exist, you get an exception when you call
|
|
* the <code>PutIntent</code> operation.</p>
|
|
*/
|
|
inline KendraConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_kendraIndex;
|
|
bool m_kendraIndexHasBeenSet;
|
|
|
|
Aws::String m_queryFilterString;
|
|
bool m_queryFilterStringHasBeenSet;
|
|
|
|
Aws::String m_role;
|
|
bool m_roleHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace LexModelBuildingService
|
|
} // namespace Aws
|