/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class CreateExperienceRequest : public KendraRequest { public: AWS_KENDRA_API CreateExperienceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateExperience"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

A name for your Amazon Kendra experience.

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

The identifier of the index for your Amazon Kendra experience.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index for your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline CreateExperienceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline CreateExperienceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access * Query API, GetQuerySuggestions API, and other required * APIs. The role also must include permission to access IAM Identity Center * (successor to Single Sign-On) that stores your user and group information. For * more information, see IAM access * roles for Amazon Kendra.

*/ inline CreateExperienceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

Configuration information for your Amazon Kendra experience. This includes * ContentSourceConfiguration, which specifies the data source IDs * and/or FAQ IDs, and UserIdentityConfiguration, which specifies the * user or group information to grant access to your Amazon Kendra experience.

*/ inline const ExperienceConfiguration& GetConfiguration() const{ return m_configuration; } /** *

Configuration information for your Amazon Kendra experience. This includes * ContentSourceConfiguration, which specifies the data source IDs * and/or FAQ IDs, and UserIdentityConfiguration, which specifies the * user or group information to grant access to your Amazon Kendra experience.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

Configuration information for your Amazon Kendra experience. This includes * ContentSourceConfiguration, which specifies the data source IDs * and/or FAQ IDs, and UserIdentityConfiguration, which specifies the * user or group information to grant access to your Amazon Kendra experience.

*/ inline void SetConfiguration(const ExperienceConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

Configuration information for your Amazon Kendra experience. This includes * ContentSourceConfiguration, which specifies the data source IDs * and/or FAQ IDs, and UserIdentityConfiguration, which specifies the * user or group information to grant access to your Amazon Kendra experience.

*/ inline void SetConfiguration(ExperienceConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

Configuration information for your Amazon Kendra experience. This includes * ContentSourceConfiguration, which specifies the data source IDs * and/or FAQ IDs, and UserIdentityConfiguration, which specifies the * user or group information to grant access to your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithConfiguration(const ExperienceConfiguration& value) { SetConfiguration(value); return *this;} /** *

Configuration information for your Amazon Kendra experience. This includes * ContentSourceConfiguration, which specifies the data source IDs * and/or FAQ IDs, and UserIdentityConfiguration, which specifies the * user or group information to grant access to your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithConfiguration(ExperienceConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

A description for your Amazon Kendra experience.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for your Amazon Kendra experience.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for your Amazon Kendra experience.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for your Amazon Kendra experience.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for your Amazon Kendra experience.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for your Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that you provide to identify the request to create your Amazon Kendra * experience. Multiple calls to the CreateExperience API with the * same client token creates only one Amazon Kendra experience.

*/ inline CreateExperienceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; ExperienceConfiguration m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws