AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserTurnOutputSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/UserTurnIntentOutput.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lexv2-models/model/ActiveContext.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LEXMODELSV2_API UserTurnOutputSpecification() = default;
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const UserTurnIntentOutput& GetIntent() const { return m_intent; }
49 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
50 template<typename IntentT = UserTurnIntentOutput>
51 void SetIntent(IntentT&& value) { m_intentHasBeenSet = true; m_intent = std::forward<IntentT>(value); }
52 template<typename IntentT = UserTurnIntentOutput>
53 UserTurnOutputSpecification& WithIntent(IntentT&& value) { SetIntent(std::forward<IntentT>(value)); return *this;}
55
57
60 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const { return m_activeContexts; }
61 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
62 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
63 void SetActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::forward<ActiveContextsT>(value); }
64 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
65 UserTurnOutputSpecification& WithActiveContexts(ActiveContextsT&& value) { SetActiveContexts(std::forward<ActiveContextsT>(value)); return *this;}
66 template<typename ActiveContextsT = ActiveContext>
67 UserTurnOutputSpecification& AddActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetTranscript() const { return m_transcript; }
75 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
76 template<typename TranscriptT = Aws::String>
77 void SetTranscript(TranscriptT&& value) { m_transcriptHasBeenSet = true; m_transcript = std::forward<TranscriptT>(value); }
78 template<typename TranscriptT = Aws::String>
79 UserTurnOutputSpecification& WithTranscript(TranscriptT&& value) { SetTranscript(std::forward<TranscriptT>(value)); return *this;}
81 private:
82
83 UserTurnIntentOutput m_intent;
84 bool m_intentHasBeenSet = false;
85
86 Aws::Vector<ActiveContext> m_activeContexts;
87 bool m_activeContextsHasBeenSet = false;
88
89 Aws::String m_transcript;
90 bool m_transcriptHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace LexModelsV2
95} // namespace Aws
UserTurnOutputSpecification & WithTranscript(TranscriptT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API UserTurnOutputSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API UserTurnOutputSpecification()=default
UserTurnOutputSpecification & WithIntent(IntentT &&value)
AWS_LEXMODELSV2_API UserTurnOutputSpecification(Aws::Utils::Json::JsonView jsonValue)
UserTurnOutputSpecification & WithActiveContexts(ActiveContextsT &&value)
UserTurnOutputSpecification & AddActiveContexts(ActiveContextsT &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue