/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class UpdateExperienceRequest : public KendraRequest { public: AWS_KENDRA_API UpdateExperienceRequest(); // 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 "UpdateExperience"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline UpdateExperienceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline UpdateExperienceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of your Amazon Kendra experience you want to update.

*/ inline UpdateExperienceRequest& WithId(const char* value) { SetId(value); return *this;} /** *

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

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

A new name for your Amazon Kendra experience.

*/ inline UpdateExperienceRequest& 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 UpdateExperienceRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index for your Amazon Kendra experience.

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

The identifier of the index for your Amazon Kendra experience.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

The Amazon Resource Name (ARN) of a role with permission to access * Query API, QuerySuggestions API, * SubmitFeedback API, and IAM Identity Center that stores your user * and group information. For more information, see IAM roles for * Amazon Kendra.

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

Configuration information you want to update for your Amazon Kendra * experience.

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

Configuration information you want to update for your Amazon Kendra * experience.

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

Configuration information you want to update for your Amazon Kendra * experience.

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

Configuration information you want to update for your Amazon Kendra * experience.

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

Configuration information you want to update for your Amazon Kendra * experience.

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

Configuration information you want to update for your Amazon Kendra * experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

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

A new description for your Amazon Kendra experience.

*/ inline UpdateExperienceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; 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; }; } // namespace Model } // namespace kendra } // namespace Aws