AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
PlaybackInterruptionEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
9#include <aws/lexv2-runtime/model/PlaybackInterruptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexRuntimeV2 {
21namespace Model {
22
34 public:
35 AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent() = default;
38 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline PlaybackInterruptionReason GetEventReason() const { return m_eventReason; }
45 inline bool EventReasonHasBeenSet() const { return m_eventReasonHasBeenSet; }
47 m_eventReasonHasBeenSet = true;
48 m_eventReason = value;
49 }
51 SetEventReason(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetCausedByEventId() const { return m_causedByEventId; }
62 inline bool CausedByEventIdHasBeenSet() const { return m_causedByEventIdHasBeenSet; }
63 template <typename CausedByEventIdT = Aws::String>
64 void SetCausedByEventId(CausedByEventIdT&& value) {
65 m_causedByEventIdHasBeenSet = true;
66 m_causedByEventId = std::forward<CausedByEventIdT>(value);
67 }
68 template <typename CausedByEventIdT = Aws::String>
70 SetCausedByEventId(std::forward<CausedByEventIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetEventId() const { return m_eventId; }
82 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
83 template <typename EventIdT = Aws::String>
84 void SetEventId(EventIdT&& value) {
85 m_eventIdHasBeenSet = true;
86 m_eventId = std::forward<EventIdT>(value);
87 }
88 template <typename EventIdT = Aws::String>
90 SetEventId(std::forward<EventIdT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_causedByEventId;
98
99 Aws::String m_eventId;
100 bool m_eventReasonHasBeenSet = false;
101 bool m_causedByEventIdHasBeenSet = false;
102 bool m_eventIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace LexRuntimeV2
107} // namespace Aws
AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
PlaybackInterruptionEvent & WithEventId(EventIdT &&value)
PlaybackInterruptionEvent & WithCausedByEventId(CausedByEventIdT &&value)
AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent()=default
PlaybackInterruptionEvent & WithEventReason(PlaybackInterruptionReason value)
AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue