AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LEXMODELSV2_API PromptAttemptSpecification() = default;
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetAllowInterrupt() const { return m_allowInterrupt; }
48 inline bool AllowInterruptHasBeenSet() const { return m_allowInterruptHasBeenSet; }
49 inline void SetAllowInterrupt(bool value) { m_allowInterruptHasBeenSet = true; m_allowInterrupt = value; }
50 inline PromptAttemptSpecification& WithAllowInterrupt(bool value) { SetAllowInterrupt(value); return *this;}
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) { m_allowedInputTypesHasBeenSet = true; m_allowedInputTypes = std::forward<AllowedInputTypesT>(value); }
61 template<typename AllowedInputTypesT = AllowedInputTypes>
62 PromptAttemptSpecification& WithAllowedInputTypes(AllowedInputTypesT&& value) { SetAllowedInputTypes(std::forward<AllowedInputTypesT>(value)); return *this;}
64
66
69 inline const AudioAndDTMFInputSpecification& GetAudioAndDTMFInputSpecification() const { return m_audioAndDTMFInputSpecification; }
70 inline bool AudioAndDTMFInputSpecificationHasBeenSet() const { return m_audioAndDTMFInputSpecificationHasBeenSet; }
71 template<typename AudioAndDTMFInputSpecificationT = AudioAndDTMFInputSpecification>
72 void SetAudioAndDTMFInputSpecification(AudioAndDTMFInputSpecificationT&& value) { m_audioAndDTMFInputSpecificationHasBeenSet = true; m_audioAndDTMFInputSpecification = std::forward<AudioAndDTMFInputSpecificationT>(value); }
73 template<typename AudioAndDTMFInputSpecificationT = AudioAndDTMFInputSpecification>
74 PromptAttemptSpecification& WithAudioAndDTMFInputSpecification(AudioAndDTMFInputSpecificationT&& value) { SetAudioAndDTMFInputSpecification(std::forward<AudioAndDTMFInputSpecificationT>(value)); return *this;}
76
78
81 inline const TextInputSpecification& GetTextInputSpecification() const { return m_textInputSpecification; }
82 inline bool TextInputSpecificationHasBeenSet() const { return m_textInputSpecificationHasBeenSet; }
83 template<typename TextInputSpecificationT = TextInputSpecification>
84 void SetTextInputSpecification(TextInputSpecificationT&& value) { m_textInputSpecificationHasBeenSet = true; m_textInputSpecification = std::forward<TextInputSpecificationT>(value); }
85 template<typename TextInputSpecificationT = TextInputSpecification>
86 PromptAttemptSpecification& WithTextInputSpecification(TextInputSpecificationT&& value) { SetTextInputSpecification(std::forward<TextInputSpecificationT>(value)); return *this;}
88 private:
89
90 bool m_allowInterrupt{false};
91 bool m_allowInterruptHasBeenSet = false;
92
93 AllowedInputTypes m_allowedInputTypes;
94 bool m_allowedInputTypesHasBeenSet = false;
95
96 AudioAndDTMFInputSpecification m_audioAndDTMFInputSpecification;
97 bool m_audioAndDTMFInputSpecificationHasBeenSet = false;
98
99 TextInputSpecification m_textInputSpecification;
100 bool m_textInputSpecificationHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace LexModelsV2
105} // 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