AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StreamEvent.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 IVS
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_IVS_API StreamEvent() = default;
41
42
44
78 inline const Aws::String& GetCode() const { return m_code; }
79 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
80 template<typename CodeT = Aws::String>
81 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
82 template<typename CodeT = Aws::String>
83 StreamEvent& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
92 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
93 template<typename EventTimeT = Aws::Utils::DateTime>
94 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
95 template<typename EventTimeT = Aws::Utils::DateTime>
96 StreamEvent& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template<typename NameT = Aws::String>
106 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
107 template<typename NameT = Aws::String>
108 StreamEvent& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
110
112
115 inline const Aws::String& GetType() const { return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 template<typename TypeT = Aws::String>
118 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
119 template<typename TypeT = Aws::String>
120 StreamEvent& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
122 private:
123
124 Aws::String m_code;
125 bool m_codeHasBeenSet = false;
126
127 Aws::Utils::DateTime m_eventTime{};
128 bool m_eventTimeHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_type;
134 bool m_typeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace IVS
139} // namespace Aws
void SetEventTime(EventTimeT &&value)
Definition StreamEvent.h:94
const Aws::String & GetType() const
void SetName(NameT &&value)
StreamEvent & WithName(NameT &&value)
const Aws::String & GetCode() const
Definition StreamEvent.h:78
const Aws::Utils::DateTime & GetEventTime() const
Definition StreamEvent.h:91
StreamEvent & WithEventTime(EventTimeT &&value)
Definition StreamEvent.h:96
StreamEvent & WithType(TypeT &&value)
const Aws::String & GetName() const
AWS_IVS_API StreamEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IVS_API StreamEvent()=default
void SetCode(CodeT &&value)
Definition StreamEvent.h:81
void SetType(TypeT &&value)
AWS_IVS_API StreamEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamEvent & WithCode(CodeT &&value)
Definition StreamEvent.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue