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

#pragma once
#include <aws/core/http/HttpResponse.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
#include <aws/lex-models/model/CodeHook.h>
#include <aws/lex-models/model/FollowUpPrompt.h>
#include <aws/lex-models/model/FulfillmentActivity.h>
#include <aws/lex-models/model/InputContext.h>
#include <aws/lex-models/model/KendraConfiguration.h>
#include <aws/lex-models/model/OutputContext.h>
#include <aws/lex-models/model/Prompt.h>
#include <aws/lex-models/model/Slot.h>
#include <aws/lex-models/model/Statement.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Json {
class JsonValue;
}  // namespace Json
}  // namespace Utils
namespace LexModelBuildingService {
namespace Model {
class GetIntentResult {
 public:
  AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult() = default;
  AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  AWS_LEXMODELBUILDINGSERVICE_API GetIntentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

  ///@{
  /**
   * <p>The name of the intent.</p>
   */
  inline const Aws::String& GetName() const { return m_name; }
  template <typename NameT = Aws::String>
  void SetName(NameT&& value) {
    m_nameHasBeenSet = true;
    m_name = std::forward<NameT>(value);
  }
  template <typename NameT = Aws::String>
  GetIntentResult& WithName(NameT&& value) {
    SetName(std::forward<NameT>(value));
    return *this;
  }
  ///@}

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

  ///@{
  /**
   * <p>An array of intent slots configured for the intent.</p>
   */
  inline const Aws::Vector<Slot>& GetSlots() const { return m_slots; }
  template <typename SlotsT = Aws::Vector<Slot>>
  void SetSlots(SlotsT&& value) {
    m_slotsHasBeenSet = true;
    m_slots = std::forward<SlotsT>(value);
  }
  template <typename SlotsT = Aws::Vector<Slot>>
  GetIntentResult& WithSlots(SlotsT&& value) {
    SetSlots(std::forward<SlotsT>(value));
    return *this;
  }
  template <typename SlotsT = Slot>
  GetIntentResult& AddSlots(SlotsT&& value) {
    m_slotsHasBeenSet = true;
    m_slots.emplace_back(std::forward<SlotsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An array of sample utterances configured for the intent.</p>
   */
  inline const Aws::Vector<Aws::String>& GetSampleUtterances() const { return m_sampleUtterances; }
  template <typename SampleUtterancesT = Aws::Vector<Aws::String>>
  void SetSampleUtterances(SampleUtterancesT&& value) {
    m_sampleUtterancesHasBeenSet = true;
    m_sampleUtterances = std::forward<SampleUtterancesT>(value);
  }
  template <typename SampleUtterancesT = Aws::Vector<Aws::String>>
  GetIntentResult& WithSampleUtterances(SampleUtterancesT&& value) {
    SetSampleUtterances(std::forward<SampleUtterancesT>(value));
    return *this;
  }
  template <typename SampleUtterancesT = Aws::String>
  GetIntentResult& AddSampleUtterances(SampleUtterancesT&& value) {
    m_sampleUtterancesHasBeenSet = true;
    m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>If defined in the bot, Amazon Lex uses prompt to confirm the intent before
   * fulfilling the user's request. For more information, see <a>PutIntent</a>. </p>
   */
  inline const Prompt& GetConfirmationPrompt() const { return m_confirmationPrompt; }
  template <typename ConfirmationPromptT = Prompt>
  void SetConfirmationPrompt(ConfirmationPromptT&& value) {
    m_confirmationPromptHasBeenSet = true;
    m_confirmationPrompt = std::forward<ConfirmationPromptT>(value);
  }
  template <typename ConfirmationPromptT = Prompt>
  GetIntentResult& WithConfirmationPrompt(ConfirmationPromptT&& value) {
    SetConfirmationPrompt(std::forward<ConfirmationPromptT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>If the user answers "no" to the question defined in
   * <code>confirmationPrompt</code>, Amazon Lex responds with this statement to
   * acknowledge that the intent was canceled. </p>
   */
  inline const Statement& GetRejectionStatement() const { return m_rejectionStatement; }
  template <typename RejectionStatementT = Statement>
  void SetRejectionStatement(RejectionStatementT&& value) {
    m_rejectionStatementHasBeenSet = true;
    m_rejectionStatement = std::forward<RejectionStatementT>(value);
  }
  template <typename RejectionStatementT = Statement>
  GetIntentResult& WithRejectionStatement(RejectionStatementT&& value) {
    SetRejectionStatement(std::forward<RejectionStatementT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>If defined in the bot, Amazon Lex uses this prompt to solicit additional user
   * activity after the intent is fulfilled. For more information, see
   * <a>PutIntent</a>.</p>
   */
  inline const FollowUpPrompt& GetFollowUpPrompt() const { return m_followUpPrompt; }
  template <typename FollowUpPromptT = FollowUpPrompt>
  void SetFollowUpPrompt(FollowUpPromptT&& value) {
    m_followUpPromptHasBeenSet = true;
    m_followUpPrompt = std::forward<FollowUpPromptT>(value);
  }
  template <typename FollowUpPromptT = FollowUpPrompt>
  GetIntentResult& WithFollowUpPrompt(FollowUpPromptT&& value) {
    SetFollowUpPrompt(std::forward<FollowUpPromptT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>After the Lambda function specified in the <code>fulfillmentActivity</code>
   * element fulfills the intent, Amazon Lex conveys this statement to the user.</p>
   */
  inline const Statement& GetConclusionStatement() const { return m_conclusionStatement; }
  template <typename ConclusionStatementT = Statement>
  void SetConclusionStatement(ConclusionStatementT&& value) {
    m_conclusionStatementHasBeenSet = true;
    m_conclusionStatement = std::forward<ConclusionStatementT>(value);
  }
  template <typename ConclusionStatementT = Statement>
  GetIntentResult& WithConclusionStatement(ConclusionStatementT&& value) {
    SetConclusionStatement(std::forward<ConclusionStatementT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>If defined in the bot, Amazon Amazon Lex invokes this Lambda function for
   * each user input. For more information, see <a>PutIntent</a>. </p>
   */
  inline const CodeHook& GetDialogCodeHook() const { return m_dialogCodeHook; }
  template <typename DialogCodeHookT = CodeHook>
  void SetDialogCodeHook(DialogCodeHookT&& value) {
    m_dialogCodeHookHasBeenSet = true;
    m_dialogCodeHook = std::forward<DialogCodeHookT>(value);
  }
  template <typename DialogCodeHookT = CodeHook>
  GetIntentResult& WithDialogCodeHook(DialogCodeHookT&& value) {
    SetDialogCodeHook(std::forward<DialogCodeHookT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Describes how the intent is fulfilled. For more information, see
   * <a>PutIntent</a>. </p>
   */
  inline const FulfillmentActivity& GetFulfillmentActivity() const { return m_fulfillmentActivity; }
  template <typename FulfillmentActivityT = FulfillmentActivity>
  void SetFulfillmentActivity(FulfillmentActivityT&& value) {
    m_fulfillmentActivityHasBeenSet = true;
    m_fulfillmentActivity = std::forward<FulfillmentActivityT>(value);
  }
  template <typename FulfillmentActivityT = FulfillmentActivity>
  GetIntentResult& WithFulfillmentActivity(FulfillmentActivityT&& value) {
    SetFulfillmentActivity(std::forward<FulfillmentActivityT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A unique identifier for a built-in intent.</p>
   */
  inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
  template <typename ParentIntentSignatureT = Aws::String>
  void SetParentIntentSignature(ParentIntentSignatureT&& value) {
    m_parentIntentSignatureHasBeenSet = true;
    m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
  }
  template <typename ParentIntentSignatureT = Aws::String>
  GetIntentResult& WithParentIntentSignature(ParentIntentSignatureT&& value) {
    SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The date that the intent was updated. When you create a resource, the
   * creation date and the last updated date are the same. </p>
   */
  inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
  template <typename LastUpdatedDateT = Aws::Utils::DateTime>
  void SetLastUpdatedDate(LastUpdatedDateT&& value) {
    m_lastUpdatedDateHasBeenSet = true;
    m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
  }
  template <typename LastUpdatedDateT = Aws::Utils::DateTime>
  GetIntentResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
    SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The date that the intent was created.</p>
   */
  inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
  template <typename CreatedDateT = Aws::Utils::DateTime>
  void SetCreatedDate(CreatedDateT&& value) {
    m_createdDateHasBeenSet = true;
    m_createdDate = std::forward<CreatedDateT>(value);
  }
  template <typename CreatedDateT = Aws::Utils::DateTime>
  GetIntentResult& WithCreatedDate(CreatedDateT&& value) {
    SetCreatedDate(std::forward<CreatedDateT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The version of the intent.</p>
   */
  inline const Aws::String& GetVersion() const { return m_version; }
  template <typename VersionT = Aws::String>
  void SetVersion(VersionT&& value) {
    m_versionHasBeenSet = true;
    m_version = std::forward<VersionT>(value);
  }
  template <typename VersionT = Aws::String>
  GetIntentResult& WithVersion(VersionT&& value) {
    SetVersion(std::forward<VersionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Checksum of the intent.</p>
   */
  inline const Aws::String& GetChecksum() const { return m_checksum; }
  template <typename ChecksumT = Aws::String>
  void SetChecksum(ChecksumT&& value) {
    m_checksumHasBeenSet = true;
    m_checksum = std::forward<ChecksumT>(value);
  }
  template <typename ChecksumT = Aws::String>
  GetIntentResult& WithChecksum(ChecksumT&& value) {
    SetChecksum(std::forward<ChecksumT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Configuration information, if any, to connect to an Amazon Kendra index with
   * the <code>AMAZON.KendraSearchIntent</code> intent.</p>
   */
  inline const KendraConfiguration& GetKendraConfiguration() const { return m_kendraConfiguration; }
  template <typename KendraConfigurationT = KendraConfiguration>
  void SetKendraConfiguration(KendraConfigurationT&& value) {
    m_kendraConfigurationHasBeenSet = true;
    m_kendraConfiguration = std::forward<KendraConfigurationT>(value);
  }
  template <typename KendraConfigurationT = KendraConfiguration>
  GetIntentResult& WithKendraConfiguration(KendraConfigurationT&& value) {
    SetKendraConfiguration(std::forward<KendraConfigurationT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An array of <code>InputContext</code> objects that lists the contexts that
   * must be active for Amazon Lex to choose the intent in a conversation with the
   * user.</p>
   */
  inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
  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>>
  GetIntentResult& WithInputContexts(InputContextsT&& value) {
    SetInputContexts(std::forward<InputContextsT>(value));
    return *this;
  }
  template <typename InputContextsT = InputContext>
  GetIntentResult& AddInputContexts(InputContextsT&& value) {
    m_inputContextsHasBeenSet = true;
    m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An array of <code>OutputContext</code> objects that lists the contexts that
   * the intent activates when the intent is fulfilled.</p>
   */
  inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
  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>>
  GetIntentResult& WithOutputContexts(OutputContextsT&& value) {
    SetOutputContexts(std::forward<OutputContextsT>(value));
    return *this;
  }
  template <typename OutputContextsT = OutputContext>
  GetIntentResult& AddOutputContexts(OutputContextsT&& value) {
    m_outputContextsHasBeenSet = true;
    m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  GetIntentResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
  inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }

 private:
  Aws::String m_name;

  Aws::String m_description;

  Aws::Vector<Slot> m_slots;

  Aws::Vector<Aws::String> m_sampleUtterances;

  Prompt m_confirmationPrompt;

  Statement m_rejectionStatement;

  FollowUpPrompt m_followUpPrompt;

  Statement m_conclusionStatement;

  CodeHook m_dialogCodeHook;

  FulfillmentActivity m_fulfillmentActivity;

  Aws::String m_parentIntentSignature;

  Aws::Utils::DateTime m_lastUpdatedDate{};

  Aws::Utils::DateTime m_createdDate{};

  Aws::String m_version;

  Aws::String m_checksum;

  KendraConfiguration m_kendraConfiguration;

  Aws::Vector<InputContext> m_inputContexts;

  Aws::Vector<OutputContext> m_outputContexts;

  Aws::String m_requestId;
  Aws::Http::HttpResponseCode m_HttpResponseCode;
  bool m_nameHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
  bool m_slotsHasBeenSet = false;
  bool m_sampleUtterancesHasBeenSet = false;
  bool m_confirmationPromptHasBeenSet = false;
  bool m_rejectionStatementHasBeenSet = false;
  bool m_followUpPromptHasBeenSet = false;
  bool m_conclusionStatementHasBeenSet = false;
  bool m_dialogCodeHookHasBeenSet = false;
  bool m_fulfillmentActivityHasBeenSet = false;
  bool m_parentIntentSignatureHasBeenSet = false;
  bool m_lastUpdatedDateHasBeenSet = false;
  bool m_createdDateHasBeenSet = false;
  bool m_versionHasBeenSet = false;
  bool m_checksumHasBeenSet = false;
  bool m_kendraConfigurationHasBeenSet = false;
  bool m_inputContextsHasBeenSet = false;
  bool m_outputContextsHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace LexModelBuildingService
}  // namespace Aws
