AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
StreamEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs/IVS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IVS {
21namespace Model {
22
31 public:
32 AWS_IVS_API StreamEvent() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 StreamEvent& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 template <typename TypeT = Aws::String>
62 void SetType(TypeT&& value) {
63 m_typeHasBeenSet = true;
64 m_type = std::forward<TypeT>(value);
65 }
66 template <typename TypeT = Aws::String>
67 StreamEvent& WithType(TypeT&& value) {
68 SetType(std::forward<TypeT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
79 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
80 template <typename EventTimeT = Aws::Utils::DateTime>
81 void SetEventTime(EventTimeT&& value) {
82 m_eventTimeHasBeenSet = true;
83 m_eventTime = std::forward<EventTimeT>(value);
84 }
85 template <typename EventTimeT = Aws::Utils::DateTime>
86 StreamEvent& WithEventTime(EventTimeT&& value) {
87 SetEventTime(std::forward<EventTimeT>(value));
88 return *this;
89 }
91
93
127 inline const Aws::String& GetCode() const { return m_code; }
128 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
129 template <typename CodeT = Aws::String>
130 void SetCode(CodeT&& value) {
131 m_codeHasBeenSet = true;
132 m_code = std::forward<CodeT>(value);
133 }
134 template <typename CodeT = Aws::String>
135 StreamEvent& WithCode(CodeT&& value) {
136 SetCode(std::forward<CodeT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_name;
142
143 Aws::String m_type;
144
145 Aws::Utils::DateTime m_eventTime{};
146
147 Aws::String m_code;
148 bool m_nameHasBeenSet = false;
149 bool m_typeHasBeenSet = false;
150 bool m_eventTimeHasBeenSet = false;
151 bool m_codeHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace IVS
156} // namespace Aws
void SetEventTime(EventTimeT &&value)
Definition StreamEvent.h:81
const Aws::String & GetType() const
Definition StreamEvent.h:59
void SetName(NameT &&value)
Definition StreamEvent.h:44
StreamEvent & WithName(NameT &&value)
Definition StreamEvent.h:49
const Aws::String & GetCode() const
const Aws::Utils::DateTime & GetEventTime() const
Definition StreamEvent.h:78
StreamEvent & WithEventTime(EventTimeT &&value)
Definition StreamEvent.h:86
StreamEvent & WithType(TypeT &&value)
Definition StreamEvent.h:67
const Aws::String & GetName() const
Definition StreamEvent.h:41
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)
void SetType(TypeT &&value)
Definition StreamEvent.h:62
AWS_IVS_API StreamEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamEvent & WithCode(CodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue