AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UserTurnOutputSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/ActiveContext.h>
11#include <aws/lexv2-models/model/UserTurnIntentOutput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2 {
23namespace Model {
24
32 public:
33 AWS_LEXMODELSV2_API UserTurnOutputSpecification() = default;
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const UserTurnIntentOutput& GetIntent() const { return m_intent; }
43 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
44 template <typename IntentT = UserTurnIntentOutput>
45 void SetIntent(IntentT&& value) {
46 m_intentHasBeenSet = true;
47 m_intent = std::forward<IntentT>(value);
48 }
49 template <typename IntentT = UserTurnIntentOutput>
51 SetIntent(std::forward<IntentT>(value));
52 return *this;
53 }
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) {
64 m_activeContextsHasBeenSet = true;
65 m_activeContexts = std::forward<ActiveContextsT>(value);
66 }
67 template <typename ActiveContextsT = Aws::Vector<ActiveContext>>
69 SetActiveContexts(std::forward<ActiveContextsT>(value));
70 return *this;
71 }
72 template <typename ActiveContextsT = ActiveContext>
74 m_activeContextsHasBeenSet = true;
75 m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetTranscript() const { return m_transcript; }
85 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
86 template <typename TranscriptT = Aws::String>
87 void SetTranscript(TranscriptT&& value) {
88 m_transcriptHasBeenSet = true;
89 m_transcript = std::forward<TranscriptT>(value);
90 }
91 template <typename TranscriptT = Aws::String>
93 SetTranscript(std::forward<TranscriptT>(value));
94 return *this;
95 }
97 private:
98 UserTurnIntentOutput m_intent;
99
100 Aws::Vector<ActiveContext> m_activeContexts;
101
102 Aws::String m_transcript;
103 bool m_intentHasBeenSet = false;
104 bool m_activeContextsHasBeenSet = false;
105 bool m_transcriptHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace LexModelsV2
110} // 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