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

#pragma once
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
#include <aws/transcribestreaming/model/ChannelDefinition.h>
#include <aws/transcribestreaming/model/PostCallAnalyticsSettings.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace TranscribeStreamingService {
namespace Model {

/**
 * <p>Allows you to set audio channel definitions and post-call analytics
 * settings.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/ConfigurationEvent">AWS
 * API Reference</a></p>
 */
class ConfigurationEvent {
 public:
  AWS_TRANSCRIBESTREAMINGSERVICE_API ConfigurationEvent() = default;
  AWS_TRANSCRIBESTREAMINGSERVICE_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue);
  AWS_TRANSCRIBESTREAMINGSERVICE_API ConfigurationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>Indicates which speaker is on which audio channel.</p>
   */
  inline const Aws::Vector<ChannelDefinition>& GetChannelDefinitions() const { return m_channelDefinitions; }
  inline bool ChannelDefinitionsHasBeenSet() const { return m_channelDefinitionsHasBeenSet; }
  template <typename ChannelDefinitionsT = Aws::Vector<ChannelDefinition>>
  void SetChannelDefinitions(ChannelDefinitionsT&& value) {
    m_channelDefinitionsHasBeenSet = true;
    m_channelDefinitions = std::forward<ChannelDefinitionsT>(value);
  }
  template <typename ChannelDefinitionsT = Aws::Vector<ChannelDefinition>>
  ConfigurationEvent& WithChannelDefinitions(ChannelDefinitionsT&& value) {
    SetChannelDefinitions(std::forward<ChannelDefinitionsT>(value));
    return *this;
  }
  template <typename ChannelDefinitionsT = ChannelDefinition>
  ConfigurationEvent& AddChannelDefinitions(ChannelDefinitionsT&& value) {
    m_channelDefinitionsHasBeenSet = true;
    m_channelDefinitions.emplace_back(std::forward<ChannelDefinitionsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Provides additional optional settings for your Call Analytics post-call
   * request, including encryption and output locations for your redacted
   * transcript.</p> <p> <code>PostCallAnalyticsSettings</code> provides you with the
   * same insights as a Call Analytics post-call transcription. Refer to <a
   * href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html">Post-call
   * analytics</a> for more information on this feature.</p>
   */
  inline const PostCallAnalyticsSettings& GetPostCallAnalyticsSettings() const { return m_postCallAnalyticsSettings; }
  inline bool PostCallAnalyticsSettingsHasBeenSet() const { return m_postCallAnalyticsSettingsHasBeenSet; }
  template <typename PostCallAnalyticsSettingsT = PostCallAnalyticsSettings>
  void SetPostCallAnalyticsSettings(PostCallAnalyticsSettingsT&& value) {
    m_postCallAnalyticsSettingsHasBeenSet = true;
    m_postCallAnalyticsSettings = std::forward<PostCallAnalyticsSettingsT>(value);
  }
  template <typename PostCallAnalyticsSettingsT = PostCallAnalyticsSettings>
  ConfigurationEvent& WithPostCallAnalyticsSettings(PostCallAnalyticsSettingsT&& value) {
    SetPostCallAnalyticsSettings(std::forward<PostCallAnalyticsSettingsT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<ChannelDefinition> m_channelDefinitions;

  PostCallAnalyticsSettings m_postCallAnalyticsSettings;
  bool m_channelDefinitionsHasBeenSet = false;
  bool m_postCallAnalyticsSettingsHasBeenSet = false;
};

}  // namespace Model
}  // namespace TranscribeStreamingService
}  // namespace Aws
