AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Fragment.h
1
6#pragma once
7#include <aws/kinesis-video-archived-media/KinesisVideoArchivedMedia_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 KinesisVideoArchivedMedia
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_KINESISVIDEOARCHIVEDMEDIA_API Fragment();
37 AWS_KINESISVIDEOARCHIVEDMEDIA_API Fragment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KINESISVIDEOARCHIVEDMEDIA_API Fragment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KINESISVIDEOARCHIVEDMEDIA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetFragmentNumber() const{ return m_fragmentNumber; }
48 inline bool FragmentNumberHasBeenSet() const { return m_fragmentNumberHasBeenSet; }
49 inline void SetFragmentNumber(const Aws::String& value) { m_fragmentNumberHasBeenSet = true; m_fragmentNumber = value; }
50 inline void SetFragmentNumber(Aws::String&& value) { m_fragmentNumberHasBeenSet = true; m_fragmentNumber = std::move(value); }
51 inline void SetFragmentNumber(const char* value) { m_fragmentNumberHasBeenSet = true; m_fragmentNumber.assign(value); }
52 inline Fragment& WithFragmentNumber(const Aws::String& value) { SetFragmentNumber(value); return *this;}
53 inline Fragment& WithFragmentNumber(Aws::String&& value) { SetFragmentNumber(std::move(value)); return *this;}
54 inline Fragment& WithFragmentNumber(const char* value) { SetFragmentNumber(value); return *this;}
56
58
62 inline long long GetFragmentSizeInBytes() const{ return m_fragmentSizeInBytes; }
63 inline bool FragmentSizeInBytesHasBeenSet() const { return m_fragmentSizeInBytesHasBeenSet; }
64 inline void SetFragmentSizeInBytes(long long value) { m_fragmentSizeInBytesHasBeenSet = true; m_fragmentSizeInBytes = value; }
65 inline Fragment& WithFragmentSizeInBytes(long long value) { SetFragmentSizeInBytes(value); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetProducerTimestamp() const{ return m_producerTimestamp; }
73 inline bool ProducerTimestampHasBeenSet() const { return m_producerTimestampHasBeenSet; }
74 inline void SetProducerTimestamp(const Aws::Utils::DateTime& value) { m_producerTimestampHasBeenSet = true; m_producerTimestamp = value; }
75 inline void SetProducerTimestamp(Aws::Utils::DateTime&& value) { m_producerTimestampHasBeenSet = true; m_producerTimestamp = std::move(value); }
76 inline Fragment& WithProducerTimestamp(const Aws::Utils::DateTime& value) { SetProducerTimestamp(value); return *this;}
77 inline Fragment& WithProducerTimestamp(Aws::Utils::DateTime&& value) { SetProducerTimestamp(std::move(value)); return *this;}
79
81
85 inline const Aws::Utils::DateTime& GetServerTimestamp() const{ return m_serverTimestamp; }
86 inline bool ServerTimestampHasBeenSet() const { return m_serverTimestampHasBeenSet; }
87 inline void SetServerTimestamp(const Aws::Utils::DateTime& value) { m_serverTimestampHasBeenSet = true; m_serverTimestamp = value; }
88 inline void SetServerTimestamp(Aws::Utils::DateTime&& value) { m_serverTimestampHasBeenSet = true; m_serverTimestamp = std::move(value); }
89 inline Fragment& WithServerTimestamp(const Aws::Utils::DateTime& value) { SetServerTimestamp(value); return *this;}
90 inline Fragment& WithServerTimestamp(Aws::Utils::DateTime&& value) { SetServerTimestamp(std::move(value)); return *this;}
92
94
97 inline long long GetFragmentLengthInMilliseconds() const{ return m_fragmentLengthInMilliseconds; }
98 inline bool FragmentLengthInMillisecondsHasBeenSet() const { return m_fragmentLengthInMillisecondsHasBeenSet; }
99 inline void SetFragmentLengthInMilliseconds(long long value) { m_fragmentLengthInMillisecondsHasBeenSet = true; m_fragmentLengthInMilliseconds = value; }
100 inline Fragment& WithFragmentLengthInMilliseconds(long long value) { SetFragmentLengthInMilliseconds(value); return *this;}
102 private:
103
104 Aws::String m_fragmentNumber;
105 bool m_fragmentNumberHasBeenSet = false;
106
107 long long m_fragmentSizeInBytes;
108 bool m_fragmentSizeInBytesHasBeenSet = false;
109
110 Aws::Utils::DateTime m_producerTimestamp;
111 bool m_producerTimestampHasBeenSet = false;
112
113 Aws::Utils::DateTime m_serverTimestamp;
114 bool m_serverTimestampHasBeenSet = false;
115
116 long long m_fragmentLengthInMilliseconds;
117 bool m_fragmentLengthInMillisecondsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace KinesisVideoArchivedMedia
122} // namespace Aws
Fragment & WithFragmentLengthInMilliseconds(long long value)
Definition Fragment.h:100
Fragment & WithFragmentNumber(const char *value)
Definition Fragment.h:54
Fragment & WithServerTimestamp(const Aws::Utils::DateTime &value)
Definition Fragment.h:89
const Aws::Utils::DateTime & GetProducerTimestamp() const
Definition Fragment.h:72
const Aws::Utils::DateTime & GetServerTimestamp() const
Definition Fragment.h:85
Fragment & WithFragmentNumber(const Aws::String &value)
Definition Fragment.h:52
Fragment & WithFragmentSizeInBytes(long long value)
Definition Fragment.h:65
AWS_KINESISVIDEOARCHIVEDMEDIA_API Fragment(Aws::Utils::Json::JsonView jsonValue)
void SetServerTimestamp(Aws::Utils::DateTime &&value)
Definition Fragment.h:88
AWS_KINESISVIDEOARCHIVEDMEDIA_API Fragment & operator=(Aws::Utils::Json::JsonView jsonValue)
Fragment & WithProducerTimestamp(const Aws::Utils::DateTime &value)
Definition Fragment.h:76
const Aws::String & GetFragmentNumber() const
Definition Fragment.h:47
Fragment & WithProducerTimestamp(Aws::Utils::DateTime &&value)
Definition Fragment.h:77
AWS_KINESISVIDEOARCHIVEDMEDIA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProducerTimestamp(const Aws::Utils::DateTime &value)
Definition Fragment.h:74
void SetServerTimestamp(const Aws::Utils::DateTime &value)
Definition Fragment.h:87
void SetProducerTimestamp(Aws::Utils::DateTime &&value)
Definition Fragment.h:75
void SetFragmentLengthInMilliseconds(long long value)
Definition Fragment.h:99
void SetFragmentNumber(Aws::String &&value)
Definition Fragment.h:50
Fragment & WithFragmentNumber(Aws::String &&value)
Definition Fragment.h:53
AWS_KINESISVIDEOARCHIVEDMEDIA_API Fragment()
Fragment & WithServerTimestamp(Aws::Utils::DateTime &&value)
Definition Fragment.h:90
void SetFragmentNumber(const Aws::String &value)
Definition Fragment.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue