AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PlaybackInterruptionEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/PlaybackInterruptionReason.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexRuntimeV2
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent() = default;
43 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline PlaybackInterruptionReason GetEventReason() const { return m_eventReason; }
51 inline bool EventReasonHasBeenSet() const { return m_eventReasonHasBeenSet; }
52 inline void SetEventReason(PlaybackInterruptionReason value) { m_eventReasonHasBeenSet = true; m_eventReason = value; }
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) { m_causedByEventIdHasBeenSet = true; m_causedByEventId = std::forward<CausedByEventIdT>(value); }
65 template<typename CausedByEventIdT = Aws::String>
66 PlaybackInterruptionEvent& WithCausedByEventId(CausedByEventIdT&& value) { SetCausedByEventId(std::forward<CausedByEventIdT>(value)); return *this;}
68
70
75 inline const Aws::String& GetEventId() const { return m_eventId; }
76 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
77 template<typename EventIdT = Aws::String>
78 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
79 template<typename EventIdT = Aws::String>
80 PlaybackInterruptionEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
82 private:
83
85 bool m_eventReasonHasBeenSet = false;
86
87 Aws::String m_causedByEventId;
88 bool m_causedByEventIdHasBeenSet = false;
89
90 Aws::String m_eventId;
91 bool m_eventIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace LexRuntimeV2
96} // 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