AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
PromptAttemptSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/AllowedInputTypes.h>
9#include <aws/lexv2-models/model/AudioAndDTMFInputSpecification.h>
10#include <aws/lexv2-models/model/TextInputSpecification.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
30 public:
31 AWS_LEXMODELSV2_API PromptAttemptSpecification() = default;
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetAllowInterrupt() const { return m_allowInterrupt; }
42 inline bool AllowInterruptHasBeenSet() const { return m_allowInterruptHasBeenSet; }
43 inline void SetAllowInterrupt(bool value) {
44 m_allowInterruptHasBeenSet = true;
45 m_allowInterrupt = value;
46 }
48 SetAllowInterrupt(value);
49 return *this;
50 }
52
54
57 inline const AllowedInputTypes& GetAllowedInputTypes() const { return m_allowedInputTypes; }
58 inline bool AllowedInputTypesHasBeenSet() const { return m_allowedInputTypesHasBeenSet; }
59 template <typename AllowedInputTypesT = AllowedInputTypes>
60 void SetAllowedInputTypes(AllowedInputTypesT&& value) {
61 m_allowedInputTypesHasBeenSet = true;
62 m_allowedInputTypes = std::forward<AllowedInputTypesT>(value);
63 }
64 template <typename AllowedInputTypesT = AllowedInputTypes>
66 SetAllowedInputTypes(std::forward<AllowedInputTypesT>(value));
67 return *this;
68 }
70
72
75 inline const AudioAndDTMFInputSpecification& GetAudioAndDTMFInputSpecification() const { return m_audioAndDTMFInputSpecification; }
76 inline bool AudioAndDTMFInputSpecificationHasBeenSet() const { return m_audioAndDTMFInputSpecificationHasBeenSet; }
77 template <typename AudioAndDTMFInputSpecificationT = AudioAndDTMFInputSpecification>
78 void SetAudioAndDTMFInputSpecification(AudioAndDTMFInputSpecificationT&& value) {
79 m_audioAndDTMFInputSpecificationHasBeenSet = true;
80 m_audioAndDTMFInputSpecification = std::forward<AudioAndDTMFInputSpecificationT>(value);
81 }
82 template <typename AudioAndDTMFInputSpecificationT = AudioAndDTMFInputSpecification>
83 PromptAttemptSpecification& WithAudioAndDTMFInputSpecification(AudioAndDTMFInputSpecificationT&& value) {
84 SetAudioAndDTMFInputSpecification(std::forward<AudioAndDTMFInputSpecificationT>(value));
85 return *this;
86 }
88
90
93 inline const TextInputSpecification& GetTextInputSpecification() const { return m_textInputSpecification; }
94 inline bool TextInputSpecificationHasBeenSet() const { return m_textInputSpecificationHasBeenSet; }
95 template <typename TextInputSpecificationT = TextInputSpecification>
96 void SetTextInputSpecification(TextInputSpecificationT&& value) {
97 m_textInputSpecificationHasBeenSet = true;
98 m_textInputSpecification = std::forward<TextInputSpecificationT>(value);
99 }
100 template <typename TextInputSpecificationT = TextInputSpecification>
101 PromptAttemptSpecification& WithTextInputSpecification(TextInputSpecificationT&& value) {
102 SetTextInputSpecification(std::forward<TextInputSpecificationT>(value));
103 return *this;
104 }
106 private:
107 bool m_allowInterrupt{false};
108
109 AllowedInputTypes m_allowedInputTypes;
110
111 AudioAndDTMFInputSpecification m_audioAndDTMFInputSpecification;
112
113 TextInputSpecification m_textInputSpecification;
114 bool m_allowInterruptHasBeenSet = false;
115 bool m_allowedInputTypesHasBeenSet = false;
116 bool m_audioAndDTMFInputSpecificationHasBeenSet = false;
117 bool m_textInputSpecificationHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace LexModelsV2
122} // namespace Aws
PromptAttemptSpecification & WithTextInputSpecification(TextInputSpecificationT &&value)
PromptAttemptSpecification & WithAllowInterrupt(bool value)
const TextInputSpecification & GetTextInputSpecification() const
void SetAudioAndDTMFInputSpecification(AudioAndDTMFInputSpecificationT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const AudioAndDTMFInputSpecification & GetAudioAndDTMFInputSpecification() const
PromptAttemptSpecification & WithAllowedInputTypes(AllowedInputTypesT &&value)
void SetTextInputSpecification(TextInputSpecificationT &&value)
PromptAttemptSpecification & WithAudioAndDTMFInputSpecification(AudioAndDTMFInputSpecificationT &&value)
AWS_LEXMODELSV2_API PromptAttemptSpecification()=default
AWS_LEXMODELSV2_API PromptAttemptSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API PromptAttemptSpecification(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue