AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIntent(const UserTurnIntentOutput& value) { m_intentHasBeenSet = true; m_intent = value; }
51 inline void SetIntent(UserTurnIntentOutput&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); }
52 inline UserTurnOutputSpecification& WithIntent(const UserTurnIntentOutput& value) { SetIntent(value); return *this;}
53 inline UserTurnOutputSpecification& WithIntent(UserTurnIntentOutput&& value) { SetIntent(std::move(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 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
63 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
66 inline UserTurnOutputSpecification& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
67 inline UserTurnOutputSpecification& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::String& GetTranscript() const{ return m_transcript; }
75 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
76 inline void SetTranscript(const Aws::String& value) { m_transcriptHasBeenSet = true; m_transcript = value; }
77 inline void SetTranscript(Aws::String&& value) { m_transcriptHasBeenSet = true; m_transcript = std::move(value); }
78 inline void SetTranscript(const char* value) { m_transcriptHasBeenSet = true; m_transcript.assign(value); }
79 inline UserTurnOutputSpecification& WithTranscript(const Aws::String& value) { SetTranscript(value); return *this;}
80 inline UserTurnOutputSpecification& WithTranscript(Aws::String&& value) { SetTranscript(std::move(value)); return *this;}
81 inline UserTurnOutputSpecification& WithTranscript(const char* value) { SetTranscript(value); return *this;}
83 private:
84
85 UserTurnIntentOutput m_intent;
86 bool m_intentHasBeenSet = false;
87
88 Aws::Vector<ActiveContext> m_activeContexts;
89 bool m_activeContextsHasBeenSet = false;
90
91 Aws::String m_transcript;
92 bool m_transcriptHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace LexModelsV2
97} // namespace Aws
UserTurnOutputSpecification & AddActiveContexts(ActiveContext &&value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
UserTurnOutputSpecification & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
UserTurnOutputSpecification & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
UserTurnOutputSpecification & WithTranscript(Aws::String &&value)
UserTurnOutputSpecification & WithIntent(const UserTurnIntentOutput &value)
UserTurnOutputSpecification & AddActiveContexts(const ActiveContext &value)
AWS_LEXMODELSV2_API UserTurnOutputSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
UserTurnOutputSpecification & WithTranscript(const char *value)
AWS_LEXMODELSV2_API UserTurnOutputSpecification(Aws::Utils::Json::JsonView jsonValue)
UserTurnOutputSpecification & WithIntent(UserTurnIntentOutput &&value)
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
UserTurnOutputSpecification & WithTranscript(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue