AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const PlaybackInterruptionReason& GetEventReason() const{ return m_eventReason; }
51 inline bool EventReasonHasBeenSet() const { return m_eventReasonHasBeenSet; }
52 inline void SetEventReason(const PlaybackInterruptionReason& value) { m_eventReasonHasBeenSet = true; m_eventReason = value; }
53 inline void SetEventReason(PlaybackInterruptionReason&& value) { m_eventReasonHasBeenSet = true; m_eventReason = std::move(value); }
55 inline PlaybackInterruptionEvent& WithEventReason(PlaybackInterruptionReason&& value) { SetEventReason(std::move(value)); return *this;}
57
59
63 inline const Aws::String& GetCausedByEventId() const{ return m_causedByEventId; }
64 inline bool CausedByEventIdHasBeenSet() const { return m_causedByEventIdHasBeenSet; }
65 inline void SetCausedByEventId(const Aws::String& value) { m_causedByEventIdHasBeenSet = true; m_causedByEventId = value; }
66 inline void SetCausedByEventId(Aws::String&& value) { m_causedByEventIdHasBeenSet = true; m_causedByEventId = std::move(value); }
67 inline void SetCausedByEventId(const char* value) { m_causedByEventIdHasBeenSet = true; m_causedByEventId.assign(value); }
68 inline PlaybackInterruptionEvent& WithCausedByEventId(const Aws::String& value) { SetCausedByEventId(value); return *this;}
69 inline PlaybackInterruptionEvent& WithCausedByEventId(Aws::String&& value) { SetCausedByEventId(std::move(value)); return *this;}
70 inline PlaybackInterruptionEvent& WithCausedByEventId(const char* value) { SetCausedByEventId(value); return *this;}
72
74
79 inline const Aws::String& GetEventId() const{ return m_eventId; }
80 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
81 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
82 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
83 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
84 inline PlaybackInterruptionEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
85 inline PlaybackInterruptionEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
86 inline PlaybackInterruptionEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
88 private:
89
90 PlaybackInterruptionReason m_eventReason;
91 bool m_eventReasonHasBeenSet = false;
92
93 Aws::String m_causedByEventId;
94 bool m_causedByEventIdHasBeenSet = false;
95
96 Aws::String m_eventId;
97 bool m_eventIdHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace LexRuntimeV2
102} // namespace Aws
PlaybackInterruptionEvent & WithEventId(Aws::String &&value)
PlaybackInterruptionEvent & WithEventId(const char *value)
AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
PlaybackInterruptionEvent & WithCausedByEventId(const Aws::String &value)
const PlaybackInterruptionReason & GetEventReason() const
void SetEventReason(const PlaybackInterruptionReason &value)
PlaybackInterruptionEvent & WithEventReason(PlaybackInterruptionReason &&value)
PlaybackInterruptionEvent & WithCausedByEventId(Aws::String &&value)
PlaybackInterruptionEvent & WithCausedByEventId(const char *value)
PlaybackInterruptionEvent & WithEventReason(const PlaybackInterruptionReason &value)
PlaybackInterruptionEvent & WithEventId(const Aws::String &value)
AWS_LEXRUNTIMEV2_API PlaybackInterruptionEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventReason(PlaybackInterruptionReason &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue