AWS SDK for C++  1.9.159
AWS SDK for C++
Fragment.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace KinesisVideoArchivedMedia
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetFragmentNumber() const{ return m_fragmentNumber; }
47 
52  inline bool FragmentNumberHasBeenSet() const { return m_fragmentNumberHasBeenSet; }
53 
58  inline void SetFragmentNumber(const Aws::String& value) { m_fragmentNumberHasBeenSet = true; m_fragmentNumber = value; }
59 
64  inline void SetFragmentNumber(Aws::String&& value) { m_fragmentNumberHasBeenSet = true; m_fragmentNumber = std::move(value); }
65 
70  inline void SetFragmentNumber(const char* value) { m_fragmentNumberHasBeenSet = true; m_fragmentNumber.assign(value); }
71 
76  inline Fragment& WithFragmentNumber(const Aws::String& value) { SetFragmentNumber(value); return *this;}
77 
82  inline Fragment& WithFragmentNumber(Aws::String&& value) { SetFragmentNumber(std::move(value)); return *this;}
83 
88  inline Fragment& WithFragmentNumber(const char* value) { SetFragmentNumber(value); return *this;}
89 
90 
95  inline long long GetFragmentSizeInBytes() const{ return m_fragmentSizeInBytes; }
96 
101  inline bool FragmentSizeInBytesHasBeenSet() const { return m_fragmentSizeInBytesHasBeenSet; }
102 
107  inline void SetFragmentSizeInBytes(long long value) { m_fragmentSizeInBytesHasBeenSet = true; m_fragmentSizeInBytes = value; }
108 
113  inline Fragment& WithFragmentSizeInBytes(long long value) { SetFragmentSizeInBytes(value); return *this;}
114 
115 
119  inline const Aws::Utils::DateTime& GetProducerTimestamp() const{ return m_producerTimestamp; }
120 
124  inline bool ProducerTimestampHasBeenSet() const { return m_producerTimestampHasBeenSet; }
125 
129  inline void SetProducerTimestamp(const Aws::Utils::DateTime& value) { m_producerTimestampHasBeenSet = true; m_producerTimestamp = value; }
130 
134  inline void SetProducerTimestamp(Aws::Utils::DateTime&& value) { m_producerTimestampHasBeenSet = true; m_producerTimestamp = std::move(value); }
135 
139  inline Fragment& WithProducerTimestamp(const Aws::Utils::DateTime& value) { SetProducerTimestamp(value); return *this;}
140 
144  inline Fragment& WithProducerTimestamp(Aws::Utils::DateTime&& value) { SetProducerTimestamp(std::move(value)); return *this;}
145 
146 
150  inline const Aws::Utils::DateTime& GetServerTimestamp() const{ return m_serverTimestamp; }
151 
155  inline bool ServerTimestampHasBeenSet() const { return m_serverTimestampHasBeenSet; }
156 
160  inline void SetServerTimestamp(const Aws::Utils::DateTime& value) { m_serverTimestampHasBeenSet = true; m_serverTimestamp = value; }
161 
165  inline void SetServerTimestamp(Aws::Utils::DateTime&& value) { m_serverTimestampHasBeenSet = true; m_serverTimestamp = std::move(value); }
166 
170  inline Fragment& WithServerTimestamp(const Aws::Utils::DateTime& value) { SetServerTimestamp(value); return *this;}
171 
175  inline Fragment& WithServerTimestamp(Aws::Utils::DateTime&& value) { SetServerTimestamp(std::move(value)); return *this;}
176 
177 
181  inline long long GetFragmentLengthInMilliseconds() const{ return m_fragmentLengthInMilliseconds; }
182 
186  inline bool FragmentLengthInMillisecondsHasBeenSet() const { return m_fragmentLengthInMillisecondsHasBeenSet; }
187 
191  inline void SetFragmentLengthInMilliseconds(long long value) { m_fragmentLengthInMillisecondsHasBeenSet = true; m_fragmentLengthInMilliseconds = value; }
192 
196  inline Fragment& WithFragmentLengthInMilliseconds(long long value) { SetFragmentLengthInMilliseconds(value); return *this;}
197 
198  private:
199 
200  Aws::String m_fragmentNumber;
201  bool m_fragmentNumberHasBeenSet;
202 
203  long long m_fragmentSizeInBytes;
204  bool m_fragmentSizeInBytesHasBeenSet;
205 
206  Aws::Utils::DateTime m_producerTimestamp;
207  bool m_producerTimestampHasBeenSet;
208 
209  Aws::Utils::DateTime m_serverTimestamp;
210  bool m_serverTimestampHasBeenSet;
211 
212  long long m_fragmentLengthInMilliseconds;
213  bool m_fragmentLengthInMillisecondsHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace KinesisVideoArchivedMedia
218 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithProducerTimestamp
Fragment & WithProducerTimestamp(Aws::Utils::DateTime &&value)
Definition: Fragment.h:144
Aws::KinesisVideoArchivedMedia::Model::Fragment::Fragment
Fragment(Aws::Utils::Json::JsonView jsonValue)
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetServerTimestamp
void SetServerTimestamp(const Aws::Utils::DateTime &value)
Definition: Fragment.h:160
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithServerTimestamp
Fragment & WithServerTimestamp(Aws::Utils::DateTime &&value)
Definition: Fragment.h:175
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetFragmentSizeInBytes
void SetFragmentSizeInBytes(long long value)
Definition: Fragment.h:107
Aws::KinesisVideoArchivedMedia::Model::Fragment::Fragment
Fragment()
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetServerTimestamp
void SetServerTimestamp(Aws::Utils::DateTime &&value)
Definition: Fragment.h:165
AWS_KINESISVIDEOARCHIVEDMEDIA_API
#define AWS_KINESISVIDEOARCHIVEDMEDIA_API
Definition: KinesisVideoArchivedMedia_EXPORTS.h:28
DateTime.h
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetFragmentNumber
void SetFragmentNumber(const Aws::String &value)
Definition: Fragment.h:58
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithFragmentNumber
Fragment & WithFragmentNumber(Aws::String &&value)
Definition: Fragment.h:82
Aws::KinesisVideoArchivedMedia::Model::Fragment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetProducerTimestamp
void SetProducerTimestamp(Aws::Utils::DateTime &&value)
Definition: Fragment.h:134
Aws::KinesisVideoArchivedMedia::Model::Fragment::operator=
Fragment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetProducerTimestamp
void SetProducerTimestamp(const Aws::Utils::DateTime &value)
Definition: Fragment.h:129
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithFragmentLengthInMilliseconds
Fragment & WithFragmentLengthInMilliseconds(long long value)
Definition: Fragment.h:196
KinesisVideoArchivedMedia_EXPORTS.h
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithFragmentNumber
Fragment & WithFragmentNumber(const Aws::String &value)
Definition: Fragment.h:76
Aws::KinesisVideoArchivedMedia::Model::Fragment::GetFragmentLengthInMilliseconds
long long GetFragmentLengthInMilliseconds() const
Definition: Fragment.h:181
Aws::KinesisVideoArchivedMedia::Model::Fragment::FragmentLengthInMillisecondsHasBeenSet
bool FragmentLengthInMillisecondsHasBeenSet() const
Definition: Fragment.h:186
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithProducerTimestamp
Fragment & WithProducerTimestamp(const Aws::Utils::DateTime &value)
Definition: Fragment.h:139
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetFragmentNumber
void SetFragmentNumber(const char *value)
Definition: Fragment.h:70
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithFragmentSizeInBytes
Fragment & WithFragmentSizeInBytes(long long value)
Definition: Fragment.h:113
Aws::KinesisVideoArchivedMedia::Model::Fragment::ProducerTimestampHasBeenSet
bool ProducerTimestampHasBeenSet() const
Definition: Fragment.h:124
Aws::KinesisVideoArchivedMedia::Model::Fragment::FragmentSizeInBytesHasBeenSet
bool FragmentSizeInBytesHasBeenSet() const
Definition: Fragment.h:101
Aws::KinesisVideoArchivedMedia::Model::Fragment::GetFragmentNumber
const Aws::String & GetFragmentNumber() const
Definition: Fragment.h:46
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::KinesisVideoArchivedMedia::Model::Fragment::GetFragmentSizeInBytes
long long GetFragmentSizeInBytes() const
Definition: Fragment.h:95
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetFragmentLengthInMilliseconds
void SetFragmentLengthInMilliseconds(long long value)
Definition: Fragment.h:191
Aws::KinesisVideoArchivedMedia::Model::Fragment::GetProducerTimestamp
const Aws::Utils::DateTime & GetProducerTimestamp() const
Definition: Fragment.h:119
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::KinesisVideoArchivedMedia::Model::Fragment::ServerTimestampHasBeenSet
bool ServerTimestampHasBeenSet() const
Definition: Fragment.h:155
Aws::KinesisVideoArchivedMedia::Model::Fragment::FragmentNumberHasBeenSet
bool FragmentNumberHasBeenSet() const
Definition: Fragment.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithFragmentNumber
Fragment & WithFragmentNumber(const char *value)
Definition: Fragment.h:88
Aws::KinesisVideoArchivedMedia::Model::Fragment::GetServerTimestamp
const Aws::Utils::DateTime & GetServerTimestamp() const
Definition: Fragment.h:150
Aws::KinesisVideoArchivedMedia::Model::Fragment::SetFragmentNumber
void SetFragmentNumber(Aws::String &&value)
Definition: Fragment.h:64
Aws::KinesisVideoArchivedMedia::Model::Fragment::WithServerTimestamp
Fragment & WithServerTimestamp(const Aws::Utils::DateTime &value)
Definition: Fragment.h:170
Aws::KinesisVideoArchivedMedia::Model::Fragment
Definition: Fragment.h:34