AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
72 inline const Aws::String& GetCode() const { return m_code; }
73 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
74 template <typename CodeT = Aws::String>
75 void SetCode(CodeT&& value) {
76 m_codeHasBeenSet = true;
77 m_code = std::forward<CodeT>(value);
78 }
79 template <typename CodeT = Aws::String>
80 StreamEvent& WithCode(CodeT&& value) {
81 SetCode(std::forward<CodeT>(value));
82 return *this;
83 }
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) {
95 m_eventTimeHasBeenSet = true;
96 m_eventTime = std::forward<EventTimeT>(value);
97 }
98 template <typename EventTimeT = Aws::Utils::DateTime>
99 StreamEvent& WithEventTime(EventTimeT&& value) {
100 SetEventTime(std::forward<EventTimeT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetName() const { return m_name; }
110 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
111 template <typename NameT = Aws::String>
112 void SetName(NameT&& value) {
113 m_nameHasBeenSet = true;
114 m_name = std::forward<NameT>(value);
115 }
116 template <typename NameT = Aws::String>
117 StreamEvent& WithName(NameT&& value) {
118 SetName(std::forward<NameT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetType() const { return m_type; }
128 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
129 template <typename TypeT = Aws::String>
130 void SetType(TypeT&& value) {
131 m_typeHasBeenSet = true;
132 m_type = std::forward<TypeT>(value);
133 }
134 template <typename TypeT = Aws::String>
135 StreamEvent& WithType(TypeT&& value) {
136 SetType(std::forward<TypeT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_code;
142
143 Aws::Utils::DateTime m_eventTime{};
144
145 Aws::String m_name;
146
147 Aws::String m_type;
148 bool m_codeHasBeenSet = false;
149 bool m_eventTimeHasBeenSet = false;
150 bool m_nameHasBeenSet = false;
151 bool m_typeHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace IVS
156} // 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:72
const Aws::Utils::DateTime & GetEventTime() const
Definition StreamEvent.h:91
StreamEvent & WithEventTime(EventTimeT &&value)
Definition StreamEvent.h:99
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:75
void SetType(TypeT &&value)
AWS_IVS_API StreamEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamEvent & WithCode(CodeT &&value)
Definition StreamEvent.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue