/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/lexv2-models/LexModelsV2Request.h>
#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
#include <aws/lexv2-models/model/DialogCodeHookSettings.h>
#include <aws/lexv2-models/model/FulfillmentCodeHookSettings.h>
#include <aws/lexv2-models/model/InitialResponseSetting.h>
#include <aws/lexv2-models/model/InputContext.h>
#include <aws/lexv2-models/model/IntentClosingSetting.h>
#include <aws/lexv2-models/model/IntentConfirmationSetting.h>
#include <aws/lexv2-models/model/KendraConfiguration.h>
#include <aws/lexv2-models/model/OutputContext.h>
#include <aws/lexv2-models/model/QInConnectIntentConfiguration.h>
#include <aws/lexv2-models/model/QnAIntentConfiguration.h>
#include <aws/lexv2-models/model/SampleUtterance.h>
#include <aws/lexv2-models/model/SlotPriority.h>

#include <utility>

namespace Aws {
namespace LexModelsV2 {
namespace Model {

/**
 */
class UpdateIntentRequest : public LexModelsV2Request {
 public:
  AWS_LEXMODELSV2_API UpdateIntentRequest() = default;

  // 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 "UpdateIntent"; }

  AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>The unique identifier of the intent to update.</p>
   */
  inline const Aws::String& GetIntentId() const { return m_intentId; }
  inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
  template <typename IntentIdT = Aws::String>
  void SetIntentId(IntentIdT&& value) {
    m_intentIdHasBeenSet = true;
    m_intentId = std::forward<IntentIdT>(value);
  }
  template <typename IntentIdT = Aws::String>
  UpdateIntentRequest& WithIntentId(IntentIdT&& value) {
    SetIntentId(std::forward<IntentIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new name for the intent.</p>
   */
  inline const Aws::String& GetIntentName() const { return m_intentName; }
  inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
  template <typename IntentNameT = Aws::String>
  void SetIntentName(IntentNameT&& value) {
    m_intentNameHasBeenSet = true;
    m_intentName = std::forward<IntentNameT>(value);
  }
  template <typename IntentNameT = Aws::String>
  UpdateIntentRequest& WithIntentName(IntentNameT&& value) {
    SetIntentName(std::forward<IntentNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new display name for the intent.</p>
   */
  inline const Aws::String& GetIntentDisplayName() const { return m_intentDisplayName; }
  inline bool IntentDisplayNameHasBeenSet() const { return m_intentDisplayNameHasBeenSet; }
  template <typename IntentDisplayNameT = Aws::String>
  void SetIntentDisplayName(IntentDisplayNameT&& value) {
    m_intentDisplayNameHasBeenSet = true;
    m_intentDisplayName = std::forward<IntentDisplayNameT>(value);
  }
  template <typename IntentDisplayNameT = Aws::String>
  UpdateIntentRequest& WithIntentDisplayName(IntentDisplayNameT&& value) {
    SetIntentDisplayName(std::forward<IntentDisplayNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new description of the intent.</p>
   */
  inline const Aws::String& GetDescription() const { return m_description; }
  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  template <typename DescriptionT = Aws::String>
  void SetDescription(DescriptionT&& value) {
    m_descriptionHasBeenSet = true;
    m_description = std::forward<DescriptionT>(value);
  }
  template <typename DescriptionT = Aws::String>
  UpdateIntentRequest& WithDescription(DescriptionT&& value) {
    SetDescription(std::forward<DescriptionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The signature of the new built-in intent to use as the parent of this
   * intent.</p>
   */
  inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
  inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
  template <typename ParentIntentSignatureT = Aws::String>
  void SetParentIntentSignature(ParentIntentSignatureT&& value) {
    m_parentIntentSignatureHasBeenSet = true;
    m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
  }
  template <typename ParentIntentSignatureT = Aws::String>
  UpdateIntentRequest& WithParentIntentSignature(ParentIntentSignatureT&& value) {
    SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>New utterances used to invoke the intent.</p>
   */
  inline const Aws::Vector<SampleUtterance>& GetSampleUtterances() const { return m_sampleUtterances; }
  inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
  template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
  void SetSampleUtterances(SampleUtterancesT&& value) {
    m_sampleUtterancesHasBeenSet = true;
    m_sampleUtterances = std::forward<SampleUtterancesT>(value);
  }
  template <typename SampleUtterancesT = Aws::Vector<SampleUtterance>>
  UpdateIntentRequest& WithSampleUtterances(SampleUtterancesT&& value) {
    SetSampleUtterances(std::forward<SampleUtterancesT>(value));
    return *this;
  }
  template <typename SampleUtterancesT = SampleUtterance>
  UpdateIntentRequest& AddSampleUtterances(SampleUtterancesT&& value) {
    m_sampleUtterancesHasBeenSet = true;
    m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new Lambda function to use between each turn of the conversation with the
   * bot.</p>
   */
  inline const DialogCodeHookSettings& GetDialogCodeHook() const { return m_dialogCodeHook; }
  inline bool DialogCodeHookHasBeenSet() const { return m_dialogCodeHookHasBeenSet; }
  template <typename DialogCodeHookT = DialogCodeHookSettings>
  void SetDialogCodeHook(DialogCodeHookT&& value) {
    m_dialogCodeHookHasBeenSet = true;
    m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
  }
  template <typename DialogCodeHookT = DialogCodeHookSettings>
  UpdateIntentRequest& WithDialogCodeHook(DialogCodeHookT&& value) {
    SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new Lambda function to call when all of the intents required slots are
   * provided and the intent is ready for fulfillment.</p>
   */
  inline const FulfillmentCodeHookSettings& GetFulfillmentCodeHook() const { return m_fulfillmentCodeHook; }
  inline bool FulfillmentCodeHookHasBeenSet() const { return m_fulfillmentCodeHookHasBeenSet; }
  template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
  void SetFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
    m_fulfillmentCodeHookHasBeenSet = true;
    m_fulfillmentCodeHook = std::forward<FulfillmentCodeHookT>(value);
  }
  template <typename FulfillmentCodeHookT = FulfillmentCodeHookSettings>
  UpdateIntentRequest& WithFulfillmentCodeHook(FulfillmentCodeHookT&& value) {
    SetFulfillmentCodeHook(std::forward<FulfillmentCodeHookT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A new list of slots and their priorities that are contained by the
   * intent.</p>
   */
  inline const Aws::Vector<SlotPriority>& GetSlotPriorities() const { return m_slotPriorities; }
  inline bool SlotPrioritiesHasBeenSet() const { return m_slotPrioritiesHasBeenSet; }
  template <typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
  void SetSlotPriorities(SlotPrioritiesT&& value) {
    m_slotPrioritiesHasBeenSet = true;
    m_slotPriorities = std::forward<SlotPrioritiesT>(value);
  }
  template <typename SlotPrioritiesT = Aws::Vector<SlotPriority>>
  UpdateIntentRequest& WithSlotPriorities(SlotPrioritiesT&& value) {
    SetSlotPriorities(std::forward<SlotPrioritiesT>(value));
    return *this;
  }
  template <typename SlotPrioritiesT = SlotPriority>
  UpdateIntentRequest& AddSlotPriorities(SlotPrioritiesT&& value) {
    m_slotPrioritiesHasBeenSet = true;
    m_slotPriorities.emplace_back(std::forward<SlotPrioritiesT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>New prompts that Amazon Lex sends to the user to confirm the completion of an
   * intent.</p>
   */
  inline const IntentConfirmationSetting& GetIntentConfirmationSetting() const { return m_intentConfirmationSetting; }
  inline bool IntentConfirmationSettingHasBeenSet() const { return m_intentConfirmationSettingHasBeenSet; }
  template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
  void SetIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
    m_intentConfirmationSettingHasBeenSet = true;
    m_intentConfirmationSetting = std::forward<IntentConfirmationSettingT>(value);
  }
  template <typename IntentConfirmationSettingT = IntentConfirmationSetting>
  UpdateIntentRequest& WithIntentConfirmationSetting(IntentConfirmationSettingT&& value) {
    SetIntentConfirmationSetting(std::forward<IntentConfirmationSettingT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new response that Amazon Lex sends the user when the intent is
   * closed.</p>
   */
  inline const IntentClosingSetting& GetIntentClosingSetting() const { return m_intentClosingSetting; }
  inline bool IntentClosingSettingHasBeenSet() const { return m_intentClosingSettingHasBeenSet; }
  template <typename IntentClosingSettingT = IntentClosingSetting>
  void SetIntentClosingSetting(IntentClosingSettingT&& value) {
    m_intentClosingSettingHasBeenSet = true;
    m_intentClosingSetting = std::forward<IntentClosingSettingT>(value);
  }
  template <typename IntentClosingSettingT = IntentClosingSetting>
  UpdateIntentRequest& WithIntentClosingSetting(IntentClosingSettingT&& value) {
    SetIntentClosingSetting(std::forward<IntentClosingSettingT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A new list of contexts that must be active in order for Amazon Lex to
   * consider the intent.</p>
   */
  inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
  inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
  template <typename InputContextsT = Aws::Vector<InputContext>>
  void SetInputContexts(InputContextsT&& value) {
    m_inputContextsHasBeenSet = true;
    m_inputContexts = std::forward<InputContextsT>(value);
  }
  template <typename InputContextsT = Aws::Vector<InputContext>>
  UpdateIntentRequest& WithInputContexts(InputContextsT&& value) {
    SetInputContexts(std::forward<InputContextsT>(value));
    return *this;
  }
  template <typename InputContextsT = InputContext>
  UpdateIntentRequest& AddInputContexts(InputContextsT&& value) {
    m_inputContextsHasBeenSet = true;
    m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A new list of contexts that Amazon Lex activates when the intent is
   * fulfilled.</p>
   */
  inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
  inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
  template <typename OutputContextsT = Aws::Vector<OutputContext>>
  void SetOutputContexts(OutputContextsT&& value) {
    m_outputContextsHasBeenSet = true;
    m_outputContexts = std::forward<OutputContextsT>(value);
  }
  template <typename OutputContextsT = Aws::Vector<OutputContext>>
  UpdateIntentRequest& WithOutputContexts(OutputContextsT&& value) {
    SetOutputContexts(std::forward<OutputContextsT>(value));
    return *this;
  }
  template <typename OutputContextsT = OutputContext>
  UpdateIntentRequest& AddOutputContexts(OutputContextsT&& value) {
    m_outputContextsHasBeenSet = true;
    m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>New configuration settings for connecting to an Amazon Kendra index.</p>
   */
  inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
  inline bool KendraConfigurationHasBeenSet() const { return m_kendraConfigurationHasBeenSet; }
  template <typename KendraConfigurationT = KendraConfiguration>
  void SetKendraConfiguration(KendraConfigurationT&& value) {
    m_kendraConfigurationHasBeenSet = true;
    m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
  }
  template <typename KendraConfigurationT = KendraConfiguration>
  UpdateIntentRequest& WithKendraConfiguration(KendraConfigurationT&& value) {
    SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The identifier of the bot that contains the intent.</p>
   */
  inline const Aws::String& GetBotId() const { return m_botId; }
  inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
  template <typename BotIdT = Aws::String>
  void SetBotId(BotIdT&& value) {
    m_botIdHasBeenSet = true;
    m_botId = std::forward<BotIdT>(value);
  }
  template <typename BotIdT = Aws::String>
  UpdateIntentRequest& WithBotId(BotIdT&& value) {
    SetBotId(std::forward<BotIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The version of the bot that contains the intent. Must be
   * <code>DRAFT</code>.</p>
   */
  inline const Aws::String& GetBotVersion() const { return m_botVersion; }
  inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
  template <typename BotVersionT = Aws::String>
  void SetBotVersion(BotVersionT&& value) {
    m_botVersionHasBeenSet = true;
    m_botVersion = std::forward<BotVersionT>(value);
  }
  template <typename BotVersionT = Aws::String>
  UpdateIntentRequest& WithBotVersion(BotVersionT&& value) {
    SetBotVersion(std::forward<BotVersionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The identifier of the language and locale where this intent is used. The
   * string must match one of the supported locales. For more information, see <a
   * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
   * languages</a>.</p>
   */
  inline const Aws::String& GetLocaleId() const { return m_localeId; }
  inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
  template <typename LocaleIdT = Aws::String>
  void SetLocaleId(LocaleIdT&& value) {
    m_localeIdHasBeenSet = true;
    m_localeId = std::forward<LocaleIdT>(value);
  }
  template <typename LocaleIdT = Aws::String>
  UpdateIntentRequest& WithLocaleId(LocaleIdT&& value) {
    SetLocaleId(std::forward<LocaleIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Configuration settings for a response sent to the user before Amazon Lex
   * starts eliciting slots.</p>
   */
  inline const InitialResponseSetting& GetInitialResponseSetting() const { return m_initialResponseSetting; }
  inline bool InitialResponseSettingHasBeenSet() const { return m_initialResponseSettingHasBeenSet; }
  template <typename InitialResponseSettingT = InitialResponseSetting>
  void SetInitialResponseSetting(InitialResponseSettingT&& value) {
    m_initialResponseSettingHasBeenSet = true;
    m_initialResponseSetting = std::forward<InitialResponseSettingT>(value);
  }
  template <typename InitialResponseSettingT = InitialResponseSetting>
  UpdateIntentRequest& WithInitialResponseSetting(InitialResponseSettingT&& value) {
    SetInitialResponseSetting(std::forward<InitialResponseSettingT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifies the configuration of the built-in <code>Amazon.QnAIntent</code>.
   * The <code>AMAZON.QnAIntent</code> intent is called when Amazon Lex can't
   * determine another intent to invoke. If you specify this field, you can't specify
   * the <code>kendraConfiguration</code> field.</p>
   */
  inline const QnAIntentConfiguration& GetQnAIntentConfiguration() const { return m_qnAIntentConfiguration; }
  inline bool QnAIntentConfigurationHasBeenSet() const { return m_qnAIntentConfigurationHasBeenSet; }
  template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
  void SetQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
    m_qnAIntentConfigurationHasBeenSet = true;
    m_qnAIntentConfiguration = std::forward<QnAIntentConfigurationT>(value);
  }
  template <typename QnAIntentConfigurationT = QnAIntentConfiguration>
  UpdateIntentRequest& WithQnAIntentConfiguration(QnAIntentConfigurationT&& value) {
    SetQnAIntentConfiguration(std::forward<QnAIntentConfigurationT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Qinconnect intent configuration details for the update intent request.</p>
   */
  inline const QInConnectIntentConfiguration& GetQInConnectIntentConfiguration() const { return m_qInConnectIntentConfiguration; }
  inline bool QInConnectIntentConfigurationHasBeenSet() const { return m_qInConnectIntentConfigurationHasBeenSet; }
  template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
  void SetQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
    m_qInConnectIntentConfigurationHasBeenSet = true;
    m_qInConnectIntentConfiguration = std::forward<QInConnectIntentConfigurationT>(value);
  }
  template <typename QInConnectIntentConfigurationT = QInConnectIntentConfiguration>
  UpdateIntentRequest& WithQInConnectIntentConfiguration(QInConnectIntentConfigurationT&& value) {
    SetQInConnectIntentConfiguration(std::forward<QInConnectIntentConfigurationT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_intentId;

  Aws::String m_intentName;

  Aws::String m_intentDisplayName;

  Aws::String m_description;

  Aws::String m_parentIntentSignature;

  Aws::Vector<SampleUtterance> m_sampleUtterances;

  DialogCodeHookSettings m_dialogCodeHook;

  FulfillmentCodeHookSettings m_fulfillmentCodeHook;

  Aws::Vector<SlotPriority> m_slotPriorities;

  IntentConfirmationSetting m_intentConfirmationSetting;

  IntentClosingSetting m_intentClosingSetting;

  Aws::Vector<InputContext> m_inputContexts;

  Aws::Vector<OutputContext> m_outputContexts;

  KendraConfiguration m_kendraConfiguration;

  Aws::String m_botId;

  Aws::String m_botVersion;

  Aws::String m_localeId;

  InitialResponseSetting m_initialResponseSetting;

  QnAIntentConfiguration m_qnAIntentConfiguration;

  QInConnectIntentConfiguration m_qInConnectIntentConfiguration;
  bool m_intentIdHasBeenSet = false;
  bool m_intentNameHasBeenSet = false;
  bool m_intentDisplayNameHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
  bool m_parentIntentSignatureHasBeenSet = false;
  bool m_sampleUtterancesHasBeenSet = false;
  bool m_dialogCodeHookHasBeenSet = false;
  bool m_fulfillmentCodeHookHasBeenSet = false;
  bool m_slotPrioritiesHasBeenSet = false;
  bool m_intentConfirmationSettingHasBeenSet = false;
  bool m_intentClosingSettingHasBeenSet = false;
  bool m_inputContextsHasBeenSet = false;
  bool m_outputContextsHasBeenSet = false;
  bool m_kendraConfigurationHasBeenSet = false;
  bool m_botIdHasBeenSet = false;
  bool m_botVersionHasBeenSet = false;
  bool m_localeIdHasBeenSet = false;
  bool m_initialResponseSettingHasBeenSet = false;
  bool m_qnAIntentConfigurationHasBeenSet = false;
  bool m_qInConnectIntentConfigurationHasBeenSet = false;
};

}  // namespace Model
}  // namespace LexModelsV2
}  // namespace Aws
