AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ConversationLogSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/AudioLogSetting.h>
10#include <aws/lexv2-models/model/TextLogSetting.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2 {
22namespace Model {
23
31 public:
32 AWS_LEXMODELSV2_API ConversationLogSettings() = default;
35 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<TextLogSetting>& GetTextLogSettings() const { return m_textLogSettings; }
42 inline bool TextLogSettingsHasBeenSet() const { return m_textLogSettingsHasBeenSet; }
43 template <typename TextLogSettingsT = Aws::Vector<TextLogSetting>>
44 void SetTextLogSettings(TextLogSettingsT&& value) {
45 m_textLogSettingsHasBeenSet = true;
46 m_textLogSettings = std::forward<TextLogSettingsT>(value);
47 }
48 template <typename TextLogSettingsT = Aws::Vector<TextLogSetting>>
49 ConversationLogSettings& WithTextLogSettings(TextLogSettingsT&& value) {
50 SetTextLogSettings(std::forward<TextLogSettingsT>(value));
51 return *this;
52 }
53 template <typename TextLogSettingsT = TextLogSetting>
54 ConversationLogSettings& AddTextLogSettings(TextLogSettingsT&& value) {
55 m_textLogSettingsHasBeenSet = true;
56 m_textLogSettings.emplace_back(std::forward<TextLogSettingsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<AudioLogSetting>& GetAudioLogSettings() const { return m_audioLogSettings; }
66 inline bool AudioLogSettingsHasBeenSet() const { return m_audioLogSettingsHasBeenSet; }
67 template <typename AudioLogSettingsT = Aws::Vector<AudioLogSetting>>
68 void SetAudioLogSettings(AudioLogSettingsT&& value) {
69 m_audioLogSettingsHasBeenSet = true;
70 m_audioLogSettings = std::forward<AudioLogSettingsT>(value);
71 }
72 template <typename AudioLogSettingsT = Aws::Vector<AudioLogSetting>>
73 ConversationLogSettings& WithAudioLogSettings(AudioLogSettingsT&& value) {
74 SetAudioLogSettings(std::forward<AudioLogSettingsT>(value));
75 return *this;
76 }
77 template <typename AudioLogSettingsT = AudioLogSetting>
78 ConversationLogSettings& AddAudioLogSettings(AudioLogSettingsT&& value) {
79 m_audioLogSettingsHasBeenSet = true;
80 m_audioLogSettings.emplace_back(std::forward<AudioLogSettingsT>(value));
81 return *this;
82 }
84 private:
85 Aws::Vector<TextLogSetting> m_textLogSettings;
86
87 Aws::Vector<AudioLogSetting> m_audioLogSettings;
88 bool m_textLogSettingsHasBeenSet = false;
89 bool m_audioLogSettingsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace LexModelsV2
94} // namespace Aws
AWS_LEXMODELSV2_API ConversationLogSettings()=default
AWS_LEXMODELSV2_API ConversationLogSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AudioLogSetting > & GetAudioLogSettings() const
ConversationLogSettings & WithTextLogSettings(TextLogSettingsT &&value)
const Aws::Vector< TextLogSetting > & GetTextLogSettings() const
ConversationLogSettings & AddTextLogSettings(TextLogSettingsT &&value)
AWS_LEXMODELSV2_API ConversationLogSettings(Aws::Utils::Json::JsonView jsonValue)
ConversationLogSettings & WithAudioLogSettings(AudioLogSettingsT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ConversationLogSettings & AddAudioLogSettings(AudioLogSettingsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue