AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
TextEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/polly/Polly_EXPORTS.h>
9#include <aws/polly/model/FlushStreamConfiguration.h>
10#include <aws/polly/model/TextType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Polly {
22namespace Model {
23
29class TextEvent {
30 public:
31 AWS_POLLY_API TextEvent() = default;
32 AWS_POLLY_API TextEvent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
49 TextEvent& WithText(TextT&& value) {
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
60 inline TextType GetTextType() const { return m_textType; }
61 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
62 inline void SetTextType(TextType value) {
63 m_textTypeHasBeenSet = true;
64 m_textType = value;
65 }
67 SetTextType(value);
68 return *this;
69 }
71
73
77 inline const FlushStreamConfiguration& GetFlushStreamConfiguration() const { return m_flushStreamConfiguration; }
78 inline bool FlushStreamConfigurationHasBeenSet() const { return m_flushStreamConfigurationHasBeenSet; }
79 template <typename FlushStreamConfigurationT = FlushStreamConfiguration>
80 void SetFlushStreamConfiguration(FlushStreamConfigurationT&& value) {
81 m_flushStreamConfigurationHasBeenSet = true;
82 m_flushStreamConfiguration = std::forward<FlushStreamConfigurationT>(value);
83 }
84 template <typename FlushStreamConfigurationT = FlushStreamConfiguration>
85 TextEvent& WithFlushStreamConfiguration(FlushStreamConfigurationT&& value) {
86 SetFlushStreamConfiguration(std::forward<FlushStreamConfigurationT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_text;
92
93 TextType m_textType{TextType::NOT_SET};
94
95 FlushStreamConfiguration m_flushStreamConfiguration;
96 bool m_textHasBeenSet = false;
97 bool m_textTypeHasBeenSet = false;
98 bool m_flushStreamConfigurationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Polly
103} // namespace Aws
AWS_POLLY_API TextEvent()=default
bool TextTypeHasBeenSet() const
Definition TextEvent.h:61
TextEvent & WithTextType(TextType value)
Definition TextEvent.h:66
const Aws::String & GetText() const
Definition TextEvent.h:41
TextEvent & WithFlushStreamConfiguration(FlushStreamConfigurationT &&value)
Definition TextEvent.h:85
TextType GetTextType() const
Definition TextEvent.h:60
AWS_POLLY_API TextEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FlushStreamConfigurationHasBeenSet() const
Definition TextEvent.h:78
const FlushStreamConfiguration & GetFlushStreamConfiguration() const
Definition TextEvent.h:77
void SetFlushStreamConfiguration(FlushStreamConfigurationT &&value)
Definition TextEvent.h:80
TextEvent & WithText(TextT &&value)
Definition TextEvent.h:49
void SetTextType(TextType value)
Definition TextEvent.h:62
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_POLLY_API TextEvent(Aws::Utils::Json::JsonView jsonValue)
void SetText(TextT &&value)
Definition TextEvent.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue