AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
58 inline const Aws::String& GetCode() const{ return m_code; }
59 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
60 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
61 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
62 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
63 inline StreamEvent& WithCode(const Aws::String& value) { SetCode(value); return *this;}
64 inline StreamEvent& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
65 inline StreamEvent& WithCode(const char* value) { SetCode(value); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
74 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
75 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
76 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
77 inline StreamEvent& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
78 inline StreamEvent& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
90 inline StreamEvent& WithName(const Aws::String& value) { SetName(value); return *this;}
91 inline StreamEvent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 inline StreamEvent& WithName(const char* value) { SetName(value); return *this;}
94
96
99 inline const Aws::String& GetType() const{ return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
102 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
104 inline StreamEvent& WithType(const Aws::String& value) { SetType(value); return *this;}
105 inline StreamEvent& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
106 inline StreamEvent& WithType(const char* value) { SetType(value); return *this;}
108 private:
109
110 Aws::String m_code;
111 bool m_codeHasBeenSet = false;
112
113 Aws::Utils::DateTime m_eventTime;
114 bool m_eventTimeHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_type;
120 bool m_typeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IVS
125} // namespace Aws
StreamEvent & WithName(const char *value)
Definition StreamEvent.h:92
void SetName(Aws::String &&value)
Definition StreamEvent.h:88
StreamEvent & WithName(const Aws::String &value)
Definition StreamEvent.h:90
StreamEvent & WithCode(const char *value)
Definition StreamEvent.h:65
void SetEventTime(const Aws::Utils::DateTime &value)
Definition StreamEvent.h:75
StreamEvent & WithCode(const Aws::String &value)
Definition StreamEvent.h:63
void SetName(const char *value)
Definition StreamEvent.h:89
const Aws::String & GetType() const
Definition StreamEvent.h:99
void SetCode(Aws::String &&value)
Definition StreamEvent.h:61
const Aws::String & GetCode() const
Definition StreamEvent.h:58
StreamEvent & WithEventTime(const Aws::Utils::DateTime &value)
Definition StreamEvent.h:77
StreamEvent & WithType(Aws::String &&value)
void SetName(const Aws::String &value)
Definition StreamEvent.h:87
const Aws::Utils::DateTime & GetEventTime() const
Definition StreamEvent.h:73
StreamEvent & WithType(const Aws::String &value)
StreamEvent & WithName(Aws::String &&value)
Definition StreamEvent.h:91
const Aws::String & GetName() const
Definition StreamEvent.h:85
AWS_IVS_API StreamEvent(Aws::Utils::Json::JsonView jsonValue)
void SetType(Aws::String &&value)
void SetCode(const char *value)
Definition StreamEvent.h:62
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamEvent & WithCode(Aws::String &&value)
Definition StreamEvent.h:64
AWS_IVS_API StreamEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamEvent & WithType(const char *value)
void SetCode(const Aws::String &value)
Definition StreamEvent.h:60
void SetType(const char *value)
void SetType(const Aws::String &value)
StreamEvent & WithEventTime(Aws::Utils::DateTime &&value)
Definition StreamEvent.h:78
void SetEventTime(Aws::Utils::DateTime &&value)
Definition StreamEvent.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue